get

View as MarkdownOpen in Claude

Retrieve a specific 10DLC campaign by ID.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the campaign.

Response

idstringRequiredformat: "uuid"
The unique identifier of the campaign.
namestringOptional
A name for the campaign.
statestringOptional
The current state of the campaign.
sms_use_casestringOptional
An SMS Use Case category for the campaign (2FA, ACCOUNT_NOTIFICATION, AGENTS_FRANCHISES, CARRIER_EXEMPT, CHARITY, CUSTOMER_CARE, DELIVERY_NOTIFICATION, EMERGENCY, FRAUD_ALERT, HIGHER_EDUCATION, K12_EDUCATION, LOW_VOLUME_MIXED, MARKETING, MIXED, POLITICAL, POLITICAL_SECTION_527, POLLING_VOTING, PROXY, PUBLIC_SERVICE_ANNOUNCEMENT, SECURITY_ALERT, SOCIAL, SWEEPSTAKE, TRIAL, UCAAS_HIGH_VOLUME, UCAAS_LOW_VOLUME).
sub_use_caseslist of stringsOptional
A sub use case category for MIXED or LOW_VOLUME_MIXED campaigns (CUSTOMER_CARE, HIGHER_EDUCATION, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, MARKETING, SECURITY_ALERT, 2FA, ACCOUNT_NOTIFICATION, DELIVERY_NOTIFICATION, FRAUD_ALERT).
campaign_verify_tokenstringOptional
Campaign Verify token. Required if sms use case is POLITICAL_SECTION_527.
descriptionstringOptional
A description for the campaign. Please use at least 40 characters.
sample1stringOptional
Sample message template/content. At least two samples are required and up to five can be provided. Please use at least 20 characters.
sample2stringOptional
Sample 2.
sample3stringOptional
Sample 3.
sample4stringOptional
Sample 4.
sample5stringOptional
Sample 5.
dynamic_templatesstringOptional
If your messaging content will be modified in any way beyond what you shared in your templates, please describe the nature of how the content will change.
message_flowstringOptional
Please describe the call to action/message flow your intended recipients will experience.
opt_in_messagestringOptional
Please share the message subscribers receive when they opt in.
opt_out_messagestringOptional
Please share the message subscribers receive when they opt out.
help_messagestringOptional
Please share the message subscribers receive when they request help.
opt_in_keywordsstringOptionalDefaults to START
Opt in keywords that subscribers can use.
opt_out_keywordsstringOptionalDefaults to STOP
Opt out keywords that subscribers can use.
help_keywordsstringOptionalDefaults to HELP
Help keywords that subscribers can use.
number_pooling_requiredbooleanOptional
Will 50 or more numbers be used with this single campaign? If so, please enter true.
number_pooling_per_campaignstringOptional
If you will be using number pooling, please provide an explanation as to why it is needed.
direct_lendingbooleanOptional
Will this campaign include content related to direct lending or other loan agreements?
embedded_phonebooleanOptional
Are you using an embedded phone number (except the required HELP information contact phone number)?
age_gated_contentbooleanOptional
Will this campaign include any age gated content as defined by carrier and CTA guidelines?
lead_generationbooleanOptional
Is there any intent of this campaign to generate leads?
csp_campaign_referencestringOptional
If you are your own Campaign Service Provider, what is the approved Campaign ID? (Mandatory for CSPs, otherwise please omit)
status_callback_urlstringOptional
Optional: Specify a URL to receive webhook notifications when your campaign's state changes. See the [10DLC status callback](/docs/apis/rest/campaign-registry/webhooks/ten-dlc-status-callback) docs for the webhook payload.
created_atdatetimeOptional
Timestamp when the campaign was created.
updated_atdatetimeOptional
Timestamp when the campaign was last updated.

Response Example

Response
1{
2 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3 "name": "My Campaign",
4 "state": "pending",
5 "sms_use_case": "MARKETING",
6 "sub_use_cases": [
7 "string"
8 ],
9 "campaign_verify_token": "string",
10 "description": "string",
11 "sample1": "this is a sample message your customer might receive",
12 "sample2": "this is a sample message your customer might receive",
13 "sample3": "string",
14 "sample4": "string",
15 "sample5": "string",
16 "dynamic_templates": "string",
17 "message_flow": "Users will opt in to receive messages from their doctor through a written form and we will send them an opt in message. Appointment reminders will then be sent ahead of their appointments.",
18 "opt_in_message": "Thanks for subscribing. Reply STOP to cancel at any time.",
19 "opt_out_message": "You have successfully been opted out. Reply START to opt back in at any time.",
20 "help_message": "You have successfully been opted out. Reply SUBSCRIBE to opt back in at any time.",
21 "opt_in_keywords": "Start,Subscribe,Opt In",
22 "opt_out_keywords": "Stop,Opt Out,Unsubscribe",
23 "help_keywords": "Help,Support,Request Call",
24 "number_pooling_required": true,
25 "number_pooling_per_campaign": "We have customer reps in every state and they each need their own number with local area code.",
26 "direct_lending": true,
27 "embedded_link": false,
28 "embedded_phone": false,
29 "age_gated_content": true,
30 "lead_generation": true,
31 "csp_campaign_reference": "1231231",
32 "status_callback_url": "https://example.com/handle_callback",
33 "created_at": "2024-01-15T09:30:00Z",
34 "updated_at": "2024-01-15T09:30:00Z"
35}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9campaign = client.registry.campaigns.get("campaign-id")
10print(campaign.get("description"), campaign.get("usecase"))