Get inbound voice agent
GET
/api/v1/ext/voice-agents/inbound
Who answers the workspace's inbound calls, and the voice agents that could.
Auth: Bearer access_token
Scope: voice_agents.read
The voice agent chosen here picks up calls arriving on the workspace's lines after its inbound_answer_after_seconds unless a person answers first, within its inbound_hours when they are enabled. It is also the default voice agent for AI calls to contacts with no matching tag.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | A workspace of the installer. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Voice agents are switched off for the account |
403 | Missing scope |
404 | Workspace does not exist or is not the installer's (same response for both) |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/voice-agents/inbound" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": {
"workspace_id": 7,
"inbound_voice_agent_id": "va_01HZX4Q8K2",
"voice_agents": [
{
"id": "va_01HZX4Q8K2",
"name": "Sales Voice",
"status": "active",
"agent_name": "Sales Agent"
}
]
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters
A workspace of the installer.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/voice-agents/inbound
Previous
« Delete voice agent
Next
Set inbound voice agent »
