Skip to main content
POST
Conectar un teléfono a un agente

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>

Identificador del workspace multi-tenant. Obligatorio al autenticar con Authorization: Bearer, donde su ausencia devuelve 400 Workspace context is required. Con x-api-key es opcional: la llave ya identifica a su workspace y lo que mandes aquí se ignora.

Path Parameters

agentId
string<uuid>
required

Identificador del agente

Body

application/json
agentId
string<uuid>
required
phoneId
string<uuid>
required
testPhones
string[]
allowAll
boolean
default:false

Response

Teléfono asignado

agentId
string<uuid>
required
phoneId
string<uuid>
required
allowAll
boolean
required
testPhones
string[]
channel
string | null
assignedAt
string<date-time> | null