> For the complete documentation index, see [llms.txt](https://docs.spurtcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spurtcommerce.com/api-reference/store/store-content/store-pages.md).

# Store Pages

Retrieve published storefront content pages.

## Get active CMS page groups and their pages.

> Get active CMS page groups and their pages.\
> \
> \*\*Authentication:\*\* Tenant/translation middleware; \`languageId\` header documented.\
> \
> \*\*Feature area:\*\* Store content\
> \
> \*\*Implementation source:\*\* \`src/api/store/controllers/PageController.ts\`\
> \
> \*\*Request example provenance:\*\* Response structure is based on source @api example.\
> \
> \*\*Response example provenance:\*\* Response structure is based on source @api example.\
> \
> \> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.

```json
{"openapi":"3.0.3","info":{"title":"SpurtCommerce Store API","version":"6.0.0"},"tags":[{"name":"Store pages","description":"Retrieve published storefront content pages."}],"servers":[{"url":"https://api.example.com","description":"Replace with your SpurtCommerce API host. Paths include the /api prefix."}],"paths":{"/api/pages":{"get":{"operationId":"getApiPages","summary":"Get active CMS page groups and their pages.","description":"Get active CMS page groups and their pages.\n\n**Authentication:** Tenant/translation middleware; `languageId` header documented.\n\n**Feature area:** Store content\n\n**Implementation source:** `src/api/store/controllers/PageController.ts`\n\n**Request example provenance:** Response structure is based on source @api example.\n\n**Response example provenance:** Response structure is based on source @api example.\n\n> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.","tags":["Store pages"],"responses":{"200":{"description":"Successful response. Response structure is based on source @api example.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"integer"},"groupName":{"type":"string"},"isActive":{"type":"integer"},"page":{"type":"array","items":{"type":"object","properties":{"pageId":{"type":"integer"},"title":{"type":"string"},"intro":{"type":"string"},"content":{"type":"string"},"pageGroupId":{"type":"integer"},"sortOrder":{"type":"integer"},"slugName":{"type":"string"},"isActive":{"type":"integer"},"pageTranslation":{"type":"object","properties":{},"additionalProperties":true}},"additionalProperties":true}}},"additionalProperties":true}}},"additionalProperties":true}}}}}}}}}
```

## Get a CMS page by slug.

> Get a CMS page by slug.\
> \
> \*\*Authentication:\*\* Tenant/translation middleware; \`languageId\` header documented.\
> \
> \*\*Feature area:\*\* Store content\
> \
> \*\*Implementation source:\*\* \`src/api/store/controllers/PageController.ts\`\
> \
> \*\*Request example provenance:\*\* Route is exactly as declared in source comment. Check route ordering and reserved names when integrating.\
> \
> \*\*Response example provenance:\*\* Route is exactly as declared in source comment. Check route ordering and reserved names when integrating.\
> \
> \> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.

```json
{"openapi":"3.0.3","info":{"title":"SpurtCommerce Store API","version":"6.0.0"},"tags":[{"name":"Store pages","description":"Retrieve published storefront content pages."}],"servers":[{"url":"https://api.example.com","description":"Replace with your SpurtCommerce API host. Paths include the /api prefix."}],"paths":{"/api/{slugName}":{"get":{"operationId":"getApiSlugname","summary":"Get a CMS page by slug.","description":"Get a CMS page by slug.\n\n**Authentication:** Tenant/translation middleware; `languageId` header documented.\n\n**Feature area:** Store content\n\n**Implementation source:** `src/api/store/controllers/PageController.ts`\n\n**Request example provenance:** Route is exactly as declared in source comment. Check route ordering and reserved names when integrating.\n\n**Response example provenance:** Route is exactly as declared in source comment. Check route ordering and reserved names when integrating.\n\n> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.","tags":["Store pages"],"parameters":[{"name":"slugName","in":"path","required":true,"schema":{"type":"string"},"description":"Value for slugName."}],"responses":{"200":{"description":"Successful response. Route is exactly as declared in source comment. Check route ordering and reserved names when integrating.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"pageId":{"type":"integer"},"title":{"type":"string"},"intro":{"type":"string"},"content":{"type":"string"},"pageGroupId":{"type":"integer"},"sortOrder":{"type":"integer"},"slugName":{"type":"string"},"isActive":{"type":"integer"},"pageTranslation":{"type":"object","properties":{},"additionalProperties":true}},"additionalProperties":true},"status":{"type":"string"}},"additionalProperties":true}}}}}}}}}
```
