API reference
SMS
How these fit together: the SMS guide.
List SMS brands
get
Lists the organization’s 10DLC brands.
Every brand, oldest first, in one page (nextCursor is always null).
Access: an organization key with the sms:read scope.
Response 200PublicSmsBrandPage
dataPublicSmsBrand[]RequiredIts fields are listed under Get SMS brand
nextCursorstring | nullRequiredAlways null: every brand is in one page.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/brands' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"address": {
"city": "CITY",
"country": "COUNTRY",
"postalCode": "POSTAL_CODE",
"state": "STATE",
"street": "STREET"
},
"authorizedContact": {
"email": "s•••@acmeplumbing.test",
"firstName": "FIRST_NAME",
"lastName": "LAST_NAME",
"phone": "•••• ••0142",
"seniority": "DIRECTOR",
"title": "TITLE"
},
"companyName": "COMPANY_NAME",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"doingBusinessAs": "DOING_BUSINESS_AS",
"ein": "•••••6789",
"entityType": "PRIVATE",
"id": "ID",
"livemode": true,
"object": "sms_brand",
"reference": "REFERENCE",
"registryId": "REGISTRY_ID",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z",
"vertical": "PROFESSIONAL",
"website": "WEBSITE"
}
],
"nextCursor": "NEXT_CURSOR"
}Create SMS brand
post
Registers a US 10DLC brand: the business behind your texts.
Saves the brand pending and files it with the registry (or the platform’s review): sms.registration.updated tells each move — submitted, then approved or rejected with statusReason. The EIN, address and authorized contact are stored encrypted and shown masked. Idempotent on reference: the same body again answers the brand it made. Refused 400 VALIDATION_FAILED for a missing EIN (except a government entity) or a public company without its listing; audited. A test key registers in the sandbox (livemode: false): never filed with the registry, submitted at once to the sandbox’s own review and decided with POST /v1/sandbox/sms-registrations/review.
Access: an organization key with the sms:manage scope.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
addressPublicSmsBrandAddressRequired5 fields of
addresscitystringRequiredat most 120 characters
countrystringRequiredISO 3166-1 alpha-2.
postalCodestringRequiredat most 16 characters
statestringRequiredThe state’s two-letter code.
streetstringRequiredat most 255 characters
authorizedContactPublicSmsBrandContactRequiredThe person who can vouch for the business. Their email and phone are stored encrypted and shown masked.
6 fields of
authorizedContactemailstringRequiredfirstNamestringRequiredat most 100 characters
lastNamestringRequiredat most 100 characters
phonestringRequiredInternational format. Stored encrypted; shown masked.
senioritystringRequiredOne of
DIRECTORGMVPCEOCFOGENERAL_COUNSELOTHERtitlestringRequiredat most 100 characters
businessContactEmailstringBrand verification contact on the business’s own domain (required by carriers for a public-facing brand).
companyNamestringRequiredThe legal name, as on the EIN.
at most 255 characters
doingBusinessAsstringThe name customers know, when it differs.
at most 255 characters
einstringThe Employer Identification Number, nine digits — required except for a government entity. Stored encrypted; shown by its last four digits.
einIssuingCountrystringThe country that issued the EIN; US by default.
entityTypestringRequiredOne of
PRIVATEPUBLICNON_PROFITGOVERNMENTreferencestringRequiredYour own id for it — the idempotency key: sending the same body again with it answers the registration it made (never a second one); another body with it is
409 SMS_REGISTRATION_REFERENCE_CONFLICT. Letters, digits and_ . : -.1–200 characters
stockExchangestringA PUBLIC company’s exchange.
One of
NASDAQNYSEAMEXAMXASXB3BMEBSEFRAICEXJPXJSEKRXLONNSEOMXSEHKSGXSSESTOSWXSZSETSXTWSEVSEOTHERstockSymbolstringA PUBLIC company’s ticker.
at most 10 characters
verticalstringRequiredOne of
PROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATIONwebsitestringat most 512 characters
Response 201PublicSmsBrand
Its fields are listed under Get SMS brand.
Errors
400VALIDATION_FAILED.401API_KEY_INVALID — missing, unknown, revoked or expired key.403ENTITLEMENT_MESSAGING_DISABLED; API_KEY_SCOPE_MISSING (sms:manage).409SMS_REGISTRATION_REFERENCE_CONFLICT — thatreferencenames a registration made with another body (send the same body to read it back, or use a new reference); or IDEMPOTENCY_KEY_IN_FLIGHT.422IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/sms/brands' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"address": {
"city": "Austin",
"country": "US",
"postalCode": "78701",
"state": "TX",
"street": "123 Main St"
},
"authorizedContact": {
"email": "sam@acmeplumbing.test",
"firstName": "Sam",
"lastName": "Rivera",
"phone": "+15125550142",
"seniority": "CEO",
"title": "Owner"
},
"businessContactEmail": "compliance@acmeplumbing.test",
"companyName": "Acme Plumbing LLC",
"doingBusinessAs": "Acme Plumbing",
"ein": "12-3456789",
"einIssuingCountry": "US",
"entityType": "PRIVATE",
"reference": "brand_acme_plumbing",
"stockSymbol": "ACME",
"vertical": "CONSTRUCTION",
"website": "https://acmeplumbing.test"
}'{
"address": {
"city": "CITY",
"country": "COUNTRY",
"postalCode": "POSTAL_CODE",
"state": "STATE",
"street": "STREET"
},
"authorizedContact": {
"email": "s•••@acmeplumbing.test",
"firstName": "FIRST_NAME",
"lastName": "LAST_NAME",
"phone": "•••• ••0142",
"seniority": "DIRECTOR",
"title": "TITLE"
},
"companyName": "COMPANY_NAME",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"doingBusinessAs": "DOING_BUSINESS_AS",
"ein": "•••••6789",
"entityType": "PRIVATE",
"id": "ID",
"livemode": true,
"object": "sms_brand",
"reference": "REFERENCE",
"registryId": "REGISTRY_ID",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z",
"vertical": "PROFESSIONAL",
"website": "WEBSITE"
}Get SMS brand
get
Reads one 10DLC brand and where its registration stands.
The brand as GET /v1/sms/brands lists it. 404 NOT_FOUND for one that is not yours.
Access: an organization key with the sms:read scope.
Path parameters
brandIdstringRequired
Response 200PublicSmsBrand
Show the 19 fieldsHide the fields
addressPublicSmsBrandAddressView | nullRequired5 fields of
addresscitystringRequiredcountrystringRequiredpostalCodestringRequiredstatestringRequiredstreetstringRequired
authorizedContactPublicSmsBrandContactView | nullRequired6 fields of
authorizedContactemailstringRequiredfirstNamestringRequiredlastNamestringRequiredphonestringRequiredsenioritystringRequiredOne of
DIRECTORGMVPCEOCFOGENERAL_COUNSELOTHERtitlestringRequired
companyNamestringRequiredcreatedAtstring (date-time)RequireddecidedAtstring (date-time) | nullRequireddoingBusinessAsstring | nullRequiredeinstring | nullRequiredThe EIN by its last four digits.
entityTypestringRequiredOne of
PRIVATEPUBLICNON_PROFITGOVERNMENTidstring (uuid)RequiredlivemodebooleanRequiredFalse for a test key’s sandbox registration: never filed with the registry, decided by the test key (
POST /v1/sandbox/sms-registrations/review).objectstringRequiredOne of
sms_brandreferencestringRequiredregistryIdstring | nullRequiredThe registry’s id once filed; null before.
statusstringRequiredpending(saved; a campaign waits for its brand, a number for its campaign, to be approved),submitted(filed with the registry, or waiting for the platform’s review),approved,rejected(statusReasonsays why),expired(a campaign the registry let lapse) orremoved(a number taken off its campaign).One of
pendingsubmittedapprovedrejectedexpiredremovedstatusReasonstring | nullRequiredsubmittedAtstring (date-time) | nullRequiredupdatedAtstring (date-time)RequiredverticalstringRequiredOne of
PROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATIONwebsitestring | nullRequired
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such brand.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/brands/BRAND_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"address": {
"city": "CITY",
"country": "COUNTRY",
"postalCode": "POSTAL_CODE",
"state": "STATE",
"street": "STREET"
},
"authorizedContact": {
"email": "s•••@acmeplumbing.test",
"firstName": "FIRST_NAME",
"lastName": "LAST_NAME",
"phone": "•••• ••0142",
"seniority": "DIRECTOR",
"title": "TITLE"
},
"companyName": "COMPANY_NAME",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"doingBusinessAs": "DOING_BUSINESS_AS",
"ein": "•••••6789",
"entityType": "PRIVATE",
"id": "ID",
"livemode": true,
"object": "sms_brand",
"reference": "REFERENCE",
"registryId": "REGISTRY_ID",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z",
"vertical": "PROFESSIONAL",
"website": "WEBSITE"
}List SMS campaigns
get
Lists the organization’s 10DLC campaigns.
Every campaign (or one brand’s, with brandId), oldest first, in one page (nextCursor is always null).
Access: an organization key with the sms:read scope.
Query parameters
brandIdstring (uuid)Only this brand’s campaigns.
Response 200PublicSmsCampaignPage
dataPublicSmsCampaign[]RequiredIts fields are listed under Get SMS campaign
nextCursorstring | nullRequiredAlways null: every campaign is in one page.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/campaigns' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"affiliateMarketing": true,
"ageGated": true,
"brandId": "BRAND_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"directLending": true,
"embeddedLink": true,
"embeddedPhone": true,
"helpKeywords": "HELP_KEYWORDS",
"helpMessage": "HELP_MESSAGE",
"id": "ID",
"livemode": true,
"messageFlow": "MESSAGE_FLOW",
"object": "sms_campaign",
"optinKeywords": "OPTIN_KEYWORDS",
"optinMessage": "OPTIN_MESSAGE",
"optoutKeywords": "OPTOUT_KEYWORDS",
"optoutMessage": "OPTOUT_MESSAGE",
"privacyPolicyUrl": "PRIVACY_POLICY_URL",
"reference": "REFERENCE",
"registryId": "REGISTRY_ID",
"samples": [
"SAMPLES"
],
"status": "pending",
"statusReason": "STATUS_REASON",
"subUsecases": [
"2FA"
],
"submittedAt": "2026-11-05T10:00:00.000Z",
"termsAndConditionsUrl": "TERMS_AND_CONDITIONS_URL",
"updatedAt": "2026-11-05T10:00:00.000Z",
"usecase": "2FA",
"vertical": "PROFESSIONAL"
}
],
"nextCursor": "NEXT_CURSOR"
}Create SMS campaign
post
Registers a US 10DLC campaign: what a brand texts about.
Saves the campaign pending; it is filed once its brand is approved (and rejected with it), then read back until the registry approves or rejects it — sms.registration.updated tells each move. A MIXED or LOW_VOLUME campaign names two to five subUsecases. Its helpMessage should be your HELP auto-reply too (PATCH /v1/settings/sms). Idempotent on reference. Refused 404 NOT_FOUND for a brand that is not yours and 409 SMS_REGISTRATION_CLOSED for a rejected one; audited.
Access: an organization key with the sms:manage scope.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
affiliateMarketingbooleanRequiredAffiliate marketing was used to build it.
ageGatedbooleanRequiredAge-gated content (alcohol, tobacco, …).
brandIdstring (uuid)RequiredThe brand (
sms_brand.id).descriptionstringRequired40–4096 characters
directLendingbooleanRequiredDirect lending or other loan arrangements.
embeddedLinkbooleanRequiredThe messages carry links (no URL shorteners).
embeddedPhonebooleanRequiredThe messages carry a phone number other than the HELP one.
helpKeywordsstringhelpMessagestringRequiredThe reply to HELP: your name and how to reach you. Set the same text as your HELP auto-reply (
PATCH /v1/settings/sms).20–320 characters
messageFlowstringRequiredHow a customer opts in — every way, clearly: what carriers check first.
40–2048 characters
optinKeywordsstringComma-separated, capital letters and digits, no spaces.
optinMessagestring20–320 characters
optoutKeywordsstringoptoutMessagestringRequired20–320 characters
privacyPolicyUrlstringreferencestringRequiredYour own id for it — the idempotency key: sending the same body again with it answers the registration it made (never a second one); another body with it is
409 SMS_REGISTRATION_REFERENCE_CONFLICT. Letters, digits and_ . : -.1–200 characters
samplesstring[]RequiredTwo to five sample messages, 20–1,024 characters each.
at least 2 itemsat most 5 items
subUsecasesstring[]A MIXED or LOW_VOLUME campaign’s two to five standard use cases; none otherwise.
One of
2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONMARKETINGPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERTtermsAndConditionsUrlstringusecasestringRequiredOne of
2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONLOW_VOLUMEMARKETINGMIXEDPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERTverticalstringThe industry of the messages; the brand’s when unset.
One of
PROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATION
Response 201PublicSmsCampaign
Its fields are listed under Get SMS campaign.
Errors
400VALIDATION_FAILED.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such brand.409SMS_REGISTRATION_CLOSED — the brand was rejected; SMS_REGISTRATION_REFERENCE_CONFLICT — thatreferencenames a registration made with another body (send the same body to read it back, or use a new reference); or IDEMPOTENCY_KEY_IN_FLIGHT.422IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/sms/campaigns' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"affiliateMarketing": true,
"ageGated": true,
"brandId": "e6829a6d-1b54-4a5e-8b0f-0b6b11b60a34",
"description": "Appointment confirmations, reminders and arrival updates for customers who booked a plumbing visit.",
"directLending": true,
"embeddedLink": true,
"embeddedPhone": true,
"helpKeywords": "HELP,INFO",
"helpMessage": "Acme Plumbing: visit texts. Call (512) 555-0142 for help. Reply STOP to opt out.",
"messageFlow": "Customers opt in by ticking “Text me about my visit” on the booking form at acmeplumbing.test/book.",
"optinKeywords": "START,YES",
"optoutKeywords": "STOP,END,QUIT",
"optoutMessage": "Acme Plumbing: you are unsubscribed and will get no more texts. Reply START to resume.",
"privacyPolicyUrl": "https://acmeplumbing.test/privacy",
"reference": "campaign_acme_service",
"samples": [
"Acme Plumbing: your visit is booked for Tue 9am. Reply STOP to opt out.",
"Acme Plumbing: Sam is on the way, arriving in 20 minutes."
],
"termsAndConditionsUrl": "https://acmeplumbing.test/terms",
"usecase": "CUSTOMER_CARE"
}'{
"affiliateMarketing": true,
"ageGated": true,
"brandId": "BRAND_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"directLending": true,
"embeddedLink": true,
"embeddedPhone": true,
"helpKeywords": "HELP_KEYWORDS",
"helpMessage": "HELP_MESSAGE",
"id": "ID",
"livemode": true,
"messageFlow": "MESSAGE_FLOW",
"object": "sms_campaign",
"optinKeywords": "OPTIN_KEYWORDS",
"optinMessage": "OPTIN_MESSAGE",
"optoutKeywords": "OPTOUT_KEYWORDS",
"optoutMessage": "OPTOUT_MESSAGE",
"privacyPolicyUrl": "PRIVACY_POLICY_URL",
"reference": "REFERENCE",
"registryId": "REGISTRY_ID",
"samples": [
"SAMPLES"
],
"status": "pending",
"statusReason": "STATUS_REASON",
"subUsecases": [
"2FA"
],
"submittedAt": "2026-11-05T10:00:00.000Z",
"termsAndConditionsUrl": "TERMS_AND_CONDITIONS_URL",
"updatedAt": "2026-11-05T10:00:00.000Z",
"usecase": "2FA",
"vertical": "PROFESSIONAL"
}Get SMS campaign
get
Reads one 10DLC campaign and where its registration stands.
404 NOT_FOUND for one that is not yours.
Access: an organization key with the sms:read scope.
Path parameters
campaignIdstringRequired
Response 200PublicSmsCampaign
Show the 31 fieldsHide the fields
affiliateMarketingbooleanRequiredageGatedbooleanRequiredbrandIdstring (uuid)RequiredcreatedAtstring (date-time)RequireddecidedAtstring (date-time) | nullRequireddescriptionstringRequireddirectLendingbooleanRequiredembeddedLinkbooleanRequiredembeddedPhonebooleanRequiredhelpKeywordsstring | nullRequiredhelpMessagestringRequiredidstring (uuid)RequiredlivemodebooleanRequiredFalse for a test key’s sandbox registration: never filed with the registry, decided by the test key (
POST /v1/sandbox/sms-registrations/review).messageFlowstringRequiredobjectstringRequiredOne of
sms_campaignoptinKeywordsstring | nullRequiredoptinMessagestring | nullRequiredoptoutKeywordsstring | nullRequiredoptoutMessagestringRequiredprivacyPolicyUrlstring | nullRequiredreferencestringRequiredregistryIdstring | nullRequiredsamplesstring[]RequiredstatusstringRequiredpending(saved; a campaign waits for its brand, a number for its campaign, to be approved),submitted(filed with the registry, or waiting for the platform’s review),approved,rejected(statusReasonsays why),expired(a campaign the registry let lapse) orremoved(a number taken off its campaign).One of
pendingsubmittedapprovedrejectedexpiredremovedstatusReasonstring | nullRequiredsubUsecasesstring[]RequiredOne of
2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONMARKETINGPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERTsubmittedAtstring (date-time) | nullRequiredtermsAndConditionsUrlstring | nullRequiredupdatedAtstring (date-time)RequiredusecasestringRequiredOne of
2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONLOW_VOLUMEMARKETINGMIXEDPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERTverticalstringRequiredOne of
PROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATION
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such campaign.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"affiliateMarketing": true,
"ageGated": true,
"brandId": "BRAND_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"description": "DESCRIPTION",
"directLending": true,
"embeddedLink": true,
"embeddedPhone": true,
"helpKeywords": "HELP_KEYWORDS",
"helpMessage": "HELP_MESSAGE",
"id": "ID",
"livemode": true,
"messageFlow": "MESSAGE_FLOW",
"object": "sms_campaign",
"optinKeywords": "OPTIN_KEYWORDS",
"optinMessage": "OPTIN_MESSAGE",
"optoutKeywords": "OPTOUT_KEYWORDS",
"optoutMessage": "OPTOUT_MESSAGE",
"privacyPolicyUrl": "PRIVACY_POLICY_URL",
"reference": "REFERENCE",
"registryId": "REGISTRY_ID",
"samples": [
"SAMPLES"
],
"status": "pending",
"statusReason": "STATUS_REASON",
"subUsecases": [
"2FA"
],
"submittedAt": "2026-11-05T10:00:00.000Z",
"termsAndConditionsUrl": "TERMS_AND_CONDITIONS_URL",
"updatedAt": "2026-11-05T10:00:00.000Z",
"usecase": "2FA",
"vertical": "PROFESSIONAL"
}List SMS campaign numbers
get
Lists the numbers assigned to a 10DLC campaign.
Every assignment of the campaign, removed ones included, oldest first, in one page (nextCursor is always null).
Access: an organization key with the sms:read scope.
Path parameters
campaignIdstringRequired
Response 200PublicSmsCampaignNumberPage
dataPublicSmsCampaignNumber[]RequiredIts fields are listed under Get SMS campaign number
nextCursorstring | nullRequiredAlways null: every assignment is in one page.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such campaign.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID/numbers' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"campaignId": "CAMPAIGN_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"livemode": true,
"number": "+15125550142",
"numberId": "NUMBER_ID",
"object": "sms_campaign_number",
"reference": "REFERENCE",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z"
}
],
"nextCursor": "NEXT_CURSOR"
}Assign SMS campaign number
post
Assigns one of your US numbers to a 10DLC campaign.
Saves the assignment pending; once the campaign is approved the number is linked to it, and once the carriers approve the link the assignment is approved and the number’s SMS sender is activated — told as sms.registration.updated and sms.sender.updated. A sender registered later for a number already on an approved campaign is active at once (POST /v1/numbers/{numberId}/sms-sender). One campaign per number. Idempotent on reference. Refused 404 NOT_FOUND for a campaign or number that is not yours, 422 SMS_NUMBER_NOT_ELIGIBLE (with reason: not_assigned, sms_unsupported, not_us, or not_hosted — a number the registering provider does not hold), 409 SMS_REGISTRATION_CLOSED for a rejected or expired campaign and 409 SMS_NUMBER_ALREADY_ASSIGNED for a number on a campaign already; audited.
Access: an organization key with the sms:manage scope.
Path parameters
campaignIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
numberIdstring (uuid)RequiredOne of your US numbers (
GET /v1/numbers).referencestringRequiredYour own id for it — the idempotency key: sending the same body again with it answers the registration it made (never a second one); another body with it is
409 SMS_REGISTRATION_REFERENCE_CONFLICT. Letters, digits and_ . : -.1–200 characters
Response 201PublicSmsCampaignNumber
Its fields are listed under Get SMS campaign number.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such campaign, or no such number.409SMS_REGISTRATION_CLOSED — the campaign was rejected or expired; SMS_NUMBER_ALREADY_ASSIGNED — the number is on a campaign; SMS_REGISTRATION_REFERENCE_CONFLICT — thatreferencenames a registration made with another body (send the same body to read it back, or use a new reference); or IDEMPOTENCY_KEY_IN_FLIGHT.422SMS_NUMBER_NOT_ELIGIBLE (reason); IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID/numbers' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"numberId": "e068ae1c-7a42-4736-bf10-abb385340157",
"reference": "number_main_line"
}'{
"campaignId": "CAMPAIGN_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"livemode": true,
"number": "+15125550142",
"numberId": "NUMBER_ID",
"object": "sms_campaign_number",
"reference": "REFERENCE",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Get SMS campaign number
get
Reads one number assignment and where its link stands.
404 NOT_FOUND for one that is not yours.
Access: an organization key with the sms:read scope.
Path parameters
campaignIdstringRequiredassignmentIdstringRequired
Response 200PublicSmsCampaignNumber
Show the 13 fieldsHide the fields
campaignIdstring (uuid)RequiredcreatedAtstring (date-time)RequireddecidedAtstring (date-time) | nullRequiredidstring (uuid)RequiredlivemodebooleanRequiredFalse for a test key’s sandbox registration: never filed with the registry, decided by the test key (
POST /v1/sandbox/sms-registrations/review).numberstringRequiredYour own number, E.164.
numberIdstring (uuid)RequiredobjectstringRequiredOne of
sms_campaign_numberreferencestringRequiredstatusstringRequiredpending(saved; a campaign waits for its brand, a number for its campaign, to be approved),submitted(filed with the registry, or waiting for the platform’s review),approved,rejected(statusReasonsays why),expired(a campaign the registry let lapse) orremoved(a number taken off its campaign).One of
pendingsubmittedapprovedrejectedexpiredremovedstatusReasonstring | nullRequiredsubmittedAtstring (date-time) | nullRequiredupdatedAtstring (date-time)Required
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such assignment.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID/numbers/ASSIGNMENT_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"campaignId": "CAMPAIGN_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"livemode": true,
"number": "+15125550142",
"numberId": "NUMBER_ID",
"object": "sms_campaign_number",
"reference": "REFERENCE",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Remove SMS campaign number
delete
Takes a number off its 10DLC campaign.
The assignment is removed at once and the number is unlinked from the campaign at the registry; its SMS sender goes back to pending_verification (US carriers would drop what it sent) — told as sms.registration.updated and sms.sender.updated. Answers the assignment; removing one already removed answers it as it stands. 404 NOT_FOUND for one that is not yours; audited.
Access: an organization key with the sms:manage scope.
Path parameters
campaignIdstringRequiredassignmentIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200PublicSmsCampaignNumber
Its fields are listed under Get SMS campaign number.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such assignment.409IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID/numbers/ASSIGNMENT_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"campaignId": "CAMPAIGN_ID",
"createdAt": "2026-11-05T10:00:00.000Z",
"decidedAt": "2026-11-05T10:00:00.000Z",
"id": "ID",
"livemode": true,
"number": "+15125550142",
"numberId": "NUMBER_ID",
"object": "sms_campaign_number",
"reference": "REFERENCE",
"status": "pending",
"statusReason": "STATUS_REASON",
"submittedAt": "2026-11-05T10:00:00.000Z",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Get SMS registration
get
Reads which SMS registration regime applies to the organization’s country, and where the organization stands under it.
The paperwork between a business and a delivered business text differs by country; this says which applies — dlt (India), us_10dlc (the United States), sender_id (the United Kingdom) or none — so you need no country table of your own, and how far the organization has got: each step in order (dlt_entity, dlt_sms_header, dlt_template; brand, campaign, number_assignment; sender_id), its status counted from its own records (counts) and the /v1 resource it is done with, and an overall status. country defaults to the organization’s own (the one it was provisioned in, else its business verification’s); pass one to ask about another market. A test key reads its sandbox 10DLC registrations and test templates (livemode: false); DLT registrations and sender IDs have no test partition and are read as they are.
Access: an organization key with the sms:read scope.
Query parameters
countrystringISO 3166-1 alpha-2 (either case): the regime of this country. Omitted: the organization’s own country (the one it was provisioned in, else its business verification’s).
Response 200PublicSmsRegistrationRegime
countrystringRequireddescriptionstringRequiredlivemodebooleanRequiredWhose records were read:
falsefor a test key (its sandbox 10DLC registrations and test templates; DLT registrations and sender IDs have no test partition and are read as they are).namestringRequiredobjectstringRequiredOne of
sms_registrationregimestringRequireddlt(India: entity, headers and templates on DLT),us_10dlc(the US: brand, campaign and numbers with The Campaign Registry),sender_id(the UK: an alphanumeric sender ID the platform reviews) ornone(no registration of the business’s own).One of
dltus_10dlcsender_idnonestatusstringRequiredcompletewhen every step is;action_requiredwhen a step needs a fix;in_progresswhen some are done or in review;not_started;not_requiredundernone.One of
not_requirednot_startedin_progressaction_requiredcompletestepsPublicSmsRegistrationStep[]RequiredThe regime’s steps, in the order a business does them.
5 fields of
stepscountsPublicSmsRegistrationStepCountsRequired3 fields of
countsactionRequiredintegerRequiredRejected, expired, suspended or disabled: yours to fix.
completeintegerRequiredApproved, verified or active.
inReviewintegerRequiredWaiting for a decision.
labelstringRequiredresourcestringRequiredThe
/v1resource the step is done and read with.statusstringRequiredcompleteonce one of its records is (one verified header is enough), elsein_reviewwhile one waits for a decision, elseaction_requiredwhile one was refused, elsenot_started.One of
not_startedin_reviewaction_requiredcompletestepstringRequiredOne of
dlt_entitydlt_sms_headerdlt_templatebrandcampaignnumber_assignmentsender_id
Errors
400VALIDATION_FAILED —countryis not an ISO 3166-1 alpha-2 code.401API_KEY_INVALID — missing, unknown, revoked or expired key.403ENTITLEMENT_MESSAGING_DISABLED; API_KEY_SCOPE_MISSING (sms:read).429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/registration' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"country": "IN",
"description": "DESCRIPTION",
"livemode": true,
"name": "India DLT",
"object": "sms_registration",
"regime": "dlt",
"status": "not_required",
"steps": [
{
"counts": {
"actionRequired": 1,
"complete": 1,
"inReview": 1
},
"label": "DLT principal entity",
"resource": "/v1/dlt/entities",
"status": "not_started",
"step": "dlt_entity"
}
]
}List SMS senders
get
Lists the organization’s SMS senders (DLT headers, sender IDs, numbers) with their status and the template categories each fits.
Every sender in one page, oldest first (nextCursor is always null): the DLT headers and sender IDs registered with POST /v1/sms/senders, and any numbers registered as senders with POST /v1/numbers/{numberId}/sms-sender. Each carries the id senderId takes on POST /v1/messages (channel sms), whether it is the default, its status — only active sends — and the DLT template categories it may send. A sender stays pending_verification until the platform registers and activates it.
Access: an organization key with the sms:read scope.
Response 200PublicSmsSenderPage
dataPublicSmsSender[]RequiredIts fields are listed under Get SMS sender
nextCursorstring | nullRequiredPass back as
cursorfor the next page; null on the last.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403ENTITLEMENT_MESSAGING_DISABLED — the organization does not have messaging; API_KEY_SCOPE_MISSING (sms:read).429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/senders' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"data": [
{
"categories": [
"TRANSACTIONAL"
],
"createdAt": "2026-11-05T10:00:00.000Z",
"header": "ACMEIN",
"id": "ID",
"isDefault": true,
"kind": "numeric",
"label": "LABEL",
"object": "sms_sender",
"status": "pending_verification",
"updatedAt": "2026-11-05T10:00:00.000Z"
}
],
"nextCursor": "NEXT_CURSOR"
}Create SMS sender
post
Registers an SMS header or alphanumeric sender ID; it is pending until the platform activates it.
Registers a DLT header (India) or an alphanumeric sender ID for countries that accept one — 3–11 letters or digits, stored upper case — with an optional label. An all-digit header (at most six digits) carries promotional SMS only; any other carries transactional and service SMS (categories). It is answered pending_verification: the platform registers it with its SMS vendor and activates it, and only an active sender sends; the registration and each status change are told as sms.sender.updated. A phone number is not registered here: make one of your numbers a sender with POST /v1/numbers/{numberId}/sms-sender. Refused with 400 VALIDATION_FAILED for anything else, 403 ENTITLEMENT_MESSAGING_DISABLED when the organization does not have messaging, 409 SMS_SENDER_ALREADY_REGISTERED for a header you registered already and 409 SMS_SENDER_CLAIMED for one another organization holds (it never says which); audited.
Access: an organization key with the sms:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Request body
headerstringRequiredThe header as registered on DLT (India) — letters for transactional and service SMS, six digits for promotional — or an alphanumeric sender ID for countries that accept one. 3–11 letters or digits; stored upper case. Not a phone number: register one of your numbers with
POST /v1/numbers/:id/sms-sender.3–11 characters
labelstringYour name for it, shown in the console.
at most 160 characters
Response 201PublicSmsSender
Its fields are listed under Get SMS sender.
Errors
400VALIDATION_FAILED —headeris not 3–11 letters or digits, or is a phone number (register one of your numbers withPOST /v1/numbers/:id/sms-sender).401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.409SMS_SENDER_ALREADY_REGISTERED (you registered it already), SMS_SENDER_CLAIMED (another organization holds it — never says which); or IDEMPOTENCY_KEY_IN_FLIGHT.422TEST_MODE_UNSUPPORTED — a test key: a sender is registered with the platform’s SMS vendor, which has no sandbox; or IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/sms/senders' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"header": "ACMEIN",
"label": "Order updates"
}'{
"categories": [
"TRANSACTIONAL"
],
"createdAt": "2026-11-05T10:00:00.000Z",
"header": "ACMEIN",
"id": "ID",
"isDefault": true,
"kind": "numeric",
"label": "LABEL",
"object": "sms_sender",
"status": "pending_verification",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Get SMS sender
get
Reads one SMS sender: its status and the categories it fits.
One of the organization’s SMS senders — a DLT header, an alphanumeric sender ID, or a number registered with POST /v1/numbers/{numberId}/sms-sender — as GET /v1/sms/senders lists it: the id senderId takes on POST /v1/messages (channel sms), its kind (numeric, alphabetic or number), whether it is the default, its status (only active sends) and the DLT template categories it may send. Refused with 404 NOT_FOUND for a sender that is not yours and 403 ENTITLEMENT_MESSAGING_DISABLED when the organization does not have messaging.
Access: an organization key with the sms:read scope.
Path parameters
senderIdstringRequired
Response 200PublicSmsSender
Show the 10 fieldsHide the fields
categoriesstring[]RequiredThe DLT template categories this header may send. A template of another category is refused with SMS_HEADER_CATEGORY_MISMATCH.
One of
TRANSACTIONALSERVICE_IMPLICITSERVICE_EXPLICITPROMOTIONALcreatedAtstring (date-time)RequiredheaderstringRequiredThe DLT header — SNS’s “sender ID” — as the customer’s phone shows it, and as
sms.headeron a message.idstring (uuid)RequiredWhat
senderIdtakes onPOST /v1/messages(channel sms).isDefaultbooleanRequiredThe organization’s default: used when a send names no header and it fits the template.
kindstringRequiredTo India, numeric headers carry promotional SMS and alphabetic ones transactional and service SMS. Outside India an
alphabeticone is an alphanumeric sender ID (where the destination accepts one), anumericDLT header carries nothing, and anumber— one of your SMS-capable numbers, registered as a sender — carries any category (and is the only kind the US and Canada accept, once registered).One of
numericalphabeticnumberlabelstring | nullRequiredobjectstringRequiredOne of
sms_senderstatusstringRequiredOnly
activesends. A header ispending_verificationuntil the platform registers it with AWS and activates it — and again after the organization’s DLT entity id changes.One of
pending_verificationactiverestricteddisabledupdatedAtstring (date-time)Required
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such sender.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/sms/senders/SENDER_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"categories": [
"TRANSACTIONAL"
],
"createdAt": "2026-11-05T10:00:00.000Z",
"header": "ACMEIN",
"id": "ID",
"isDefault": true,
"kind": "numeric",
"label": "LABEL",
"object": "sms_sender",
"status": "pending_verification",
"updatedAt": "2026-11-05T10:00:00.000Z"
}Delete SMS sender
delete
Removes an SMS sender (the default sender setting is cleared when it was the default).
Removes one of the organization’s SMS senders, whatever its status: a DLT header, a sender ID, or a number registered as a sender (the number itself stays yours). When it was the default sender, the organization is left with no default; conversations it sent in keep their history. Answers deleted: true with the sender’s id; audited. A sender that is not yours is not found (404 NOT_FOUND).
Access: an organization key with the sms:manage scope. Live keys only: a test key is refused with 422 TEST_MODE_UNSUPPORTED.
Path parameters
senderIdstringRequired
Headers
Idempotency-KeystringMakes the request safe to retry: a repeat with the same key and the same body returns the stored success (with
Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT,503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.
Response 200PublicSmsSenderDeleted
deletedbooleanRequiredOne of
trueidstring (uuid)RequiredobjectstringRequiredOne of
sms_sender
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such sender.409IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422TEST_MODE_UNSUPPORTED — a test key; or IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X DELETE 'https://api.trovacast.com/v1/sms/senders/SENDER_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"deleted": true,
"id": "ID",
"object": "sms_sender"
}