Telnyx Phone Number Campaigns API
Phone number campaign assignment
Phone number campaign assignment
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/telnyx:telnyx-phone-number-campaigns-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Telnyx Phone Number Campaigns API
version: 2.0.0
contact:
email: support@telnyx.com
x-endpoint-cost: light
x-refined-note:
- x-latency-category differs across the merged source definitions and was not carried
description: 'Operations tagged Phone Number Campaigns across 2 of this provider''s published API definitions: telnyx-openapi.yml, telnyx-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: Version 2.0.0 of the Telnyx API
url: https://api.telnyx.com/v2
security:
- bearerAuth: []
tags:
- description: Phone number campaign assignment
name: Phone Number Campaigns
paths:
/10dlc/phone_number_campaigns:
get:
operationId: GetAllPhoneNumberCampaigns
parameters:
- in: query
name: recordsPerPage
required: false
schema:
default: 20
title: Recordsperpage
type: integer
- in: query
name: page
required: false
schema:
default: 1
title: Page
type: integer
- $ref: '#/components/parameters/10dlc_FilterConsolidated'
- description: Specifies the sort order for results. If not given, results are sorted by createdAt in descending order.
example: -phoneNumber
in: query
name: sort
required: false
schema:
default: -createdAt
description: Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
enum:
- assignmentStatus
- -assignmentStatus
- createdAt
- -createdAt
- phoneNumber
- -phoneNumber
title: Sort
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaignPaginated'
description: Successful Response
4XX:
$ref: '#/components/responses/10dlc_GenericErrorResponse'
summary: List phone number campaigns
tags:
- Phone Number Campaigns
x-latency-category: responsive
post:
operationId: CreatePhoneNumberCampaign
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaignCreate'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaign'
description: Successful Response
4XX:
$ref: '#/components/responses/10dlc_GenericErrorResponse'
summary: Create New Phone Number Campaign
tags:
- Phone Number Campaigns
x-latency-category: responsive
servers:
- description: Version 2.0.0 of the Telnyx API
url: https://api.telnyx.com/v2
/10dlc/phone_number_campaigns/{phoneNumber}:
delete:
description: This endpoint allows you to remove a campaign assignment from the supplied `phoneNumber`.
operationId: DeletePhoneNumberCampaign
parameters:
- in: path
name: phoneNumber
required: true
schema:
title: Phonenumber
type: string
responses:
'200':
$ref: '#/components/responses/SinglePhoneNumberCampaign'
4XX:
$ref: '#/components/responses/10dlc_GenericErrorResponse'
summary: Delete Phone Number Campaign
tags:
- Phone Number Campaigns
x-latency-category: responsive
get:
description: Retrieve an individual phone number/campaign assignment by `phoneNumber`.
operationId: GetSinglePhoneNumberCampaign
parameters:
- in: path
name: phoneNumber
required: true
schema:
title: Phonenumber
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaign'
description: Successful Response
4XX:
$ref: '#/components/responses/10dlc_GenericErrorResponse'
summary: Get Single Phone Number Campaign
tags:
- Phone Number Campaigns
x-latency-category: responsive
put:
operationId: PutPhoneNumberCampaign
parameters:
- in: path
name: phoneNumber
required: true
schema:
title: Phonenumber
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaignCreate'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaign'
description: Successful Response
4XX:
$ref: '#/components/responses/10dlc_GenericErrorResponse'
summary: Create New Phone Number Campaign
tags:
- Phone Number Campaigns
x-latency-category: responsive
servers:
- description: Version 2.0.0 of the Telnyx API
url: https://api.telnyx.com/v2
components:
schemas:
PhoneNumberCampaignPaginated:
properties:
page:
title: Page
type: integer
records:
items:
$ref: '#/components/schemas/PhoneNumberCampaign'
title: Records
type: array
totalRecords:
title: Totalrecords
type: integer
required:
- records
- page
- totalRecords
title: PhoneNumberCampaignPaginated
type: object
PhoneNumberCampaignCreate:
properties:
campaignId:
description: The ID of the campaign you want to link to the specified phone number.
example: 4b300178-131c-d902-d54e-72d90ba1620j
title: Campaignid
type: string
phoneNumber:
description: The phone number you want to link to a specified campaign.
example: '+18005550199'
title: Phonenumber
type: string
required:
- phoneNumber
- campaignId
title: PhoneNumberCampaignCreate
type: object
10dlc_Errors:
properties:
errors:
items:
$ref: '#/components/schemas/10dlc_Error'
type: array
type: object
PhoneNumberCampaign:
properties:
assignmentStatus:
description: The assignment status of the number.
enum:
- FAILED_ASSIGNMENT
- PENDING_ASSIGNMENT
- ASSIGNED
- PENDING_UNASSIGNMENT
- FAILED_UNASSIGNMENT
example: ASSIGNED
title: AssignmentStatus
type: string
brandId:
description: Brand ID. Empty if the number is associated to a shared campaign.
example: 7ba705b7-22af-493f-addc-ac04b7ca071c
title: BrandId
type: string
campaignId:
description: 'For shared campaigns, this is the TCR campaign ID, otherwise it is the campaign ID '
title: Campaignid
type: string
createdAt:
example: '2021-03-08T17:57:48.801186'
title: Createdat
type: string
failureReasons:
description: Extra info about a failure to assign/unassign a number. Relevant only if the assignmentStatus is either FAILED_ASSIGNMENT or FAILED_UNASSIGNMENT
type: string
phoneNumber:
example: '+18005550199'
title: Phonenumber
type: string
tcrBrandId:
description: TCR's alphanumeric ID for the brand.
example: BBRAND1
title: TcrBrandId
type: string
tcrCampaignId:
description: TCR's alphanumeric ID for the campaign.
example: CCAMPA1
title: TcrCampaignid
type: string
telnyxCampaignId:
description: Campaign ID. Empty if the number is associated to a shared campaign.
example: 3008dd9f-66d7-40e0-bf23-bf2d8d1a96ba
title: Telnyxcampaignid
type: string
updatedAt:
example: '2021-03-08T17:57:48.801186'
title: Updatedat
type: string
required:
- phoneNumber
- campaignId
- createdAt
- updatedAt
title: PhoneNumberCampaign
type: object
10dlc_Error:
properties:
code:
type: string
detail:
type: string
source:
properties:
parameter:
description: Indicates which query parameter caused the error.
type: string
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
type: object
title:
type: string
required:
- code
- title
type: object
Errors:
properties:
errors:
type: array
items:
$ref: '#/components/schemas/billing-group_Error'
type: object
PhoneNumberCampaign_2:
title: PhoneNumberCampaign
required:
- phoneNumber
- campaignId
- createdAt
- updatedAt
type: object
properties:
phoneNumber:
title: Phonenumber
type: string
example: '+18005550199'
brandId:
description: Brand ID. Empty if the number is associated to a shared campaign.
title: BrandId
type: string
example: 7ba705b7-22af-493f-addc-ac04b7ca071c
tcrBrandId:
description: TCR's alphanumeric ID for the brand.
title: TcrBrandId
type: string
example: BBRAND1
campaignId:
description: 'For shared campaigns, this is the TCR campaign ID, otherwise it is the campaign ID '
title: Campaignid
type: string
tcrCampaignId:
description: TCR's alphanumeric ID for the campaign.
title: TcrCampaignid
type: string
example: CCAMPA1
telnyxCampaignId:
description: Campaign ID. Empty if the number is associated to a shared campaign.
title: Telnyxcampaignid
type: string
example: 3008dd9f-66d7-40e0-bf23-bf2d8d1a96ba
assignmentStatus:
description: The assignment status of the number.
title: AssignmentStatus
enum:
- FAILED_ASSIGNMENT
- PENDING_ASSIGNMENT
- ASSIGNED
- PENDING_UNASSIGNMENT
- FAILED_UNASSIGNMENT
example: ASSIGNED
type: string
tmobileNumberMappingStatus:
description: The T-Mobile assignment status of the number.
title: TMobileNumberMappingStatus
type: string
example: ADDED
nonTmobileNumberMappingStatus:
description: The assignment status of the number towards other carriers.
title: NonTMobileNumberMappingStatus
type: string
example: ADDED
failureReasons:
description: Extra info about a failure to assign/unassign a number. Relevant only if the assignmentStatus is either FAILED_ASSIGNMENT or FAILED_UNASSIGNMENT
type: string
createdAt:
title: Createdat
type: string
example: '2021-03-08T17:57:48.801186'
updatedAt:
title: Updatedat
type: string
example: '2021-03-08T17:57:48.801186'
billing-group_Error:
type: object
required:
- code
- title
properties:
code:
type: integer
format: int32
title:
type: string
detail:
type: string
source:
type: object
properties:
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
parameter:
description: Indicates which query parameter caused the error.
type: string
meta:
type: object
properties: {}
additionalProperties: true
responses:
10dlc_GenericErrorResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/10dlc_Errors'
description: Generic response error
SinglePhoneNumberCampaign:
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberCampaign'
description: Successful Response
10dlc_GenericErrorResponse_ca4eb0ad6f:
description: Generic response error
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
example:
errors:
- code: string
title: string
detail: string
source:
pointer: string
parameter: string
parameters:
10dlc_FilterConsolidated:
description: 'Consolidated filter parameter (deepObject style). Originally: filter[telnyx_campaign_id], filter[telnyx_brand_id], filter[tcr_campaign_id], filter[tcr_brand_id]'
explode: true
in: query
name: filter
schema:
properties:
tcr_brand_id:
description: Filter results by the TCR Brand id
example: BRANDID
type: string
tcr_campaign_id:
description: Filter results by the TCR Campaign id
example: CAMPID3
type: string
telnyx_brand_id:
description: Filter results by the Telnyx Brand id
example: f3575e15-32ce-400e-a4c0-dd78800c20b0
format: uuid
type: string
telnyx_campaign_id:
description: Filter results by the Telnyx Campaign id
example: f3575e15-32ce-400e-a4c0-dd78800c20b0
format: uuid
type: string
type: object
style: deepObject
securitySchemes:
bearerAuth:
scheme: bearer
type: http
branded-calling_bearerAuth:
description: API key passed as a Bearer token in the Authorization header
scheme: bearer
type: http
oauthClientAuth:
description: OAuth 2.0 authentication for Telnyx API and MCP integrations
flows:
authorizationCode:
authorizationUrl: https://api.telnyx.com/v2/oauth/authorize
refreshUrl: https://api.telnyx.com/v2/oauth/token
scopes:
admin: Administrative access to Telnyx resources
tokenUrl: https://api.telnyx.com/v2/oauth/token
clientCredentials:
scopes:
admin: Administrative access to Telnyx resources
tokenUrl: https://api.telnyx.com/v2/oauth/token
type: oauth2
outbound-voice-profiles_bearerAuth:
bearerFormat: JWT
scheme: bearer
type: http
pronunciation-dicts_bearerAuth:
description: Telnyx API v2 key. Obtain from https://portal.telnyx.com
scheme: bearer
type: http
stored-payment-transactions_bearerAuth:
bearerFormat: JWT
scheme: bearer
type: http
BearerAuth:
type: http
scheme: bearer
bearerFormat: API key
description: 'Telnyx API key supplied as `Authorization: Bearer <token>`. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.'
Payment:
type: apiKey
in: header
name: Authorization
description: 'Machine Payment Protocol credential used on paid retries, sent as `Authorization: Payment ...`. Obtained by paying a challenge returned in the `WWW-Authenticate` header of a 402 response. This is not a Telnyx API key; initial challenge requests use standard bearer authentication instead.'
agent-memory_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key
collections_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Collections and results are automatically scoped to the authenticated user's organization.
number-reputation_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
rcs-registration_bearerAuth:
type: http
scheme: bearer
bearerFormat: API key
transcriptions-search_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Results are automatically scoped to the authenticated user's organization.
web-search_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key
x-refined-from:
- telnyx-openapi.yml
- telnyx-openapi.json