curl --request GET \
--url https://api.marzipan.co/v1/cms/pages \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"slug": "about-us",
"name": "About Us",
"metaTitle": "About Our Wine Collection",
"metaDescription": "Learn about our carefully curated wine selection and subscription services",
"status": "published",
"createdAt": "2024-01-15T10:30:00.000000Z",
"updatedAt": "2024-02-01T14:20:00.000000Z",
"publishedAt": "2024-01-15T10:30:00.000000Z"
},
{
"slug": "wine-guide",
"name": "Wine Guide",
"metaTitle": "Complete Wine Tasting Guide",
"metaDescription": "Your comprehensive guide to wine tasting, pairing, and appreciation",
"status": "published",
"createdAt": "2024-01-20T09:00:00.000000Z",
"updatedAt": "2024-01-25T16:45:00.000000Z",
"publishedAt": "2024-01-20T09:00:00.000000Z"
}
]
}
Retrieve a list of all CMS pages including their metadata, status, and publication dates.
curl --request GET \
--url https://api.marzipan.co/v1/cms/pages \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"slug": "about-us",
"name": "About Us",
"metaTitle": "About Our Wine Collection",
"metaDescription": "Learn about our carefully curated wine selection and subscription services",
"status": "published",
"createdAt": "2024-01-15T10:30:00.000000Z",
"updatedAt": "2024-02-01T14:20:00.000000Z",
"publishedAt": "2024-01-15T10:30:00.000000Z"
},
{
"slug": "wine-guide",
"name": "Wine Guide",
"metaTitle": "Complete Wine Tasting Guide",
"metaDescription": "Your comprehensive guide to wine tasting, pairing, and appreciation",
"status": "published",
"createdAt": "2024-01-20T09:00:00.000000Z",
"updatedAt": "2024-01-25T16:45:00.000000Z",
"publishedAt": "2024-01-20T09:00:00.000000Z"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your API token.
Success
The response is of type object[]
.