For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
    • Welcome
  • API Reference
      • GETListar SIP Trunks
      • POSTCrear SIP Trunk
      • GETObtener SIP Trunk
      • DELEliminar SIP Trunk
      • PATCHActualizar SIP Trunk
Logo
API ReferenceSip Trunks

Crear SIP Trunk

POST
https://nebrijaai.com/api/v1/sip-trunks
POST
/api/v1/sip-trunks
$curl -X POST https://nebrijaai.com/api/v1/sip-trunks \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "Trunk Principal Madrid",
> "gateways": [
> {
> "ipOrDomain": "sip-gateway1.telefonica.es"
> }
> ]
>}'
200Successful
1{
2 "id": "a3f47b9e-8c2d-4f1a-9b7e-2d5f3c6a7e8f",
3 "name": "Trunk Principal Madrid",
4 "gateways": [
5 {
6 "ipOrDomain": "sip-gateway1.telefonica.es",
7 "port": 5060,
8 "name": "Gateway Madrid Central"
9 }
10 ],
11 "authentication": {
12 "username": "trunkuser_madrid",
13 "password": "********"
14 },
15 "advanced": {},
16 "isSystem": false,
17 "providerId": "livekit-12345-mad",
18 "createdAt": "2024-01-15T09:30:00Z",
19 "updatedAt": "2024-01-15T09:30:00Z"
20}

Crea un nuevo SIP Trunk y lo sincroniza con el proveedor de telefonía (LiveKit).

Was this page helpful?
Previous

Obtener SIP Trunk

Next
Built with

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired
Nombre descriptivo del SIP Trunk.
gatewayslist of objectsRequired
Lista de gateways SIP para este trunk.
authenticationobjectOptional
advancedobjectOptional

Configuración avanzada opcional.

Response

SIP Trunk creado.
idstringformat: "uuid"
namestring
gatewayslist of objects
authenticationobject
advancedobject

Configuración avanzada del trunk.

isSystemboolean

Indica si es un trunk del sistema (no modificable/eliminable).

providerIdstring

ID del trunk en el proveedor externo (LiveKit).

createdAtdatetime
updatedAtdatetime