Agents API
Voice agent lifecycle and configuration.
- GET
/agentsList agents - POST
/agentsCreate an agent - GET
/agents/{id}Get an agent - PATCH
/agents/{id}Update an agent - DELETE
/agents/{id}Delete an agent - POST
/agents/{id}/publishPublish (activate) an agent - POST
/agents/{id}/duplicateDuplicate an agent - GET
/agents/{id}/versionsList agent versions - GET
/agents/{id}/knowledge-basesList knowledge bases attached to an agent - POST
/agents/{id}/knowledge-basesAttach a knowledge base to an agent - DELETE
/agents/{id}/knowledge-bases/{kbId}Detach a knowledge base from an agent
GET /agents
List agents
Auth: API key (Authorization: Bearer). Scopes: agents:read, agents:*, *.
Requires one of the following scopes: agents:read, agents:*, *. Holding any one authorizes.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Max items to return (1-100). Default |
offset | query | integer | Number of items to skip. Default |
status | query | string | One of: |
agent_mode | query | string | |
search | query | string |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].id | integer | |
data[].name | string | |
data[].description | string | null | |
data[].status | string | One of: |
data[].agent_mode | string | |
data[].agent_direction | string | Whether the agent places calls (outbound), answers them (inbound), or does both (both). One of: |
data[].agent_role | string | null | Persona. One of: |
data[].language_code | string | Mapped from stt_language. |
data[].system_prompt | string | |
data[].first_message | string | null | |
data[].voice | object | TTS voice. Null provider/id means the platform default is used. |
data[].voice.provider | string | null | TTS provider (e.g. cartesia); null = platform default. |
data[].voice.id | string | null | Provider voice id; null = platform default. |
data[].voice.speed | number | |
data[].voice.emotion | string | null | |
data[].llm | object | |
data[].llm.provider | string | null | LLM provider (e.g. openai, anthropic); null = platform default. |
data[].llm.model | string | null | |
data[].llm.temperature | number | |
data[].llm.max_tokens | integer | |
data[].voicemail | object | |
data[].voicemail.enabled | boolean | |
data[].voicemail.message | string | null | |
data[].screening_detection_enabled | boolean | When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true. |
data[].screening_response | string | null | Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time. |
data[].created_at | string (date-time) | |
data[].updated_at | string (date-time) | null | |
data[].pathfinder | object | Pathfinder settings for this agent. |
data[].pathfinder.enabled | boolean |
|
data[].pathfinder.org_name | string | null | |
data[].pathfinder.purpose_line | string | null | |
data[].pathfinder.voicemail_message | string | null | |
data[].pathfinder.callback_numbers | array of string | Read-only. Cannot be set through this API. Empty array when none are set. |
meta | object | Offset pagination metadata (in the top-level meta object). |
meta.total | integer | |
meta.limit | integer | |
meta.offset | integer | |
meta.has_more | boolean |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /agents
Create an agent
Auth: API key (Authorization: Bearer). Scopes: agents:write, agents:*, *.
Requires one of the following scopes: agents:write, agents:*, *. A 400 is returned when the plan's max_agents limit is reached, or when the limit cannot be checked.
Request body application/json required
| Field | Type | Description |
|---|---|---|
name | string required | max length 255 |
description | string | null | max length 2000 |
agent_mode | string | One of: |
agent_direction | string | Whether the agent places calls (outbound), answers them (inbound), or does both (both). A 'both' agent can be assigned a phone number for inbound AND used in outbound campaigns. Both 'inbound' and 'both' require the inbound-calling entitlement on your organization; without it the request is rejected with 400. One of: |
status | string | One of: |
system_prompt | string | max length 10000 |
first_message | string | max length 2000 |
language_code | string | Persisted to stt_language. |
voice | object | |
voice.provider | string | null | |
voice.id | string | null | |
voice.speed | number | |
voice.emotion | string | |
llm | object | When |
llm.provider | string | |
llm.model | string | |
llm.temperature | number | |
llm.max_tokens | integer | |
agent_role | string | null | Persona. null clears the role. One of: |
voicemail_enabled | boolean | |
voicemail_message | string | |
screening_detection_enabled | boolean | |
screening_response | string | null | |
pathfinder_enabled | boolean | |
pathfinder_org_name | string | Spoken as written. Cannot contain max length 80 |
pathfinder_purpose_line | string | Spoken as written. Cannot contain max length 160 |
pathfinder_voicemail_message | string | Spoken as written. Cannot contain max length 400 |
Responses
201 Agent created
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.name | string | |
data.description | string | null | |
data.status | string | One of: |
data.agent_mode | string | |
data.agent_direction | string | Whether the agent places calls (outbound), answers them (inbound), or does both (both). One of: |
data.agent_role | string | null | Persona. One of: |
data.language_code | string | Mapped from stt_language. |
data.system_prompt | string | |
data.first_message | string | null | |
data.voice | object | TTS voice. Null provider/id means the platform default is used. |
data.voice.provider | string | null | TTS provider (e.g. cartesia); null = platform default. |
data.voice.id | string | null | Provider voice id; null = platform default. |
data.voice.speed | number | |
data.voice.emotion | string | null | |
data.llm | object | |
data.llm.provider | string | null | LLM provider (e.g. openai, anthropic); null = platform default. |
data.llm.model | string | null | |
data.llm.temperature | number | |
data.llm.max_tokens | integer | |
data.voicemail | object | |
data.voicemail.enabled | boolean | |
data.voicemail.message | string | null | |
data.screening_detection_enabled | boolean | When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true. |
data.screening_response | string | null | Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | null | |
data.pathfinder | object | Pathfinder settings for this agent. |
data.pathfinder.enabled | boolean |
|
data.pathfinder.org_name | string | null | |
data.pathfinder.purpose_line | string | null | |
data.pathfinder.voicemail_message | string | null | |
data.pathfinder.callback_numbers | array of string | Read-only. Cannot be set through this API. Empty array when none are set. |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /agents/{id}
Get an agent
Auth: API key (Authorization: Bearer). Scopes: agents:read, agents:*, *.
Requires one of the following scopes: agents:read, agents:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.name | string | |
data.description | string | null | |
data.status | string | One of: |
data.agent_mode | string | |
data.agent_direction | string | Whether the agent places calls (outbound), answers them (inbound), or does both (both). One of: |
data.agent_role | string | null | Persona. One of: |
data.language_code | string | Mapped from stt_language. |
data.system_prompt | string | |
data.first_message | string | null | |
data.voice | object | TTS voice. Null provider/id means the platform default is used. |
data.voice.provider | string | null | TTS provider (e.g. cartesia); null = platform default. |
data.voice.id | string | null | Provider voice id; null = platform default. |
data.voice.speed | number | |
data.voice.emotion | string | null | |
data.llm | object | |
data.llm.provider | string | null | LLM provider (e.g. openai, anthropic); null = platform default. |
data.llm.model | string | null | |
data.llm.temperature | number | |
data.llm.max_tokens | integer | |
data.voicemail | object | |
data.voicemail.enabled | boolean | |
data.voicemail.message | string | null | |
data.screening_detection_enabled | boolean | When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true. |
data.screening_response | string | null | Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | null | |
data.pathfinder | object | Pathfinder settings for this agent. |
data.pathfinder.enabled | boolean |
|
data.pathfinder.org_name | string | null | |
data.pathfinder.purpose_line | string | null | |
data.pathfinder.voicemail_message | string | null | |
data.pathfinder.callback_numbers | array of string | Read-only. Cannot be set through this API. Empty array when none are set. |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
PATCH /agents/{id}
Update an agent
Auth: API key (Authorization: Bearer). Scopes: agents:write, agents:*, *.
Requires one of the following scopes: agents:write, agents:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
name | string | max length 255 |
description | string | null | max length 2000 |
agent_mode | string | Default |
agent_direction | string | Whether the agent places calls (outbound) or answers them (inbound). Switching an agent to 'inbound' requires the inbound-calling entitlement on your organization; without it the request is rejected with 400. One of: |
status | string | One of: |
system_prompt | string | max length 10000 |
first_message | string | max length 2000 |
language_code | string | Persisted to stt_language. |
voice | object | |
voice.provider | string | null | |
voice.id | string | null | |
voice.speed | number | |
voice.emotion | string | |
llm | object | When |
llm.provider | string | |
llm.model | string | |
llm.temperature | number | |
llm.max_tokens | integer | |
agent_role | string | null | Persona. null clears the role. Changing the role to One of: |
voicemail_enabled | boolean | |
voicemail_message | string | |
screening_detection_enabled | boolean | |
screening_response | string | null | |
pathfinder_enabled | boolean | |
pathfinder_org_name | string | Spoken as written. Cannot contain max length 80 |
pathfinder_purpose_line | string | Spoken as written. Cannot contain max length 160 |
pathfinder_voicemail_message | string | Spoken as written. Cannot contain max length 400 |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.name | string | |
data.description | string | null | |
data.status | string | One of: |
data.agent_mode | string | |
data.agent_direction | string | Whether the agent places calls (outbound), answers them (inbound), or does both (both). One of: |
data.agent_role | string | null | Persona. One of: |
data.language_code | string | Mapped from stt_language. |
data.system_prompt | string | |
data.first_message | string | null | |
data.voice | object | TTS voice. Null provider/id means the platform default is used. |
data.voice.provider | string | null | TTS provider (e.g. cartesia); null = platform default. |
data.voice.id | string | null | Provider voice id; null = platform default. |
data.voice.speed | number | |
data.voice.emotion | string | null | |
data.llm | object | |
data.llm.provider | string | null | LLM provider (e.g. openai, anthropic); null = platform default. |
data.llm.model | string | null | |
data.llm.temperature | number | |
data.llm.max_tokens | integer | |
data.voicemail | object | |
data.voicemail.enabled | boolean | |
data.voicemail.message | string | null | |
data.screening_detection_enabled | boolean | When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true. |
data.screening_response | string | null | Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | null | |
data.pathfinder | object | Pathfinder settings for this agent. |
data.pathfinder.enabled | boolean |
|
data.pathfinder.org_name | string | null | |
data.pathfinder.purpose_line | string | null | |
data.pathfinder.voicemail_message | string | null | |
data.pathfinder.callback_numbers | array of string | Read-only. Cannot be set through this API. Empty array when none are set. |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
DELETE /agents/{id}
Delete an agent
Auth: API key (Authorization: Bearer). Scopes: agents:delete, agents:*, *.
Requires one of the following scopes: agents:delete, agents:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Responses
204 Agent deleted
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /agents/{id}/publish
Publish (activate) an agent
Auth: API key (Authorization: Bearer). Scopes: agents:write, agents:*, *.
Activates the agent (status -> active). Attempts a best-effort version snapshot; version is null until the agent_versions DDL lands on prod.
Requires one of the following scopes: agents:write, agents:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.agent_id | integer | |
data.version | integer | null | null until versioning DDL is deployed |
data.status | string | Always |
data.published_at | string (date-time) |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /agents/{id}/duplicate
Duplicate an agent
Auth: API key (Authorization: Bearer). Scopes: agents:write, agents:*, *.
Requires one of the following scopes: agents:write, agents:*, *. A 400 is returned when the plan's max_agents limit is reached, or when the limit cannot be checked. The copy counts against the limit like any new agent.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Request body application/json
| Field | Type | Description |
|---|---|---|
name | string | Name for the copy (defaults to '<name> (Copy)') |
Responses
201 Agent duplicated
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.name | string | |
data.description | string | null | |
data.status | string | One of: |
data.agent_mode | string | |
data.agent_direction | string | Whether the agent places calls (outbound), answers them (inbound), or does both (both). One of: |
data.agent_role | string | null | Persona. One of: |
data.language_code | string | Mapped from stt_language. |
data.system_prompt | string | |
data.first_message | string | null | |
data.voice | object | TTS voice. Null provider/id means the platform default is used. |
data.voice.provider | string | null | TTS provider (e.g. cartesia); null = platform default. |
data.voice.id | string | null | Provider voice id; null = platform default. |
data.voice.speed | number | |
data.voice.emotion | string | null | |
data.llm | object | |
data.llm.provider | string | null | LLM provider (e.g. openai, anthropic); null = platform default. |
data.llm.model | string | null | |
data.llm.temperature | number | |
data.llm.max_tokens | integer | |
data.voicemail | object | |
data.voicemail.enabled | boolean | |
data.voicemail.message | string | null | |
data.screening_detection_enabled | boolean | When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true. |
data.screening_response | string | null | Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time. |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | null | |
data.pathfinder | object | Pathfinder settings for this agent. |
data.pathfinder.enabled | boolean |
|
data.pathfinder.org_name | string | null | |
data.pathfinder.purpose_line | string | null | |
data.pathfinder.voicemail_message | string | null | |
data.pathfinder.callback_numbers | array of string | Read-only. Cannot be set through this API. Empty array when none are set. |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /agents/{id}/versions
List agent versions
Auth: API key (Authorization: Bearer). Scopes: agents:read, agents:*, *.
Requires one of the following scopes: agents:read, agents:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].version | integer | null | |
data[].created_at | string (date-time) | |
data[].created_by | integer | null |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
GET /agents/{id}/knowledge-bases
List knowledge bases attached to an agent
Auth: API key (Authorization: Bearer). Scopes: kb:read, kb:*, *.
Requires one of the following scopes: kb:read, kb:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.knowledge_bases | array of object | |
data.knowledge_bases[].id | integer | |
data.knowledge_bases[].agent_id | integer | null | |
data.knowledge_bases[].name | string | null | |
data.knowledge_bases[].description | string | null | |
data.knowledge_bases[].kb_type | string | null | |
data.knowledge_bases[].status | string | null | |
data.knowledge_bases[].priority | integer | |
data.knowledge_bases[].is_enabled | boolean | |
data.knowledge_bases[].chunk_size | integer | |
data.knowledge_bases[].chunk_overlap | integer | |
data.knowledge_bases[].total_documents | integer | |
data.knowledge_bases[].total_chunks | integer | |
data.knowledge_bases[].total_size_bytes | integer | |
data.knowledge_bases[].bedrock_kb_id | string | null | |
data.knowledge_bases[].kendra_index_id | string | null | |
data.knowledge_bases[].s3_bucket | string | null | |
data.knowledge_bases[].s3_prefix | string | null | |
data.knowledge_bases[].custom_api_endpoint | string | null | |
data.knowledge_bases[].last_sync_at | string (date-time) | null | |
data.knowledge_bases[].metadata | any | |
data.knowledge_bases[].created_at | string (date-time) | null | |
data.knowledge_bases[].updated_at | string (date-time) | null | |
data.count | integer |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
POST /agents/{id}/knowledge-bases
Attach a knowledge base to an agent
Auth: API key (Authorization: Bearer). Scopes: kb:write, kb:*, *.
Requires one of the following scopes: kb:write, kb:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
knowledge_base_id | integer required |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.agent_id | integer | |
data.knowledge_bases | array of object | |
data.knowledge_bases[].id | integer | |
data.knowledge_bases[].agent_id | integer | null | |
data.knowledge_bases[].name | string | null | |
data.knowledge_bases[].description | string | null | |
data.knowledge_bases[].kb_type | string | null | |
data.knowledge_bases[].status | string | null | |
data.knowledge_bases[].priority | integer | |
data.knowledge_bases[].is_enabled | boolean | |
data.knowledge_bases[].chunk_size | integer | |
data.knowledge_bases[].chunk_overlap | integer | |
data.knowledge_bases[].total_documents | integer | |
data.knowledge_bases[].total_chunks | integer | |
data.knowledge_bases[].total_size_bytes | integer | |
data.knowledge_bases[].bedrock_kb_id | string | null | |
data.knowledge_bases[].kendra_index_id | string | null | |
data.knowledge_bases[].s3_bucket | string | null | |
data.knowledge_bases[].s3_prefix | string | null | |
data.knowledge_bases[].custom_api_endpoint | string | null | |
data.knowledge_bases[].last_sync_at | string (date-time) | null | |
data.knowledge_bases[].metadata | any | |
data.knowledge_bases[].created_at | string (date-time) | null | |
data.knowledge_bases[].updated_at | string (date-time) | null |
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
DELETE /agents/{id}/knowledge-bases/{kbId}
Detach a knowledge base from an agent
Auth: API key (Authorization: Bearer). Scopes: kb:write, kb:*, *.
Requires one of the following scopes: kb:write, kb:*, *.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Agent id |
kbId | path | integer required | Knowledge base id |
Responses
204 Detached
400 Invalid request (validation errors under error.details.validation_errors).
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | null | Optional; validation failures put field errors under details.validation_errors. Accepts any keys |
404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).
429 Rate limit exceeded.
Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID
Ready to build on Vosy?
API access is included with the Business and Enterprise plans. Sign up, choose a plan with API access, and create your own keys from the Vosy API page in your account. Compare plans
Get Started