Agents

CRUD operations on AI agents

List user's agents

get

Returns a paginated list of all agents belonging to the API key owner. Works with any API key type (master or agent).

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Query parameters
per_pageintegerOptionalDefault: 100
pageintegerOptionalDefault: 1
Responses
200

Paginated list of agents

application/json
current_pageintegerOptional
last_pageintegerOptional
per_pageintegerOptional
totalintegerOptional
get
/agents

Create a new agent

post

Creates a new AI agent. Requires a master key. Charges 10 credits.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Body

Input schema for creating or updating an agent

namestring · max: 255Optional
llm_provider_namestringOptionalExample: openrouter
llm_provider_modelstringOptionalExample: openai/gpt-4.1
biostring[] · max: 50Optional
knowledgestring[] · max: 100Optional
channelsstring[] · max: 10Optional
model_providerstringOptional
auto_generation_promptstring · max: 10000Optional
auto_enhancement_promptstring · max: 10000Optional
framework_idstring · uuidOptional
region_idstring · uuidOptional
ram_idstring · uuidOptional
disk_idstring · uuidOptional
gpu_idstring · uuidOptional
cpu_idstring · uuidOptional
Responses
post
/agents

Show agent details

get

Returns full details for a specific agent.

  • Master key: can access any of the user's agents.

  • Agent key: requires agent:read scope (always included). Can only access its linked agent.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
200

Agent details

application/json
get
/agents/{id}

Update an agent

put

Updates an existing agent (PATCH semantics — only provided fields are changed). Requires a master key. Charges 10 credits.

Secrets use PATCH semantics: sending null or "" for a secret key deletes it; omitting the secrets key entirely preserves all existing secrets.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Body

Input schema for creating or updating an agent

namestring · max: 255Optional
llm_provider_namestringOptionalExample: openrouter
llm_provider_modelstringOptionalExample: openai/gpt-4.1
biostring[] · max: 50Optional
knowledgestring[] · max: 100Optional
channelsstring[] · max: 10Optional
model_providerstringOptional
auto_generation_promptstring · max: 10000Optional
auto_enhancement_promptstring · max: 10000Optional
framework_idstring · uuidOptional
region_idstring · uuidOptional
ram_idstring · uuidOptional
disk_idstring · uuidOptional
gpu_idstring · uuidOptional
cpu_idstring · uuidOptional
Responses
200

Agent updated

application/json
successbooleanOptional
messagestringOptional
put
/agents/{id}

Delete an agent

delete

Deletes an agent. Stops it first if running/paused. Cascades to related API keys and runtime sessions. Requires a master key. No credit charge.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
200

Agent deleted

application/json
successbooleanOptional
messagestringOptionalExample: Agent deleted successfully
delete
/agents/{id}

Last updated