List phone number campaigns
Changed onReturns phone-number-to-campaign assignments for the authenticated account. Apply the documented filters and pagination parameters to narrow the result set.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/10dlc/phone_number_campaigns
- Auth: HTTP bearer
Query parameters
Number of records to return per page.
Page number to retrieve (1-based).
Consolidated filter parameter (deepObject style). Originally: filter[telnyx_campaign_id], filter[telnyx_brand_id], filter[tcr_campaign_id], filter[tcr_brand_id]
{
"telnyx_campaign_id": "f3575e15-32ce-400e-a4c0-dd78800c20b0",
"telnyx_brand_id": "f3575e15-32ce-400e-a4c0-dd78800c20b0",
"tcr_campaign_id": "CAMPID3",
"tcr_brand_id": "BRANDID"
}Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
Specifies the sort order for results. If not given, results are sorted by createdAt in descending order.
Response
Successful Response
Example response
{
"records": [
{
"phoneNumber": "+18005550199",
"brandId": "7ba705b7-22af-493f-addc-ac04b7ca071c",
"tcrBrandId": "BBRAND1",
"tcrCampaignId": "CCAMPA1",
"telnyxCampaignId": "3008dd9f-66d7-40e0-bf23-bf2d8d1a96ba",
"assignmentStatus": "ASSIGNED",
"tmobileNumberMappingStatus": "ADDED",
"nonTmobileNumberMappingStatus": "ADDED",
"createdAt": "2021-03-08T17:57:48.801186",
"updatedAt": "2021-03-08T17:57:48.801186"
}
]
}Changes
- breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - info
added the optional property
//to the response with the status
- breaking
- breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status - info
added the optional property
//to the response with the status
- breaking