API Reference

Landers

Standalone campaign pages served at /l/:slug/ — no site chrome, just the pitch. Built for paid traffic.

Endpoints

MethodEndpointDescription
GET/sites/:id/landersList landers
POST/sites/:id/landersCreate lander
GET/landers/:lidLander detail
PATCH/landers/:lidUpdate — publish by setting status: "published"
DELETE/landers/:lidDelete
GET/landers/designsAvailable design templates with their color options

Lander payload

FieldTypeDescription
slugstringPublic URL: /l/:slug/. Empty → generated from name.
design_idstringTemplate id from GET /landers/designs (e.g. hero, spotlight, cards…).
statusstringdraft (default) | published.
heading / subheadingstringHero copy.
cta_textstringButton label, e.g. "Get the deal".
offer_idsuuid[]Offers featured on the lander, in order.
backgroundstring|nullBackground image URL (media library).
colorsobjectDesign-specific color map — check the design's definition via /landers/designs.
blocksarrayFree-form content blocks the design supports.
meta_title / meta_descriptionstringSEO overrides.
Create and publish a lander
curl -X POST $API/sites/$SITE_ID/landers \
  -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{
    "slug": "black-friday-vpn",
    "design_id": "spotlight",
    "heading": "Black Friday: 70% off the top-rated VPN",
    "subheading": "Tested in our lab, discounted for our readers.",
    "cta_text": "Claim the discount",
    "offer_ids": ["'$OFFER_ID'"],
    "status": "published"
  }'
# → live at https://your-site.com/l/black-friday-vpn/