← API reference

Agents API

Voice agent lifecycle and configuration.

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

NameInTypeDescription
limitqueryinteger

Max items to return (1-100).

Default 25 · min 1 · max 100

offsetqueryinteger

Number of items to skip.

Default 0 · min 0

statusquerystring

One of: draft, active, paused, archived

agent_modequerystring
searchquerystring

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
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].idinteger
data[].namestring
data[].descriptionstring | null
data[].statusstring

One of: draft, active, paused, archived

data[].agent_modestring
data[].agent_directionstring

Whether the agent places calls (outbound), answers them (inbound), or does both (both).

One of: inbound, outbound, both

data[].agent_rolestring | null

Persona. leasing_agent_v2 appears only for organizations it is enabled for.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, leasing_agent_v2, null

data[].language_codestring

Mapped from stt_language.

data[].system_promptstring
data[].first_messagestring | null
data[].voiceobject

TTS voice. Null provider/id means the platform default is used.

data[].voice.providerstring | null

TTS provider (e.g. cartesia); null = platform default.

data[].voice.idstring | null

Provider voice id; null = platform default.

data[].voice.speednumber
data[].voice.emotionstring | null
data[].llmobject
data[].llm.providerstring | null

LLM provider (e.g. openai, anthropic); null = platform default.

data[].llm.modelstring | null
data[].llm.temperaturenumber
data[].llm.max_tokensinteger
data[].voicemailobject
data[].voicemail.enabledboolean
data[].voicemail.messagestring | null
data[].screening_detection_enabledboolean

When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true.

data[].screening_responsestring | null

Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time.

data[].created_atstring (date-time)
data[].updated_atstring (date-time) | null
data[].pathfinderobject

Pathfinder settings for this agent.

data[].pathfinder.enabledboolean

false when unset.

data[].pathfinder.org_namestring | null
data[].pathfinder.purpose_linestring | null
data[].pathfinder.voicemail_messagestring | null
data[].pathfinder.callback_numbersarray of string

Read-only. Cannot be set through this API. Empty array when none are set.

metaobject

Offset pagination metadata (in the top-level meta object).

meta.totalinteger
meta.limitinteger
meta.offsetinteger
meta.has_moreboolean

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
namestring required

max length 255

descriptionstring | null

max length 2000

agent_modestring

One of: inbound_llm, streaming · Default streaming

agent_directionstring

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: inbound, outbound, both · Default outbound

statusstring

One of: draft, active, paused, archived · Default draft

system_promptstring

max length 10000

first_messagestring

max length 2000

language_codestring

Persisted to stt_language.

voiceobject
voice.providerstring | null
voice.idstring | null
voice.speednumber
voice.emotionstring
llmobject

When provider or model is sent, the pair is checked against the platform model catalogue. An unknown provider, a provider without a model, or a model the provider does not offer is rejected with 400. Omit provider to use the platform default.

llm.providerstring
llm.modelstring
llm.temperaturenumber
llm.max_tokensinteger
agent_rolestring | null

Persona. null clears the role. staffing_agent needs the staffing persona enabled on your organization; without it the request is rejected with 400. plumbing_receptionist is inbound-only: agent_direction is set to inbound whatever was sent, so the inbound-calling entitlement applies.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, null

voicemail_enabledboolean
voicemail_messagestring
screening_detection_enabledboolean
screening_responsestring | null
pathfinder_enabledboolean
pathfinder_org_namestring

Spoken as written. Cannot contain {{ or }} placeholders; a value that does is rejected with 400.

max length 80

pathfinder_purpose_linestring

Spoken as written. Cannot contain {{ or }} placeholders; a value that does is rejected with 400.

max length 160

pathfinder_voicemail_messagestring

Spoken as written. Cannot contain {{ or }} placeholders; a value that does is rejected with 400.

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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring

One of: draft, active, paused, archived

data.agent_modestring
data.agent_directionstring

Whether the agent places calls (outbound), answers them (inbound), or does both (both).

One of: inbound, outbound, both

data.agent_rolestring | null

Persona. leasing_agent_v2 appears only for organizations it is enabled for.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, leasing_agent_v2, null

data.language_codestring

Mapped from stt_language.

data.system_promptstring
data.first_messagestring | null
data.voiceobject

TTS voice. Null provider/id means the platform default is used.

data.voice.providerstring | null

TTS provider (e.g. cartesia); null = platform default.

data.voice.idstring | null

Provider voice id; null = platform default.

data.voice.speednumber
data.voice.emotionstring | null
data.llmobject
data.llm.providerstring | null

LLM provider (e.g. openai, anthropic); null = platform default.

data.llm.modelstring | null
data.llm.temperaturenumber
data.llm.max_tokensinteger
data.voicemailobject
data.voicemail.enabledboolean
data.voicemail.messagestring | null
data.screening_detection_enabledboolean

When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true.

data.screening_responsestring | null

Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time.

