Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.

Path Parameters

dir_id
string<uuid>
required

The DIR id.

Body

application/json
phone_numbers
string[]
required

Telephone numbers to authorize on the DIR, in +E164 format (+ followed by 10-15 digits). Max 15 per request.

Required array length: 1 - 15 elements
Pattern: ^\+[1-9][0-9]{9,14}$
agent
object

Optional. The third-party reseller / partner managing the enterprise's phone numbers on its behalf; omitted, the LOA marks the Authorized Agent block as N/A. A call center (BPO) adding numbers to a client's DIR puts its own details here. The letter is signed by the DIR enterprise's organization contact (the client, in the BPO case), not by the agent.

signature
object

Optional. When provided the rendered PDF embeds the signature image, printed name, and signed-at date. When absent the PDF is returned unsigned so the customer can sign externally and upload it via the Documents API.

Response

The rendered LOA PDF.

The response is of type file.