How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Onecli Agents API

Manage agents and their access tokens, secrets, and configuration.

Onecli Agents API is one of 24 APIs that Onecli publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Agents. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, and API documentation.

This API exposes 13 operations across 9 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against 2 base URLs: https://api.onecli.sh/v1, http://localhost:10254/v1.

13 operations 9 paths 4 schemas 1 DELETE5 GET2 PATCH3 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Base URL
https://api.onecli.sh/v1
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Onecli Agents API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • bearerAuth — API key obtained from the dashboard or GET /user/api-key

Paths & Operations 13

Across 9 paths, the API surfaces 13 operations — 1 DELETE, 5 GET, 2 PATCH, 3 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Agents 13

Manage agents and their access tokens, secrets, and configuration.

GET
/agents
List agents
listAgents → 200401
POST
/agents
Create an agent
createAgent body → 201400409
GET
/agents/default
Get default agent
getDefaultAgent → 200404
PATCH
/agents/{agentId}
Rename an agent
renameAgent 1 param body → 200404
DELETE
/agents/{agentId}
Delete an agent
deleteAgent 1 param → 204404
POST
/agents/{agentId}/set-default
Set default agent
setDefaultAgent 1 param → 200404
POST
/agents/{agentId}/regenerate-token
Regenerate agent token
regenerateAgentToken 1 param → 200404
PATCH
/agents/{agentId}/secret-mode
Update agent secret mode
updateAgentSecretMode 1 param body → 200
GET
/agents/{agentId}/secrets
List agent's assigned secrets
getAgentSecrets 1 param → 200
PUT
/agents/{agentId}/secrets
Update agent's assigned secrets
updateAgentSecrets 1 param body → 200
GET
/agents/granular-access
List granular-access policies
listAgentGranularAccess → 200
GET
/agents/{agentId}/connections
List agent's app-connection assignments
getAgentConnections 1 param → 200404
PUT
/agents/{agentId}/connections
Update agent's app-connection assignments
updateAgentConnections 1 param body → 200404

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are Agent (8 properties), ErrorEnvelope (1 property), ErrorFlat (1 property). Each schema is shown below with its type and property counts.

Error
Error responses take one of two shapes depending on the failing layer: route-level validation returns the flat shape ({ "error": "..." }), while authentication…
ErrorFlat
object
Flat error shape used by route-level validation.
1 property 1 required
ErrorEnvelope
object
Envelope error shape used for authentication failures and service errors.
1 property
Agent
object
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

onecli-agents-api-openapi.yml Raw ↑

Other APIs Onecli publishes across the network.

Onecli Agent Setup API
Onecli Approvals API
Onecli Apps API
Onecli Connections API
Onecli Migration API
Onecli Organization App Config API
Onecli Organization Approvals API
Onecli Organization Connections API
Onecli Organization Partner API
Onecli Organization Rules API
Onecli Organization Secrets API
Onecli Organization Settings API
Where this information came from

This is an independent, third-party profile of Onecli Agents API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.