Pages
Visibility
GET /pages— PublicGET /pages/{slug}— Public
Authentication
x-api-key: sk_eco_...GET /pages
Returns published store pages (policy, legal, about, contact, and custom pages).
Response Fields
| Field | Type |
|---|---|
id | string |
slug | string |
title | string |
type | string? |
is_published | boolean? |
seo_title | string? |
seo_description | string? |
GET /pages/{slug}
Returns one page including body/content payload.
Response Fields
| Field | Type |
|---|---|
body | string? |
content | any? |
updated_at | string? |
cURL
curl -X GET "https://api.ecommaps.com/api/v1/storefront/pages" \
-H "x-api-key: sk_eco_YOUR_KEY"
curl -X GET "https://api.ecommaps.com/api/v1/storefront/pages/refund" \
-H "x-api-key: sk_eco_YOUR_KEY"SDK Example
const pages = await ecommapsClient.store.pages.list();
const refund = await ecommapsClient.store.pages.retrieve("refund");Error Matrix
| Status | Scenario |
|---|---|
401 | Missing/invalid API key |
404 | Page slug not found |
500 | Datastore failure |