v52

OpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
Phone Numbers

Add phone numbers to a DIR

Register phone numbers under a DIR. The enterprise is resolved server-side from the DIR id. Same body, failure modes, and batch semantics whichever path form you use.

Pricing: This is a billable action. See https://telnyx.com/pricing/numbers for current pricing.

post/dir/{dir_id}/phone_numbers

Path parameters

dir_idstring uuid required
Example:16635d38-75a6-4481-82e8-69af60e05011

The DIR id. Lowercase UUID.

Request body

phone_numbersstring[] required

1–15 phone numbers in E.164 format. 10-digit US numbers are auto-prefixed with 1.

Example request

{
  "documents": [
    {
      "description": "Certificate of incorporation.",
      "document_id": "2a7e8337-e803-4057-a4ae-26c40eb0bc6c",
      "document_type": "business_registration"
    }
  ],
  "phone_numbers": [
    "+19493253498"
  ]
}

Response

Bulk-add response. Inspect both added and errors.

Example response

{
  "data": [
    {
      "batch_id": "0a4b1f5e-2f12-4c0c-9a98-9b3a7d8b8e62",
      "created_at": "2026-04-26T18:11:42.850928Z",
      "dir_id": "16635d38-75a6-4481-82e8-69af60e05011",
      "enterprise_id": "4a6192a4-573d-446d-b3ce-aff9117272a6",
      "id": "1f56eb76-4078-4af7-ad4d-564b027256ee",
      "phone_number": "+19493253498",
      "rejection_reason": {
        "code": "documentation_incomplete",
        "detail": "Provided documents do not establish business identity.",
        "message": "Please re-upload a clearer scan of the certificate.",
        "title": "Documentation incomplete"
      },
      "updated_at": "2026-04-26T18:12:11.123456Z",
      "verified_at": "2026-04-26T18:12:11.123456Z"
    }
  ]
}