List all Upload requests
GET/external_connections/:id/uploads
Returns a list of your Upload requests for the given external connection.
Request
Path Parameters
id int64required
Identifies the resource.
Query Parameters
page[number] integer
Possible values: >= 1
Default value: 1
The page number to load
page[size] integer
Possible values: >= 1
and <= 250
Default value: 250
The size of the page
filter[status][eq] string[]
Possible values: [pending_upload
, pending
, in_progress
, success
, error
]
The status of the upload to filter by
filter[civic_address_id][eq] uuid
The civic address ID to filter by
filter[location_id][eq] uuid
The location ID to filter by
filter[phone_number][eq] E164
The phone number to filter by
filter[phone_number][contains] string
The partial phone number to filter by. Requires 3-15 digits.
Responses
200: Successful response
- application/json
401: Unauthorized
404: Not found
422: Bad request
Request samples
curl -L 'https://api.telnyx.com/v2/external_connections/:id/uploads' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"tenant_id": "ea175aba-f47c-4702-9400-efaa42688048",
"location_id": "c37e5036-1e87-42e6-86a2-b3e8dd39a2ad",
"status": "error",
"available_usages": [
"calling_user_assignment"
],
"error_code": "string",
"error_message": "string",
"tn_upload_entries": [
{
"number_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"phone_number": "string",
"status": "error",
"error_code": "internal_error",
"error_message": "string",
"civic_address_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"internal_status": "error"
}
]
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}