Skip to content

Agents

List Agents

List agents in the organization. Requires membership.

Omit limit to get every agent; total is the full count either way.

Parameters

NameInTypeRequiredDescription
limitqueryintegernoMax rows to return (1-100). Omit to return every row.
offsetqueryintegernoRows to skip — pass the previous response’s next_offset.
org_idpathstring (uuid)yes
project_idquerystringnoFilter by project id, or ‘none’ for uncategorized agents.

Responses

StatusDescriptionBody
200Successful ResponsePage_AgentResponse_
422Validation ErrorHTTPValidationError

Create Agent

Create a new agent in the organization. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Request body (required)

FieldTypeRequiredDescription
allowed_toolsstring[]no
avatar_seedstringno
descriptionstringno
execution_modestringno
instructionstringno
modelstringno
mounted_skillsstring[]no
namestringyes
per_chat_cost_limit_usdnumberno
permissionsobjectno
pinned_toolsstring[]no
providerstringno
reasoning_effortstringno
reply_to_incoming_emailbooleanno
sandbox_enabledbooleanno
statusstringno
system_promptstringno
tagsstring[]no
team_idstring (uuid)no

Responses

StatusDescriptionBody
201Successful ResponseAgentResponse
422Validation ErrorHTTPValidationError

Get Agent

Get agent details. Accepts UUID or slug. Requires membership.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentResponse
422Validation ErrorHTTPValidationError

PATCH /api/orgs/{org_id}/agents/{agent_id}

Section titled “PATCH /api/orgs/{org_id}/agents/{agent_id}”

Update Agent

Update agent settings. Accepts UUID or slug. Instruction edits are routed to the draft revision.

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Request body (required)

FieldTypeRequiredDescription
allowed_toolsstring[]no
avatar_seedstringno
descriptionstringno
execution_modestringno
instructionstringno
modelstringno
mounted_skillsstring[]no
namestringno
per_chat_cost_limit_usdnumberno
permissionsobjectno
pinned_toolsstring[]no
providerstringno
reasoning_effortstringno
reply_to_incoming_emailbooleanno
sandbox_enabledbooleanno
settingsobjectno
statusstringno
system_promptstringno
tagsstring[]no
team_idstring (uuid)no
toolsobject[]no

Responses

StatusDescriptionBody
200Successful ResponseAgentResponse
422Validation ErrorHTTPValidationError

DELETE /api/orgs/{org_id}/agents/{agent_id}

Section titled “DELETE /api/orgs/{org_id}/agents/{agent_id}”

Delete Agent

Soft-delete an agent. Accepts UUID or slug. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
204Successful Response
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/agents/{agent_id}/artifacts

Section titled “GET /api/orgs/{org_id}/agents/{agent_id}/artifacts”

Get Agent Artifacts

Get artifacts produced by an agent.

Accepts UUID or slug. Returns artifacts ordered by created_at desc. Requires membership in the organization.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
limitqueryintegerno
offsetqueryintegerno
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentArtifactListResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/agents/{agent_id}/deploy

Section titled “POST /api/orgs/{org_id}/agents/{agent_id}/deploy”

Deploy Agent

Deploy the draft revision: activate it.

Accepts UUID or slug. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentResponse
422Validation ErrorHTTPValidationError

DELETE /api/orgs/{org_id}/agents/{agent_id}/draft

Section titled “DELETE /api/orgs/{org_id}/agents/{agent_id}/draft”

Discard Draft

Discard the draft revision for an agent.

Accepts UUID or slug. Requires ADMIN or OWNER role. Returns 422 if no draft exists.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentResponse
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/agents/{agent_id}/events

Section titled “GET /api/orgs/{org_id}/agents/{agent_id}/events”

Get Agent Events

Get the activity timeline for an agent.

Accepts UUID or slug. Returns events ordered by created_at desc (newest first). Requires membership in the organization.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
limitqueryintegernoMax events to return
offsetqueryintegernoPagination offset
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentEventTimelineResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/agents/{agent_id}/regenerate-inbox-token

Section titled “POST /api/orgs/{org_id}/agents/{agent_id}/regenerate-inbox-token”

Regenerate Inbox Token

Regenerate the inbox token for an agent, invalidating the old webhook URL and future email address.

Accepts UUID or slug. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseRegenerateInboxTokenResponse
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/agents/{agent_id}/revisions

Section titled “GET /api/orgs/{org_id}/agents/{agent_id}/revisions”

List Revisions

List all revisions for an agent, newest first.

Accepts UUID or slug. Requires membership in the organization.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentRevisionListResponse
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/agents/{agent_id}/tokens

Section titled “GET /api/orgs/{org_id}/agents/{agent_id}/tokens”

List Agent Tokens

List all non-revoked tokens for an agent. Accepts UUID or slug. Requires membership.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAgentTokenListResponse
422Validation ErrorHTTPValidationError

POST /api/orgs/{org_id}/agents/{agent_id}/tokens

Section titled “POST /api/orgs/{org_id}/agents/{agent_id}/tokens”

Create Agent Token

Create a new token for an agent. Accepts UUID or slug. Returns plaintext once. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes

Request body (required)

FieldTypeRequiredDescription
descriptionstringno
namestringyes
scopestringno

Responses

StatusDescriptionBody
201Successful ResponseCreateAgentTokenResponse
422Validation ErrorHTTPValidationError

DELETE /api/orgs/{org_id}/agents/{agent_id}/tokens/{token_id}

Section titled “DELETE /api/orgs/{org_id}/agents/{agent_id}/tokens/{token_id}”

Revoke Agent Token

Revoke an agent token. Accepts UUID or slug. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
agent_idpathstringyes
org_idpathstring (uuid)yes
token_idpathstring (uuid)yes

Responses

StatusDescriptionBody
204Successful Response
422Validation ErrorHTTPValidationError

List Deleted Agents

List soft-deleted agents in the organization. Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
limitqueryintegernoMax rows to return (1-100). Omit to return every row.
offsetqueryintegernoRows to skip — pass the previous response’s next_offset.
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponsePage_AgentResponse_
422Validation ErrorHTTPValidationError