Landing Pages

GET/landing/public/:landingId

Retrieve a public-facing landing page. Does not require authentication. A Toll-Free page additionally returns registrationType and a tollFree object carrying the consent disclosure and boxes the page renders; usecases and subUsecases are present but empty for those pages.

Request Body

FieldTypeRequiredDescription
landingIdURL ParamRequiredLanding Page ID.

Example Response 200

Response
{
  "landingData": {
    "description": "Sign up to receive updates from Acme Corp",
    "brandName": "Acme Corp",
    "logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
    "themeColor": {
      "primaryBackgroundColor": "#FFFFFF",
      "secondaryBackgroundColor": "#F5F5F5",
      "primaryTextColor": "#000000",
      "secondaryTextColor": "#666666"
    },
    "webhookUrl": "https://your-server.com/api/landing-events",
    "usecases": [
      "MARKETING",
      "CUSTOMER_CARE"
    ],
    "subUsecases": [],
    "createdAt": "2024-01-15T12:00:00.000Z",
    "metaData": {
      "state": "MO",
      "email": "support@acme.com",
      "phoneNumber": "5551234567"
    },
    "registrationType": "TOLL_FREE",
    "tollFree": {
      "useCases": [
        "APPOINTMENTS",
        "BILLING"
      ],
      "channels": [
        "SMS",
        "MMS"
      ],
      "consentDisclosure": "Our message frequency may vary. Message & data rates apply. Reply STOP to unsubscribe from further messaging. Reply HELP for more information.",
      "consentBoxes": [
        {
          "useCase": "APPOINTMENTS",
          "channel": "SMS",
          "text": "Consent to receive SMS about Appointments from Acme Corp."
        },
        {
          "useCase": "APPOINTMENTS",
          "channel": "MMS",
          "text": "Consent to receive MMS about Appointments from Acme Corp."
        }
      ]
    }
  }
}

SDK Example

GET/landing/brand/:brandId

Retrieve the landing page associated with a specific brand. Returns an empty array if not found, or a single-element array when found. Toll-Free pages also carry registrationType and the stored tollFree consent object.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
brandIdURL ParamRequiredBrand ID.

Example Response 200

Response
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c57",
    "landingId": "L1234567",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "brandId": "B1234567",
    "description": "Sign up to receive updates from Acme Corp",
    "themeColor": {
      "primaryBackgroundColor": "#FFFFFF",
      "secondaryBackgroundColor": "#F5F5F5",
      "primaryTextColor": "#000000",
      "secondaryTextColor": "#666666"
    },
    "status": "ACTIVE",
    "webhookUrl": "https://your-server.com/api/landing-events",
    "usecases": [
      "MARKETING"
    ],
    "subUsecases": [],
    "landingPageUrl": "https://acme-corp.landing.example.com/intake/L1234567",
    "privacyPolicyUrl": "https://acme-corp.landing.example.com/intake/L1234567/privacy-policy",
    "termsAndConditionsUrl": "https://acme-corp.landing.example.com/intake/L1234567/terms-service",
    "optInLinkUrl": "https://acme-corp.landing.example.com/intake/L1234567",
    "createdAt": "2024-01-15T12:00:00.000Z",
    "updatedAt": "2024-01-15T12:00:00.000Z"
  }
]

SDK Example

GET/landing/template/:brandId

Retrieve a Toll-Free brand's landing page template — the reusable presentation (description fragment, colors, logo, webhook) that every page generated for the brand snapshots at creation. Returns an empty array when the brand has no template. Toll-Free only; a 10DLC brand carries these fields on its single landing page instead.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
brandIdURL ParamRequiredBrand ID.

Example Response 200

Response
[
  {
    "_id": "60f7b2a1c9e77c001a2b3c60",
    "brandId": "TFNB7K3M9QXR2V",
    "groupId": "G1234567",
    "subgroupId": "S1234567",
    "userDescription": "healthcare scheduling company",
    "themeColor": {
      "primaryBackgroundColor": "#FFFFFF",
      "secondaryBackgroundColor": "#F5F5F5",
      "primaryTextColor": "#000000",
      "secondaryTextColor": "#666666"
    },
    "webhookUrl": "https://your-server.com/api/landing-events",
    "createdAt": "2024-01-15T12:00:00.000Z",
    "updatedAt": "2024-01-15T12:00:00.000Z"
  }
]

SDK Example

PUT/landing/template/:brandId

