Get landing page HTML by channel code

Overview

Resolve a campaign SMS request (or, failing that, a campaign channel) by its channelUniqueCode and returns the personalized landing-page HTML plus the review-site landing-page URL. Unless preview=true, it stamps link_clicked_at and delivered_at on the matched SMS request (click/delivery tracking side effect).

Prerequisites

  • No authentication — this endpoint is public.
  • The channelUniqueCode of the record you are targeting.

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

GET /api/v1/campaign/landing-page/{channelUniqueCode}

Authentication

  • No bearer token required.

  • Public — no bearer token (unauthenticated campaign group; item marked noauth). Reached by end customers from the SMS/landing-page link.

Rate limit

  • 30 requests/min per IP (public).

Path parameters

ParameterTypeRequiredDescription
channelUniqueCodestringRequiredIdentifier for the record you are targeting.

Query parameters

FieldTypeRequiredDescription
previewbooleanOptionalWhen true, skips the click/delivery tracking write. Defaults to false.

Response

200 OK · 200

{
  "data": {
    "status": "success",
    "data": {
      "landing_page_html": "<html><head><title>Leave a Review</title></head><body><h1>How was your experience?</h1><a href=\"https://example.com/review/abc123\">Write a review</a></body></html>",
      "landing_page_url": "https://search.google.com/local/writereview?placeid=XXXX"
    }
  }
}

400 Bad Request · 400

{
  "status": "error",
  "message": "Bad Request",
  "errors": "Landing page not found"
}

Errors

StatusMeaning
400Bad Request
500Unexpected server error

Example request

curl --request GET \
  --url "https://production-api.shoutaboutus.com/api/v1/campaign/landing-page/<channelUniqueCode>?preview=false" \
  --header 'Accept: application/json'

Did this page help you?