Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
phones
Conectar un teléfono a un agente
curl --request POST \
  --url https://agents.studio.getsupervisor.ai/v1/agents/{agentId}/phones \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "agent_id": "b5f7608e-2ddd-4390-a3c0-4c31b8d7b2d7",
  "phone_id": "02717a1a-2314-4235-a8d8-cd54ca6c7b36",
  "test_phones": [],
  "allow_all": true
}
'
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "allow_all": true,
  "test_phones": [
    "<string>"
  ],
  "channel": "<string>",
  "assigned_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Path Parameters

agentId
string<uuid>
required

Identificador del agente

Body

application/json
agent_id
string<uuid>
required
phone_id
string<uuid>
required
test_phones
string[]
allow_all
boolean
default:false

Response

Teléfono asignado

agent_id
string<uuid>
required
phone_id
string<uuid>
required
allow_all
boolean
required
test_phones
string[]
channel
string | null
assigned_at
string<date-time> | null