Update campaign samples
/10dlc/campaigns/{campaignId}Replace a campaign's sample messages, the field carriers most often ask to change. OAuth apps need numbers:manage.
Path parameters
campaignIdRequiredstring10DLC campaign id (camp_...).
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Body parameters
JSONsamplesRequiredstring[]Example messages, as recipients will see them.
Returns
dataoptionalTenDlcCampaign
dataoptionalTenDlcCampaigncampaign_idRequiredstringCampaign id (camp_...).
brand_idRequiredstringusecaseRequiredstringstatusRequiredstringtcr_* is the registry's review, review_* the carriers' vetting, and mno_* the carriers' own. Numbers send once the campaign is mno_provisioned. A review_failed or mno_rejected campaign can be appealed.
"submitting""tcr_pending""tcr_accepted""tcr_failed""tcr_suspended""tcr_expired""review_accepted""review_failed""mno_pending""mno_accepted""mno_rejected""mno_provisioned""mno_provisioning_failed"detailsRequiredTenDlcCampaignDetailsWhat the campaign sends. Creating one needs usecase, samples, description, message_flow, subscriber_optin, subscriber_optout, subscriber_help, and terms_and_conditions (which must be true).
detailsRequiredTenDlcCampaignDetailsWhat the campaign sends. Creating one needs usecase, samples, description, message_flow, subscriber_optin, subscriber_optout, subscriber_help, and terms_and_conditions (which must be true).
usecaseoptionalstringUse case code; one of the use_cases values from GET /10dlc/options, e.g. MARKETING.
sub_usecasesoptionalstring[]Sub use case codes, for use cases that take them (MIXED, for one). GET /10dlc/usecases/{usecase}/qualification says how many.
samplesoptionalstring[]Example messages, as recipients will see them.
descriptionoptionalstringWhat the campaign sends and why.
message_flowoptionalstringHow recipients opt in: where they give consent and what they're told.
help_messageoptionalstringThe reply to HELP.
optin_messageoptionalstringThe reply when someone opts in.
optout_messageoptionalstringThe reply to STOP.
privacy_policy_linkoptionalstringURL of the privacy policy.
terms_and_conditions_linkoptionalstringURL of the terms and conditions.
embedded_link_sampleoptionalstringA sample of the links messages contain, when embedded_link is true.
help_keywordsoptionalstring[]Keywords that get the HELP reply.
optin_keywordsoptionalstring[]Keywords that opt a recipient in.
optout_keywordsoptionalstring[]Keywords that opt a recipient out.
subscriber_optinoptionalbooleanRecipients opt in before they're messaged.
subscriber_optoutoptionalbooleanRecipients can opt out.
subscriber_helpoptionalbooleanRecipients can get help by replying HELP.
terms_and_conditionsoptionalbooleanYou accept the carriers' 10DLC terms. Must be true.
embedded_linkoptionalbooleanMessages contain links.
embedded_phoneoptionalbooleanMessages contain phone numbers.
number_pooloptionalbooleanThe campaign sends from a pool of more than 49 numbers.
age_gatedoptionalbooleanContent is age-gated (alcohol, for example).
direct_lendingoptionalbooleanThe campaign is about direct lending or loans.
failure_reasonsRequiredstring | nullWhy the campaign was rejected.
created_atRequiredintegerEpoch ms.
updated_atRequiredintegerEpoch ms.
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X PATCH https://api.blooio.com/v4/10dlc/campaigns/obj_a1b2c3d4 \{ "data": { "campaign_id": "obj_a1b2c3d4", "brand_id": "obj_a1b2c3d4", "usecase": "MARKETING", "status": "submitting", "details": { "usecase": "string", "sub_usecases": [ "string" ], "samples": [ "string" ], "description": "Example description", "message_flow": "string", "help_message": "string", "optin_message": "string", "optout_message": "string", "privacy_policy_link": "https://example.com", "terms_and_conditions_link": "https://example.com", "embedded_link_sample": "https://example.com", "help_keywords": [ "string" ], "optin_keywords": [ "string" ], "optout_keywords": [ "string" ], "subscriber_optin": false, "subscriber_optout": false, "subscriber_help": false, "terms_and_conditions": false, "embedded_link": false, "embedded_phone": false, "number_pool": false, "age_gated": false, "direct_lending": false }, "failure_reasons": "string", "created_at": 0, "updated_at": 0 }}