data.created_atstring (date-time)
data.updated_atstring (date-time) | null
data.pathfinderobject

Pathfinder settings for this agent.

data.pathfinder.enabledboolean

false when unset.

data.pathfinder.org_namestring | null
data.pathfinder.purpose_linestring | null
data.pathfinder.voicemail_messagestring | null
data.pathfinder.callback_numbersarray 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger 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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring

One of: draft, active, paused, archived

data.agent_modestring
data.agent_directionstring

Whether the agent places calls (outbound), answers them (inbound), or does both (both).

One of: inbound, outbound, both

data.agent_rolestring | null

Persona. leasing_agent_v2 appears only for organizations it is enabled for.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, leasing_agent_v2, null

data.language_codestring

Mapped from stt_language.

data.system_promptstring
data.first_messagestring | null
data.voiceobject

TTS voice. Null provider/id means the platform default is used.

data.voice.providerstring | null

TTS provider (e.g. cartesia); null = platform default.

data.voice.idstring | null

Provider voice id; null = platform default.

data.voice.speednumber
data.voice.emotionstring | null
data.llmobject
data.llm.providerstring | null

LLM provider (e.g. openai, anthropic); null = platform default.

data.llm.modelstring | null
data.llm.temperaturenumber
data.llm.max_tokensinteger
data.voicemailobject
data.voicemail.enabledboolean
data.voicemail.messagestring | null
data.screening_detection_enabledboolean

When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true.

data.screening_responsestring | null

Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time.

data.created_atstring (date-time)
data.updated_atstring (date-time) | null
data.pathfinderobject

Pathfinder settings for this agent.

data.pathfinder.enabledboolean

false when unset.

data.pathfinder.org_namestring | null
data.pathfinder.purpose_linestring | null
data.pathfinder.voicemail_messagestring | null
data.pathfinder.callback_numbersarray 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger required

Agent id

Request body application/json required

FieldTypeDescription
namestring

max length 255

descriptionstring | null

max length 2000

agent_modestring

Default streaming

agent_directionstring

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: inbound, outbound, both · Default outbound

statusstring

One of: draft, active, paused, archived · Default draft

system_promptstring

max length 10000

first_messagestring

max length 2000

language_codestring

Persisted to stt_language.

voiceobject
voice.providerstring | null
voice.idstring | null
voice.speednumber
voice.emotionstring
llmobject

When provider or model is sent, the pair is checked against the platform model catalogue. An unknown provider, a provider without a model, or a model the provider does not offer is rejected with 400. Omit provider to use the platform default.

llm.providerstring
llm.modelstring
llm.temperaturenumber
llm.max_tokensinteger
agent_rolestring | null

Persona. null clears the role. Changing the role to staffing_agent needs the staffing persona enabled on your organization; without it the request is rejected with 400. plumbing_receptionist is inbound-only: an agent_direction sent for such an agent is set to inbound.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, null

voicemail_enabledboolean
voicemail_messagestring
screening_detection_enabledboolean
screening_responsestring | null
pathfinder_enabledboolean
pathfinder_org_namestring

Spoken as written. Cannot contain {{ or }} placeholders; a value that does is rejected with 400.

max length 80

pathfinder_purpose_linestring

Spoken as written. Cannot contain {{ or }} placeholders; a value that does is rejected with 400.

max length 160

pathfinder_voicemail_messagestring

Spoken as written. Cannot contain {{ or }} placeholders; a value that does is rejected with 400.

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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring

One of: draft, active, paused, archived

data.agent_modestring
data.agent_directionstring

Whether the agent places calls (outbound), answers them (inbound), or does both (both).

One of: inbound, outbound, both

data.agent_rolestring | null

Persona. leasing_agent_v2 appears only for organizations it is enabled for.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, leasing_agent_v2, null

data.language_codestring

Mapped from stt_language.

data.system_promptstring
data.first_messagestring | null
data.voiceobject

TTS voice. Null provider/id means the platform default is used.

data.voice.providerstring | null

TTS provider (e.g. cartesia); null = platform default.

data.voice.idstring | null

Provider voice id; null = platform default.

data.voice.speednumber
data.voice.emotionstring | null
data.llmobject
data.llm.providerstring | null

LLM provider (e.g. openai, anthropic); null = platform default.

data.llm.modelstring | null
data.llm.temperaturenumber
data.llm.max_tokensinteger
data.voicemailobject
data.voicemail.enabledboolean
data.voicemail.messagestring | null
data.screening_detection_enabledboolean

When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true.

data.screening_responsestring | null

Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time.

data.created_atstring (date-time)
data.updated_atstring (date-time) | null
data.pathfinderobject

Pathfinder settings for this agent.

data.pathfinder.enabledboolean

false when unset.

data.pathfinder.org_namestring | null
data.pathfinder.purpose_linestring | null
data.pathfinder.voicemail_messagestring | null
data.pathfinder.callback_numbersarray 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger required

