Skip to main content
POST
/
agents
Create an agent
curl --request POST \
  --url https://api.onecli.sh/v1/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Claude Assistant",
  "identifier": "claude-assistant"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "identifier": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Display name for the agent

Required string length: 1 - 255
Example:

"Claude Assistant"

identifier
string
required

Unique identifier (lowercase, alphanumeric, hyphens)

Pattern: ^[a-z][a-z0-9-]{0,49}$
Example:

"claude-assistant"

Response

Agent created

id
string
name
string
identifier
string
createdAt
string<date-time>