Skip to main content

Create a CSV download

POST 
/phone_numbers/csv_downloads

Create a CSV download

Request

Query Parameters

    csv_format string

    Possible values: [V1, V2]

    Default value: V1

    Which format to use when generating the CSV file. The default for backwards compatibility is 'V1'

    filter object

    Consolidated filter parameter (deepObject style). Originally: filter[has_bundle], filter[tag], filter[connection_id], filter[phone_number], filter[status], filter[voice.connection_name], filter[voice.usage_payment_method], filter[billing_group_id], filter[emergency_address_id], filter[customer_reference]

Responses

200: Successful response with details about a CSV download.

default: Unexpected error

Request samples


curl -L -X POST 'https://api.telnyx.com/v2/phone_numbers/csv_downloads' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"id": "42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
"record_type": "csv_download",
"url": "https://www.telnyx.com/sample/42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
"status": "pending"
}
]
}