Skip to content
Browse documentation

API reference

Landing pages

Read published landing page layouts and the entries that fill them. Each entry is one URL, with SEO, theme colors, and values for that layout's blocks.

Feature requirement: the project must have the landing_pages feature enabled, or these endpoints return 404.

  • Only published types and entries are returned.
  • theme is the type default. theme_overrides is the entry. Apply overrides on top when you render.
  • Unpublished targets of an entry link are omitted.
GET/api/v1/storefront/projects/{project_slug}/landing-pages

List Public Landing Pages

Parameters
NameTypeInDescription
project_slugstringpathRequired.
pageintegerqueryOptional. Page number (1-based)
page_sizeintegerqueryOptional. Number of items per page
Response 200 (list) · PublicLandingPageSummary[]
FieldTypeDescription
idstringrequired—
namestringrequired—
slugstringrequired—
descriptionstring (nullable)optional—
themeobjectoptional—
Example request
curl "https://api.webtools.ng/api/v1/storefront/projects/your-project/landing-pages" \
  -H "X-Project-Key: wt_pk_your_key"
GET/api/v1/storefront/projects/{project_slug}/landing-pages/{page_slug}

Get Public Landing Page

Parameters
NameTypeInDescription
project_slugstringpathRequired.
page_slugstringpathRequired.
Response 200 · PublicLandingPageDetail
FieldTypeDescription
idstringrequired—
namestringrequired—
slugstringrequired—
descriptionstring (nullable)optional—
themeobjectoptional—
seoSeoReadrequiredNested SEO metadata for API read responses.
blocksLandingPageBlockRead[]optional—
Example request
curl "https://api.webtools.ng/api/v1/storefront/projects/your-project/landing-pages/{page_slug}" \
  -H "X-Project-Key: wt_pk_your_key"
GET/api/v1/storefront/projects/{project_slug}/landing-pages/{page_slug}/entries

List Public Entries

Parameters
NameTypeInDescription
project_slugstringpathRequired.
page_slugstringpathRequired.
pageintegerqueryOptional. Page number (1-based)
page_sizeintegerqueryOptional. Number of items per page
Response 200 (list) · PublicEntrySummary[]
FieldTypeDescription
idstringrequired—
namestringrequired—
slugstringrequired—
excerptstring (nullable)optional—
themeobjectoptional—
theme_overridesobjectoptional—
Example request
curl "https://api.webtools.ng/api/v1/storefront/projects/your-project/landing-pages/{page_slug}/entries" \
  -H "X-Project-Key: wt_pk_your_key"
GET/api/v1/storefront/projects/{project_slug}/landing-pages/{page_slug}/entries/{entry_slug}

Get Public Entry

Parameters
NameTypeInDescription
project_slugstringpathRequired.
page_slugstringpathRequired.
entry_slugstringpathRequired.
Response 200 · PublicEntryDetail
FieldTypeDescription
idstringrequired—
namestringrequired—
slugstringrequired—
excerptstring (nullable)optional—
themeobjectoptional—
theme_overridesobjectoptional—
page_slugstringrequired—
seoSeoReadrequiredNested SEO metadata for API read responses.
blocksEntryBlockRead[]optional—
Example request
curl "https://api.webtools.ng/api/v1/storefront/projects/your-project/landing-pages/{page_slug}/entries/{entry_slug}" \
  -H "X-Project-Key: wt_pk_your_key"

← All resource groups