Skip to main content
GET
JavaScript

Authorizations

Authorization
string
header
required

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

Path Parameters

enterprise_id
string<uuid>
required

The enterprise id. Lowercase UUID.

Example:

"4a6192a4-573d-446d-b3ce-aff9117272a6"

Query Parameters

page[number]
integer
default:1

1-based page number. Out-of-range values return an empty page with correct meta.

Required range: x >= 1
Example:

1

page[size]
integer
default:20

Items per page. Maximum 250; values above are clamped to 250.

Required range: 1 <= x <= 250
Example:

20

sort
enum<string>
default:-created_at

Sort field. Allowed: created_at, updated_at, display_name, status, submitted_at, verified_at, expiring_at. Prefix with - for descending. Default -created_at.

Available options:
created_at,
-created_at,
updated_at,
-updated_at,
display_name,
-display_name,
status,
-status,
submitted_at,
-submitted_at,
verified_at,
-verified_at,
expiring_at,
-expiring_at
filter[expiring_at][gte]
string<date-time>

Return only DIRs whose expiring_at is at or after this ISO-8601 timestamp.

filter[expiring_at][lte]
string<date-time>

Return only DIRs whose expiring_at is at or before this ISO-8601 timestamp.

filter[expiring_within_days]
integer

Convenience: returns DIRs whose expiring_at falls within the next N days (1–365). Equivalent to setting filter[expiring_at][gte]=<now> + filter[expiring_at][lte]=<now+N>. Mutually exclusive with the explicit [gte]/[lte] filters - combining returns 400.

Required range: 1 <= x <= 365
filter[status]
enum<string>

Filter by DIR status. DIR lifecycle status.

  • draft - newly created; editable; not yet submitted.
  • submitted / in_review - Telnyx is reviewing.
  • verified - approved; phone numbers may be attached.
  • rejected - Telnyx rejected this submission; rejection_reasons is populated; customer can edit and resubmit.
  • unsuccessful - system-side error during processing; customer can edit and resubmit.
  • suspended - temporarily disabled (e.g. by an active infringement claim).
  • expired - verification expired; customer must resubmit.
  • infringement_claimed - a trademark/impersonation claim is open against this DIR.
  • permanently_rejected - terminal; cannot be resubmitted.
Available options:
draft,
submitted,
in_review,
verified,
rejected,
unsuccessful,
suspended,
expired,
infringement_claimed,
permanently_rejected
filter[display_name][contains]
string

Case-insensitive partial match on display name.

filter[call_reason][contains]
string

Case-insensitive partial match on call reason.

Response

Paginated list of DIRs.

data
object[]
required
meta
object
required

JSON:API pagination metadata returned with every paginated list response. Page numbering is 1-based. page_size reports the number of items actually returned in data for this page; the requested size is taken from the page[size] query parameter.