Agents
Define agent identity, voice, background, and behaviors with immutable versioning in the Platform API.
Key Concepts
Endpoints
Create an agent
Create a new agent in a workspace. Requires Agent.create permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
""Successful Response
0Missing or invalid API key.
Insufficient permissions.
Not found.
Name already taken.
Invalid request body.
List agents
List agents in a workspace with pagination. Requires Agent.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
100Successful Response
Missing or invalid API key.
Insufficient permissions.
Not found.
Validation Error
Get an agent
Retrieve an agent by ID. Requires Agent.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
0Missing or invalid API key.
Insufficient permissions.
Not found.
Validation Error
Update agent name/description
Update an agent's name or description. Requires Agent.update permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
0Missing or invalid API key.
Insufficient permissions.
Not found.
Name already taken.
Invalid request body.
Delete an agent
Delete an agent. Agent versions are retained. Requires Agent.delete permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
No content
Missing or invalid API key.
Insufficient permissions.
Not found.
Validation Error
No content
Create a new version
Create a new version of an agent. Version number is auto-incremented. Requires Agent.create permission for the first version and Agent.update permission afterward.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
""""Successful Response
Missing or invalid API key.
Insufficient permissions.
Not found.
Name already taken.
Invalid request body.
List versions
List versions of an agent with pagination. Requires Agent.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
100Successful Response
Missing or invalid API key.
Insufficient permissions.
Not found.
Validation Error
Get a specific version
Retrieve a specific agent version by number, or 'latest'. Requires Agent.view permission.
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Missing or invalid API key.
Insufficient permissions.
Not found.
Validation Error
Agent Fields
Version Fields
Versioning Workflow
Filtering and Pagination
API Reference
Last updated
Was this helpful?

