Create SIP trunk
Required scope: sessions:manage
Connects a PBX or SIP trunk to WhatsApp calls. An outbound trunk receives the incoming WhatsApp calls of sessions whose call settings route to it. An inbound trunk lets your PBX place WhatsApp calls through a session. For trunks that accept calls from your PBX, the response contains the digest credentials once.
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Body
Display name, 1 to 100 characters.
Value constraints
1 - 100Specifies direction for this management platform access create sip trunk request.
Allowed values
inbound, outbound, both Project that owns the trunk. Required for organization keys; project keys use their own project.
Value constraints
Defaults to true.
Specifies outbound for this management platform access create sip trunk request.
Specifies inbound for this management platform access create sip trunk request.
Distinct codecs in preference order. Defaults to PCMU, PCMA, opus.
Allowed item values
Value constraints
1 - 3 elementsPCMU, PCMA, opus 1 to 500. Defaults to 30.
Value constraints
1 <= x <= 500