Get landing page by code (store-scoped, auth)
Overview
Get the landing-page HTML for a campaign landing page, resolved by its unique_code, with the store's placeholders substituted in. Unlike the other links in this folder, this is the authenticated landing-page fetch used by the SPA (store-scoped preview), not a customer-facing link.
Prerequisites
- A bearer token in the
Authorizationheader. - The
landingPageUniqueCodeof the record you are targeting. - Values for the required query parameter
store_id— see the table below.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/campaign/landing-page-by-code/{landingPageUniqueCode}
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Account — authentication, ACCOUNT-scope group (requires an account bearer token). The
store_idquery param must sit inside your own account tree (must belong to the caller's company). The endpoint applies the store's placeholders to the HTML.
Rate limit
- No rate limit.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
landingPageUniqueCode | string | Required | Identifier for the record you are targeting. |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
store_id | integer | Required | Must be an existing location inside your own account tree — must belong to the caller's company. |
How it works
- 200
{ status: "success", landing_page_html }(note: HTML sits directly underdata, not under a nesteddata.data). - 400 (
badRequestResponse) "Landing page not found". - 401 when unauthenticated; 422 when
store_idis missing/invalid or out of scope.
Response
200 OK · 200
200{
"data": {
"status": "success",
"landing_page_html": "<p>Hi Jane, thanks for visiting Downtown Store!</p>"
}
}400 Not found · 400
400{
"status": "error",
"message": "Bad Request",
"errors": "Landing page not found"
}422 Store scope · 422
422{
"message": "The store id field is required.",
"errors": {
"store_id": [
"The store id field is required."
]
}
}Errors
| Status | Meaning |
|---|---|
400 | Not found |
401 | Returned when unauthenticated |
422 | Store scope |
500 | Unexpected server error |
Example request
curl --request GET \
--url "https://production-api.shoutaboutus.com/api/v1/campaign/landing-page-by-code/<landingPageUniqueCode>?store_id=123" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 18 days ago
Did this page help you?
