cURL
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Identificador del workspace multi-tenant.
Identificador del agente
Teléfono asignado