Create or replace a Toll-Free brand's landing page template. Sent as multipart/form-data with the logo under the file field. A brand has exactly one template, so this is an upsert. Editing a template never alters a page that already exists — pages snapshot the template at creation, so a URL already given to a carrier keeps rendering what was declared. Any field you omit keeps its stored value, so a colour-only save leaves the logo, the other colours and the webhook untouched. The logo is required only the first time. userDescription is the customer's own sentence about the business, not the finished About paragraph: the services clause naming a campaign's message types is added per page at generation.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
brandIdURL ParamRequiredBrand ID the template belongs to.
userDescriptionStringRequiredThe customer's own sentence about their business (max 2048 characters).
primaryBackgroundColorStringOptionalHex color; defaults to #FFFFFF.
secondaryBackgroundColorStringOptionalHex color; defaults to #FFFFFF.
primaryTextColorStringOptionalHex color; defaults to #000000.
secondaryTextColorStringOptionalHex color; defaults to #000000.
webhookUrlStringOptionalWhere generated pages post opt-in submissions.
fileFileOptionalLogo image (JPEG/PNG, max 3MB). Required when creating the template; omit to keep the stored logo.

Example Response 200

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c60",
  "brandId": "TFNB7K3M9QXR2V",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "userDescription": "healthcare scheduling company",
  "themeColor": {
    "primaryBackgroundColor": "#FFFFFF",
    "secondaryBackgroundColor": "#F5F5F5",
    "primaryTextColor": "#000000",
    "secondaryTextColor": "#666666"
  },
  "webhookUrl": "https://your-server.com/api/landing-events",
  "createdAt": "2024-01-15T12:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z"
}

SDK Example

GET/landing/:landingId

Retrieve landing page details including dynamic usecases and URL fields. URL fields (landingPageUrl, privacyPolicyUrl, termsAndConditionsUrl, optInLinkUrl) are present only when the associated brand is found. Toll-Free pages also carry registrationType and the stored tollFree consent object.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
landingIdURL ParamRequiredLanding Page ID.

Example Response 200

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c57",
  "landingId": "L1234567",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "brandId": "B1234567",
  "description": "Sign up to receive updates from Acme Corp",
  "themeColor": {
    "primaryBackgroundColor": "#FFFFFF",
    "secondaryBackgroundColor": "#F5F5F5",
    "primaryTextColor": "#000000",
    "secondaryTextColor": "#666666"
  },
  "status": "ACTIVE",
  "webhookUrl": "https://your-server.com/api/landing-events",
  "usecases": [
    "MARKETING",
    "CUSTOMER_CARE"
  ],
  "subUsecases": [],
  "landingPageUrl": "https://acme-corp.landing.example.com/intake/L1234567",
  "privacyPolicyUrl": "https://acme-corp.landing.example.com/intake/L1234567/privacy-policy",
  "termsAndConditionsUrl": "https://acme-corp.landing.example.com/intake/L1234567/terms-service",
  "optInLinkUrl": "https://acme-corp.landing.example.com/intake/L1234567",
  "createdAt": "2024-01-15T12:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z"
}

SDK Example

POST/landing

