Jump to

  • Quickstarts
  • API reference
  • Webhook events
  • Error codes
  • SDKs

API reference

SMS

How these fit together: the SMS guide.

List SMS brands

get/v1/sms/brands

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[]Required

    Its fields are listed under Get SMS brand

  • nextCursorstring | nullRequired

    Always null: every brand is in one page.

Errors

Request
curl 'https://api.trovacast.com/v1/sms/brands' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/brands

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-Keystring

    Makes 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

  • addressPublicSmsBrandAddressRequired

    5 fields of address
    • citystringRequired

      at most 120 characters

    • countrystringRequired

      ISO 3166-1 alpha-2.

    • postalCodestringRequired

      at most 16 characters

    • statestringRequired

      The state’s two-letter code.

    • streetstringRequired

      at most 255 characters

  • authorizedContactPublicSmsBrandContactRequired

    The person who can vouch for the business. Their email and phone are stored encrypted and shown masked.

    6 fields of authorizedContact
    • emailstringRequired

    • firstNamestringRequired

      at most 100 characters

    • lastNamestringRequired

      at most 100 characters

    • phonestringRequired

      International format. Stored encrypted; shown masked.

    • senioritystringRequired

      One ofDIRECTORGMVPCEOCFOGENERAL_COUNSELOTHER

    • titlestringRequired

      at most 100 characters

  • businessContactEmailstring

    Brand verification contact on the business’s own domain (required by carriers for a public-facing brand).

  • companyNamestringRequired

    The legal name, as on the EIN.

    at most 255 characters

  • doingBusinessAsstring

    The name customers know, when it differs.

    at most 255 characters

  • einstring

    The Employer Identification Number, nine digits — required except for a government entity. Stored encrypted; shown by its last four digits.

  • einIssuingCountrystring

    The country that issued the EIN; US by default.

  • entityTypestringRequired

    One ofPRIVATEPUBLICNON_PROFITGOVERNMENT

  • referencestringRequired

    Your 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

  • stockExchangestring

    A PUBLIC company’s exchange.

    One ofNASDAQNYSEAMEXAMXASXB3BMEBSEFRAICEXJPXJSEKRXLONNSEOMXSEHKSGXSSESTOSWXSZSETSXTWSEVSEOTHER

  • stockSymbolstring

    A PUBLIC company’s ticker.

    at most 10 characters

  • verticalstringRequired

    One ofPROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATION

  • websitestring

    at most 512 characters

Response 201PublicSmsBrand

Its fields are listed under Get SMS brand.

Errors