Agent id

Responses

204 Agent deleted

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger 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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.agent_idinteger
data.versioninteger | null

null until versioning DDL is deployed

data.statusstring

Always active

data.published_atstring (date-time)

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger required

Agent id

Request body application/json

FieldTypeDescription
namestring

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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring
data.descriptionstring | null
data.statusstring

One of: draft, active, paused, archived

data.agent_modestring
data.agent_directionstring

Whether the agent places calls (outbound), answers them (inbound), or does both (both).

One of: inbound, outbound, both

data.agent_rolestring | null

Persona. leasing_agent_v2 appears only for organizations it is enabled for.

One of: leasing_agent, staffing_agent, mhp_sales_agent, plumbing_receptionist, leasing_agent_v2, null

data.language_codestring

Mapped from stt_language.

data.system_promptstring
data.first_messagestring | null
data.voiceobject

TTS voice. Null provider/id means the platform default is used.

data.voice.providerstring | null

TTS provider (e.g. cartesia); null = platform default.

data.voice.idstring | null

Provider voice id; null = platform default.

data.voice.speednumber
data.voice.emotionstring | null
data.llmobject
data.llm.providerstring | null

LLM provider (e.g. openai, anthropic); null = platform default.

data.llm.modelstring | null
data.llm.temperaturenumber
data.llm.max_tokensinteger
data.voicemailobject
data.voicemail.enabledboolean
data.voicemail.messagestring | null
data.screening_detection_enabledboolean

When true, the worker detects Google/Apple call-screening bots and speaks screening_response before the opener. Defaults true.

data.screening_responsestring | null

Line spoken to a detected call-screening bot. null = the worker uses its built-in default at call time.

data.created_atstring (date-time)
data.updated_atstring (date-time) | null
data.pathfinderobject

Pathfinder settings for this agent.

data.pathfinder.enabledboolean

false when unset.

data.pathfinder.org_namestring | null
data.pathfinder.purpose_linestring | null
data.pathfinder.voicemail_messagestring | null
data.pathfinder.callback_numbersarray 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger 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
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].versioninteger | null
data[].created_atstring (date-time)
data[].created_byinteger | null

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger 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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.knowledge_basesarray of object
data.knowledge_bases[].idinteger
data.knowledge_bases[].agent_idinteger | null
data.knowledge_bases[].namestring | null
data.knowledge_bases[].descriptionstring | null
data.knowledge_bases[].kb_typestring | null
data.knowledge_bases[].statusstring | null
data.knowledge_bases[].priorityinteger
data.knowledge_bases[].is_enabledboolean
data.knowledge_bases[].chunk_sizeinteger
data.knowledge_bases[].chunk_overlapinteger
data.knowledge_bases[].total_documentsinteger
data.knowledge_bases[].total_chunksinteger
data.knowledge_bases[].total_size_bytesinteger
data.knowledge_bases[].bedrock_kb_idstring | null
data.knowledge_bases[].kendra_index_idstring | null
data.knowledge_bases[].s3_bucketstring | null
data.knowledge_bases[].s3_prefixstring | null
data.knowledge_bases[].custom_api_endpointstring | null
data.knowledge_bases[].last_sync_atstring (date-time) | null
data.knowledge_bases[].metadataany
data.knowledge_bases[].created_atstring (date-time) | null
data.knowledge_bases[].updated_atstring (date-time) | null
data.countinteger

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger required

Agent id

Request body application/json required

FieldTypeDescription
knowledge_base_idinteger 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
FieldTypeDescription
successboolean required

Always true

dataobject required
data.agent_idinteger
data.knowledge_basesarray of object
data.knowledge_bases[].idinteger
data.knowledge_bases[].agent_idinteger | null
data.knowledge_bases[].namestring | null
data.knowledge_bases[].descriptionstring | null
data.knowledge_bases[].kb_typestring | null
data.knowledge_bases[].statusstring | null
data.knowledge_bases[].priorityinteger
data.knowledge_bases[].is_enabledboolean
data.knowledge_bases[].chunk_sizeinteger
data.knowledge_bases[].chunk_overlapinteger
data.knowledge_bases[].total_documentsinteger
data.knowledge_bases[].total_chunksinteger
data.knowledge_bases[].total_size_bytesinteger
data.knowledge_bases[].bedrock_kb_idstring | null
data.knowledge_bases[].kendra_index_idstring | null
data.knowledge_bases[].s3_bucketstring | null
data.knowledge_bases[].s3_prefixstring | null
data.knowledge_bases[].custom_api_endpointstring | null
data.knowledge_bases[].last_sync_atstring (date-time) | null
data.knowledge_bases[].metadataany
data.knowledge_bases[].created_atstring (date-time) | null
data.knowledge_bases[].updated_atstring (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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

NameInTypeDescription
idpathinteger required

Agent id

kbIdpathinteger 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | 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