List phone-number batches for a DIR
List the phone-number batches submitted under a DIR. The enterprise is resolved server-side from the DIR id.
GET
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The DIR id. Lowercase UUID.
Example:
"16635d38-75a6-4481-82e8-69af60e05011"
Query Parameters
1-based page number. Out-of-range values return an empty page with correct meta.
Required range:
x >= 1Example:
1
Items per page. Maximum 250; values above are clamped to 250.
Required range:
1 <= x <= 250Example:
20
Restrict to batches whose aggregate status equals this value. Phone-number lifecycle status.
submitted/in_review- Telnyx is reviewing the batch this number belongs to.verified- approved; the DIR's display identity will be shown on outbound calls from this number.unsuccessful- Telnyx rejected this submission; the customer may re-add to retry.suspended- temporarily disabled (e.g. by an active infringement claim on the DIR).expired- verification expired; re-add to renew.permanently_rejected- terminal; cannot be re-added on this or any other DIR you own.
Available options:
submitted, in_review, verified, unsuccessful, suspended, expired, permanently_rejected Response
Paginated list of batches.
JavaScript