Create a new landing page associated with a specific brand. Requires a file upload for the logo, unless useBrandTemplate is set for a Toll-Free page — the brand's template supplies the logo in that case.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
brandIdStringOptionalBrand ID. If provided, groupId and subgroupId are derived from the brand. If omitted or set to 'pending', subgroupId is required.
subgroupIdStringOptionalSubgroup ID. Required when brandId is not provided or is 'pending'.
descriptionStringRequiredDescription of the landing page.
primaryBackgroundColorStringOptionalPrimary background hex color code (e.g., #FFFFFF). Defaults to #FFFFFF.
secondaryBackgroundColorStringOptionalSecondary background hex color code. Defaults to #FFFFFF.
primaryTextColorStringOptionalPrimary text hex color code. Defaults to #000000.
secondaryTextColorStringOptionalSecondary text hex color code. Defaults to #000000.
webhookUrlStringOptionalWebhook URL for landing page events.
registrationTypeStringOptionalWhich page type to build: TEN_DLC (default) or TOLL_FREE. A TOLL_FREE page renders one consent checkbox per use case per channel from the values below instead of deriving them from the brand's campaigns.
tollFreeObject (JSON)OptionalToll-Free consent content. Required when registrationType is TOLL_FREE. Sent as a JSON string in the multipart body.
tollFree.useCasesArray<String>OptionalThe campaign's real use cases. At least one required when registrationType is TOLL_FREE.
tollFree.channelsArray<String>OptionalChannels consent covers: SMS, MMS, VOICE. At least one required when registrationType is TOLL_FREE.
tollFree.consentDisclosureStringOptionalShared disclosure rendered once above the checkboxes (max 1024 chars). Required when registrationType is TOLL_FREE.
tollFree.consentBoxesArray<Object>OptionalThe rendered consent boxes, each { useCase, channel, text } with text at most 512 chars. Max 16 boxes. Required when registrationType is TOLL_FREE.
useBrandTemplateBooleanOptionalToll-Free only. Build the page from the brand's landing page template (GET /landing/template/:brandId), taking its colors, logo and webhook URL from there. No logo file is required when set. description is still supplied by the caller, because the About paragraph names the message types this campaign's use cases cover.
fileFileOptionalThe logo image file. Must be uploaded as a multipart/form-data field named 'file'. Max 3 MB. Required unless useBrandTemplate is set.

Example Response 202

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c57",
  "landingId": "L1234567",
  "groupId": "G1234567",
  "subgroupId": "S1234567",
  "brandId": "B1234567",
  "description": "Sign up to receive updates from Acme Corp",
  "themeColor": {
    "primaryBackgroundColor": "#FFFFFF",
    "secondaryBackgroundColor": "#F5F5F5",
    "primaryTextColor": "#000000",
    "secondaryTextColor": "#666666"
  },
  "status": "ACTIVE",
  "landingPageUrl": "https://acme-corp.landing.example.com/intake/L1234567",
  "privacyPolicyUrl": "https://acme-corp.landing.example.com/intake/L1234567/privacy-policy",
  "termsAndConditionsUrl": "https://acme-corp.landing.example.com/intake/L1234567/terms-service",
  "optInLinkUrl": "https://acme-corp.landing.example.com/intake/L1234567",
  "createdAt": "2024-01-15T12:00:00.000Z",
  "updatedAt": "2024-01-15T12:00:00.000Z"
}

SDK Example

PUT/landing/:landingId

Update an existing landing page.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
landingIdURL ParamRequiredLanding Page ID to update.
descriptionStringOptionalDescription of the landing page.
primaryBackgroundColorStringOptionalPrimary background hex color code.
secondaryBackgroundColorStringOptionalSecondary background hex color code.
primaryTextColorStringOptionalPrimary text hex color code.
secondaryTextColorStringOptionalSecondary text hex color code.
webhookUrlStringOptionalWebhook URL for landing page events.
registrationTypeStringOptionalImmutable once the page exists. May be resent with its current value, but a request that changes it is rejected — a page whose URL is already declared to a carrier would otherwise stop rendering the consent boxes that were declared.
tollFreeObject (JSON)OptionalToll-Free consent content. Replaces the whole subdocument when sent. Sent as a JSON string in the multipart body.
tollFree.useCasesArray<String>OptionalThe campaign's real use cases. At least one required when registrationType is TOLL_FREE.
tollFree.channelsArray<String>OptionalChannels consent covers: SMS, MMS, VOICE. At least one required when registrationType is TOLL_FREE.
tollFree.consentDisclosureStringOptionalShared disclosure rendered once above the checkboxes (max 1024 chars). Required when registrationType is TOLL_FREE.
tollFree.consentBoxesArray<Object>OptionalThe rendered consent boxes, each { useCase, channel, text } with text at most 512 chars. Max 16 boxes. Required when registrationType is TOLL_FREE.
useBrandTemplateBooleanOptionalToll-Free only. Re-copy the brand's landing page template into this page, so a corrected logo or color reaches a page that already exists instead of creating a second one.
fileFileOptionalUpdated logo image file. Must be uploaded as a multipart/form-data field named 'file'. Max 3 MB.

Example Response 202

Response
{
  "_id": "60f7b2a1c9e77c001a2b3c57",
  "landingId": "L1234567",
  "description": "Updated landing page description",
  "themeColor": {
    "primaryBackgroundColor": "#FFFFFF",
    "secondaryBackgroundColor": "#F5F5F5",
    "primaryTextColor": "#000000",
    "secondaryTextColor": "#666666"
  },
  "status": "ACTIVE",
  "updatedAt": "2024-01-16T14:00:00.000Z"
}

SDK Example

DELETE/landing/:landingId

Inactivate a landing page.

The following roles are required to use this endpoint: admin, developer, api, billing, user

Request Body

FieldTypeRequiredDescription
landingIdURL ParamRequiredLanding Page ID to delete.

Example Response 202

Response
{
  "message": "Landing page with ID L1234567 has been deleted"
}

SDK Example