Request
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"
}'
Response 201 (json)
{
  "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/v1/sms/brands/{brandId}

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 fields
  • addressPublicSmsBrandAddressView | nullRequired

    5 fields of address
    • citystringRequired

    • countrystringRequired

    • postalCodestringRequired

    • statestringRequired

    • streetstringRequired

  • authorizedContactPublicSmsBrandContactView | nullRequired

    6 fields of authorizedContact
    • emailstringRequired

    • firstNamestringRequired

    • lastNamestringRequired

    • phonestringRequired

    • senioritystringRequired

      One ofDIRECTORGMVPCEOCFOGENERAL_COUNSELOTHER

    • titlestringRequired

  • companyNamestringRequired

  • createdAtstring (date-time)Required

  • decidedAtstring (date-time) | nullRequired

  • doingBusinessAsstring | nullRequired

  • einstring | nullRequired

    The EIN by its last four digits.

  • entityTypestringRequired

    One ofPRIVATEPUBLICNON_PROFITGOVERNMENT

  • idstring (uuid)Required

  • livemodebooleanRequired

    False for a test key’s sandbox registration: never filed with the registry, decided by the test key (POST /v1/sandbox/sms-registrations/review).

  • objectstringRequired

    One ofsms_brand

  • referencestringRequired

  • registryIdstring | nullRequired

    The registry’s id once filed; null before.

  • statusstringRequired

    pending (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 (statusReason says why), expired (a campaign the registry let lapse) or removed (a number taken off its campaign).

    One ofpendingsubmittedapprovedrejectedexpiredremoved

  • statusReasonstring | nullRequired

  • submittedAtstring (date-time) | nullRequired

  • updatedAtstring (date-time)Required

  • verticalstringRequired

    One ofPROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATION

  • websitestring | nullRequired

Errors

Request
curl 'https://api.trovacast.com/v1/sms/brands/BRAND_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/campaigns

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[]Required

    Its fields are listed under Get SMS campaign

  • nextCursorstring | nullRequired

    Always null: every campaign is in one page.

Errors

Request
curl 'https://api.trovacast.com/v1/sms/campaigns' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/campaigns

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-Keystring

    Makes 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

  • affiliateMarketingbooleanRequired

    Affiliate marketing was used to build it.

  • ageGatedbooleanRequired

    Age-gated content (alcohol, tobacco, …).

  • brandIdstring (uuid)Required

    The brand (sms_brand.id).

  • descriptionstringRequired

    40–4096 characters

  • directLendingbooleanRequired

    Direct lending or other loan arrangements.

  • embeddedLinkbooleanRequired

    The messages carry links (no URL shorteners).

  • embeddedPhonebooleanRequired

    The messages carry a phone number other than the HELP one.

  • helpKeywordsstring

  • helpMessagestringRequired

    The 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

  • messageFlowstringRequired

    How a customer opts in — every way, clearly: what carriers check first.

    40–2048 characters

  • optinKeywordsstring

    Comma-separated, capital letters and digits, no spaces.

  • optinMessagestring

    20–320 characters

  • optoutKeywordsstring

  • optoutMessagestringRequired

    20–320 characters

  • privacyPolicyUrlstring

  • referencestringRequired

    Your 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[]Required

    Two 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 of2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONMARKETINGPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERT

  • termsAndConditionsUrlstring

  • usecasestringRequired

    One of2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONLOW_VOLUMEMARKETINGMIXEDPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERT

  • verticalstring

    The industry of the messages; the brand’s when unset.

    One ofPROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATION

Response 201PublicSmsCampaign

Its fields are listed under Get SMS campaign.

Errors

Request
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"
}'
Response 201 (json)
{
  "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/v1/sms/campaigns/{campaignId}

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 fields
  • affiliateMarketingbooleanRequired

  • ageGatedbooleanRequired

  • brandIdstring (uuid)Required

  • createdAtstring (date-time)Required

  • decidedAtstring (date-time) | nullRequired

  • descriptionstringRequired

  • directLendingbooleanRequired

  • embeddedLinkbooleanRequired

  • embeddedPhonebooleanRequired

  • helpKeywordsstring | nullRequired

  • helpMessagestringRequired

  • idstring (uuid)Required

  • livemodebooleanRequired

    False for a test key’s sandbox registration: never filed with the registry, decided by the test key (POST /v1/sandbox/sms-registrations/review).

  • messageFlowstringRequired

  • objectstringRequired

    One ofsms_campaign

  • optinKeywordsstring | nullRequired

  • optinMessagestring | nullRequired

  • optoutKeywordsstring | nullRequired

  • optoutMessagestringRequired

  • privacyPolicyUrlstring | nullRequired

  • referencestringRequired

  • registryIdstring | nullRequired

  • samplesstring[]Required

  • statusstringRequired

    pending (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 (statusReason says why), expired (a campaign the registry let lapse) or removed (a number taken off its campaign).

    One ofpendingsubmittedapprovedrejectedexpiredremoved

  • statusReasonstring | nullRequired

  • subUsecasesstring[]Required

    One of2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONMARKETINGPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERT

  • submittedAtstring (date-time) | nullRequired

  • termsAndConditionsUrlstring | nullRequired

  • updatedAtstring (date-time)Required

  • usecasestringRequired

    One of2FAACCOUNT_NOTIFICATIONCUSTOMER_CAREDELIVERY_NOTIFICATIONFRAUD_ALERTHIGHER_EDUCATIONLOW_VOLUMEMARKETINGMIXEDPOLLING_VOTINGPUBLIC_SERVICE_ANNOUNCEMENTSECURITY_ALERT

  • verticalstringRequired

    One ofPROFESSIONALREAL_ESTATEHEALTHCAREHUMAN_RESOURCESENERGYENTERTAINMENTRETAILTRANSPORTATIONAGRICULTUREINSURANCEPOSTALEDUCATIONHOSPITALITYFINANCIALPOLITICALGAMBLINGLEGALCONSTRUCTIONNGOMANUFACTURINGGOVERNMENTTECHNOLOGYCOMMUNICATION

Errors

Request
curl 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/campaigns/{campaignId}/numbers

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[]Required

    Its fields are listed under Get SMS campaign number

  • nextCursorstring | nullRequired

    Always null: every assignment is in one page.

Errors

Request
curl 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID/numbers' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/campaigns/{campaignId}/numbers

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-Keystring

    Makes 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)Required

    One of your US numbers (GET /v1/numbers).

  • referencestringRequired

    Your 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

Request
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"
}'
Response 201 (json)
{
  "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/v1/sms/campaigns/{campaignId}/numbers/{assignmentId}

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

  • campaignIdstringRequired

  • assignmentIdstringRequired

Response 200PublicSmsCampaignNumber

Show the 13 fields
  • campaignIdstring (uuid)Required

  • createdAtstring (date-time)Required

  • decidedAtstring (date-time) | nullRequired

  • idstring (uuid)Required

  • livemodebooleanRequired

    False for a test key’s sandbox registration: never filed with the registry, decided by the test key (POST /v1/sandbox/sms-registrations/review).

  • numberstringRequired

    Your own number, E.164.

  • numberIdstring (uuid)Required

  • objectstringRequired

    One ofsms_campaign_number

  • referencestringRequired

  • statusstringRequired

    pending (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 (statusReason says why), expired (a campaign the registry let lapse) or removed (a number taken off its campaign).

    One ofpendingsubmittedapprovedrejectedexpiredremoved

  • statusReasonstring | nullRequired

  • submittedAtstring (date-time) | nullRequired

  • updatedAtstring (date-time)Required

Errors

Request
curl 'https://api.trovacast.com/v1/sms/campaigns/CAMPAIGN_ID/numbers/ASSIGNMENT_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/campaigns/{campaignId}/numbers/{assignmentId}

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

  • campaignIdstringRequired

  • assignmentIdstringRequired

Headers

  • Idempotency-Keystring

    Makes 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

Request
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)"
Response 200 (json)
{
  "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/v1/sms/registration

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

  • countrystring

    ISO 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

  • countrystringRequired

  • descriptionstringRequired

  • livemodebooleanRequired

    Whose records were read: false for 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).

  • namestringRequired

  • objectstringRequired

    One ofsms_registration

  • regimestringRequired

    dlt (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) or none (no registration of the business’s own).

    One ofdltus_10dlcsender_idnone

  • statusstringRequired

    complete when every step is; action_required when a step needs a fix; in_progress when some are done or in review; not_started; not_required under none.

    One ofnot_requirednot_startedin_progressaction_requiredcomplete

  • stepsPublicSmsRegistrationStep[]Required

    The regime’s steps, in the order a business does them.

    5 fields of steps
    • countsPublicSmsRegistrationStepCountsRequired

      3 fields of counts
      • actionRequiredintegerRequired

        Rejected, expired, suspended or disabled: yours to fix.

      • completeintegerRequired

        Approved, verified or active.

      • inReviewintegerRequired

        Waiting for a decision.

    • labelstringRequired

    • resourcestringRequired

      The /v1 resource the step is done and read with.

    • statusstringRequired

      complete once one of its records is (one verified header is enough), else in_review while one waits for a decision, else action_required while one was refused, else not_started.

      One ofnot_startedin_reviewaction_requiredcomplete

    • stepstringRequired

      One ofdlt_entitydlt_sms_headerdlt_templatebrandcampaignnumber_assignmentsender_id

Errors

Request
curl 'https://api.trovacast.com/v1/sms/registration' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/senders

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[]Required

    Its fields are listed under Get SMS sender

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/sms/senders' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/senders

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-Keystring

    Makes 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

  • headerstringRequired

    The 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

  • labelstring

    Your name for it, shown in the console.

    at most 160 characters

Response 201PublicSmsSender

Its fields are listed under Get SMS sender.

Errors

Request
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"
}'
Response 201 (json)
{
  "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/v1/sms/senders/{senderId}

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 fields
  • categoriesstring[]Required

    The DLT template categories this header may send. A template of another category is refused with SMS_HEADER_CATEGORY_MISMATCH.

    One ofTRANSACTIONALSERVICE_IMPLICITSERVICE_EXPLICITPROMOTIONAL

  • createdAtstring (date-time)Required

  • headerstringRequired

    The DLT header — SNS’s “sender ID” — as the customer’s phone shows it, and as sms.header on a message.

  • idstring (uuid)Required

    What senderId takes on POST /v1/messages (channel sms).

  • isDefaultbooleanRequired

    The organization’s default: used when a send names no header and it fits the template.

  • kindstringRequired

    To India, numeric headers carry promotional SMS and alphabetic ones transactional and service SMS. Outside India an alphabetic one is an alphanumeric sender ID (where the destination accepts one), a numeric DLT header carries nothing, and a number — 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 ofnumericalphabeticnumber

  • labelstring | nullRequired

  • objectstringRequired

    One ofsms_sender

  • statusstringRequired

    Only active sends. A header is pending_verification until the platform registers it with AWS and activates it — and again after the organization’s DLT entity id changes.

    One ofpending_verificationactiverestricteddisabled

  • updatedAtstring (date-time)Required

Errors

Request
curl 'https://api.trovacast.com/v1/sms/senders/SENDER_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "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/v1/sms/senders/{senderId}

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-Keystring

    Makes 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

  • deletedbooleanRequired

    One oftrue

  • idstring (uuid)Required

  • objectstringRequired

    One ofsms_sender

Errors

Request
curl -X DELETE 'https://api.trovacast.com/v1/sms/senders/SENDER_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200 (json)
{
  "deleted": true,
  "id": "ID",
  "object": "sms_sender"
}