List agents
GET
/v1/agents
const url = 'https://api.orvoca.com/v1/agents?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.orvoca.com/v1/agents?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
Responses
Section titled “Responses”Agents, newest first
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
name
required
string
status
required
string
template
required
string | null
draft
required
object
name
required
string
greeting
required
string
instructions
required
string
language
required
Marathi, Bengali, Gujarati, Punjabi and Odia only where call_languages on the workspace lists them
string
auto_switch
required
boolean
voice_id
required
string
speed
required
number
settings
required
object
interruptions
required
boolean
max_call_minutes
required
integer
silence_timeout_s
required
integer
transfer_number
required
string | null
record_calls
required
boolean
ai_disclosure
required
boolean
ai_disclosure_text
required
string
end_call_phrases
required
Array<string>
tool_ids
Tools from /v1/tools the agent may use
Array<string>
has_unpublished_changes
required
boolean
published_version_id
required
string | null
outbound_number_id
required
Default number for outbound calls
string | null
created_at
required
string
updated_at
required
string | null
next_cursor
required
string | null
has_more
required
boolean
Example
{ "data": [ { "id": "agt_01JF8Z6Q3X7K9M2N4P6R8T0V2W", "status": "draft", "draft": { "language": "hi-IN", "voice_id": "priya", "tool_ids": [] } } ]}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}