Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Identifies the resource.

Example:

"1293384261075731499"

Body

application/json

Parameters that can be set when creating an Upload request.

number_ids
string[]
required
Minimum array length: 1

Phone number ID from the Telnyx API.

usage
enum<string>

The use case of the upload request. NOTE: calling_user_assignment is not supported for toll free numbers.

Available options:
calling_user_assignment,
first_party_app_assignment
additional_usages
enum<string>[]

Additional use cases of the upload request. If not provided, all supported usages will be used.

Available options:
calling_user_assignment,
first_party_app_assignment
location_id
string<uuid>

Identifies the location to assign all phone numbers to.

civic_address_id
string<uuid>

Identifies the civic address to assign all phone numbers to.

Response

Successful response

success
boolean

Describes wether or not the operation was successful

ticket_id
string<uuid>

Ticket id of the upload request