Números SIP
Los números de teléfono asignados a tu organización.
GET /v1/sip-numbers
Phone numbers of my organization
Solo para usuarios con sesión iniciada (sin API key) · Rol: viewer o superior
Any signed-in member (not an API key). The numbers eco assigned to the organization, oldest assignment first, each with the assistant that answers its calls (null: nobody answers, the caller is hung up). Carrier configuration and trunk credentials remain private; outbound choices are listed separately. 401 when the token is missing, expired or invalid; 503 `sip_unavailable`.
Respuestas
200Successful Response · SipNumberListNombre Tipo Requerido Descripción itemsSipNumber[]sí items[].assigned_atstring (date-time)sí items[].assistant_idstring (uuid) | nullsí items[].idstring (uuid)sí items[].phone_e164stringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one in `x-min-role`, a suspended organization, or an API key without the operation's `x-api-key-scope` (any key, if the operation has none). · ErrorResponse503Code `sip_unavailable`. · ErrorResponsedefaultDefault Response · ErrorResponse
PUT /v1/sip-numbers/{number_id}/assistant
Choose the assistant that answers a number
Solo para usuarios con sesión iniciada (sin API key) · Rol: admin o superior
An `admin` or above (not an API key). Sets the assistant of one of the organization's numbers, or clears it with `assistant_id` null. A call to the number runs the latest published version of the assistant at the moment it arrives; an assistant that has never been published is accepted, and calls to the number are hung up until it is. Audited as `sip_number.set_assistant`. 401 when the token is missing, expired or invalid; 403 below `admin`; 404 when the number is not the organization's or the assistant does not exist in it; 422 `assistant_archived` when the assistant is archived (clearing the number is always allowed); 503 `sip_unavailable`.
Parámetros
| Nombre | En | Tipo | Requerido | Descripción |
|---|---|---|---|---|
number_id | path | string (uuid) | sí |
Cuerpo de la solicitud
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
assistant_id | string (uuid) | null | sí |
Respuestas
200Successful Response · SipNumberNombre Tipo Requerido Descripción assigned_atstring (date-time)sí assistant_idstring (uuid) | nullsí idstring (uuid)sí phone_e164stringsí 401Missing, expired or invalid token. · ErrorResponse403Role below the one this operation needs. · ErrorResponse404No such number or assistant. · ErrorResponse503Code `sip_unavailable`. · ErrorResponsedefaultDefault Response · ErrorResponse