Referencia de la API

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

  • 200 Successful Response · SipNumberList
    NombreTipoRequeridoDescripción
    itemsSipNumber[]sí
    items[].assigned_atstring (date-time)sí
    items[].assistant_idstring (uuid) | nullsí
    items[].idstring (uuid)sí
    items[].phone_e164stringsí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role 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). · ErrorResponse
  • 503 Code `sip_unavailable`. · ErrorResponse
  • default Default 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

NombreEnTipoRequeridoDescripción
number_idpathstring (uuid)sí

Cuerpo de la solicitud

NombreTipoRequeridoDescripción
assistant_idstring (uuid) | nullsí

Respuestas

  • 200 Successful Response · SipNumber
    NombreTipoRequeridoDescripción
    assigned_atstring (date-time)sí
    assistant_idstring (uuid) | nullsí
    idstring (uuid)sí
    phone_e164stringsí
  • 401 Missing, expired or invalid token. · ErrorResponse
  • 403 Role below the one this operation needs. · ErrorResponse
  • 404 No such number or assistant. · ErrorResponse
  • 503 Code `sip_unavailable`. · ErrorResponse
  • default Default Response · ErrorResponse