Skip to main content
Use the Number Linking API to associate phone numbers with your 10DLC campaigns. You must link a number to a campaign before using it to send messages. This API allows you to link numbers, retrieve linked numbers, check linking status, and unlink numbers from campaigns.

API Endpoint

BaseURI

The Number Object

Attributes

campaign_id
string
Unique identifier for a campaign.
campaign_alias
string
Friendly name for the campaign.
usecase
string
Use case of the campaign.
phone_numbers
array
Array containing status of each number linked to the campaign. Each entry includes number and status fields.

Example Object


Link one or more phone numbers to an existing campaign.

Arguments

numbers
array
required
The numbers you want to link to a campaign. Numbers should be in E.164 format.
url
string
Fully qualified URL to which status update callbacks for the linking request should be sent.
method
string
The HTTP method to be used when calling the URL defined above. Allowed values: GET, POST. Defaults to POST.

Response


Retrieve All Numbers Linked to a Campaign

Fetch all numbers linked to a particular campaign.
No arguments need to be passed.
The status field in the phone_numbers array can have the following values:
  • FAILED - The linking request failed
  • PROCESSING - The linking request is being processed
  • COMPLETED - The number has been successfully linked

Response


Retrieve Number Status

Fetch the status of a specific number linked to a campaign.
No arguments need to be passed.
The status field can have the values FAILED, PROCESSING, or COMPLETED.

Response


Unlink a phone number from a campaign.

Arguments

url
string
Fully qualified URL to which status update callbacks for the unlinking request should be sent.
method
string
The HTTP method to be used when calling the URL defined above. Allowed values: GET, POST. Defaults to POST.

Response