Page
curl --request GET \
--url https://api.marzipan.co/v1/cms/pages/{pageSlug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.marzipan.co/v1/cms/pages/{pageSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.marzipan.co/v1/cms/pages/{pageSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.marzipan.co/v1/cms/pages/{pageSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.marzipan.co/v1/cms/pages/{pageSlug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.marzipan.co/v1/cms/pages/{pageSlug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.marzipan.co/v1/cms/pages/{pageSlug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"slug": "about-us",
"name": "About Us",
"content": "<h1>About Our Collection</h1><p>We are passionate about bringing you the finest products from around the world. Our carefully curated selection includes premium ranges and exclusive discoveries that you won't find anywhere else.</p><p>Founded in 2020, our mission is to make exceptional products accessible through our subscription service and expert recommendations.</p>",
"seo": {
"title": "About Our Collection - Premium Products & Subscriptions",
"description": "Learn about our carefully curated selection and subscription services. Discover premium ranges and exclusive products delivered to your door.",
"ogImage": "https://marzipan-cloud-dev.b-cdn.net/1/ea9f0c5b-e517-4e24-99a1-90d40dcb1c79.jpg"
},
"status": "published",
"fields": {
"heroImage": "https://marzipan-cloud-dev.b-cdn.net/1/3bc26391-8cc1-4d20-a636-1c2ec55ef10d.jpg",
"teamPhoto": "https://marzipan-cloud-dev.b-cdn.net/1/0736c529-a33d-4b8c-8126-eb69779dcdad.jpg"
},
"createdAt": "2024-01-15T10:30:00.000000Z",
"updatedAt": "2024-02-01T14:20:00.000000Z",
"publishedAt": "2024-01-15T10:30:00.000000Z"
}{
"message": "string"
}{
"message": "string"
}CMS
Page
Get the full content and details of a specific CMS page by its slug identifier.
GET
/
cms
/
pages
/
{pageSlug}
Page
curl --request GET \
--url https://api.marzipan.co/v1/cms/pages/{pageSlug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.marzipan.co/v1/cms/pages/{pageSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.marzipan.co/v1/cms/pages/{pageSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.marzipan.co/v1/cms/pages/{pageSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.marzipan.co/v1/cms/pages/{pageSlug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.marzipan.co/v1/cms/pages/{pageSlug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.marzipan.co/v1/cms/pages/{pageSlug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"slug": "about-us",
"name": "About Us",
"content": "<h1>About Our Collection</h1><p>We are passionate about bringing you the finest products from around the world. Our carefully curated selection includes premium ranges and exclusive discoveries that you won't find anywhere else.</p><p>Founded in 2020, our mission is to make exceptional products accessible through our subscription service and expert recommendations.</p>",
"seo": {
"title": "About Our Collection - Premium Products & Subscriptions",
"description": "Learn about our carefully curated selection and subscription services. Discover premium ranges and exclusive products delivered to your door.",
"ogImage": "https://marzipan-cloud-dev.b-cdn.net/1/ea9f0c5b-e517-4e24-99a1-90d40dcb1c79.jpg"
},
"status": "published",
"fields": {
"heroImage": "https://marzipan-cloud-dev.b-cdn.net/1/3bc26391-8cc1-4d20-a636-1c2ec55ef10d.jpg",
"teamPhoto": "https://marzipan-cloud-dev.b-cdn.net/1/0736c529-a33d-4b8c-8126-eb69779dcdad.jpg"
},
"createdAt": "2024-01-15T10:30:00.000000Z",
"updatedAt": "2024-02-01T14:20:00.000000Z",
"publishedAt": "2024-01-15T10:30:00.000000Z"
}{
"message": "string"
}{
"message": "string"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your API token.
Path Parameters
The unique slug identifier for the page
Response
CMS page details
URL-friendly page identifier
Page title/name
Page content/body
SEO metadata
Show child attributes
Show child attributes
Page publication status
Available options:
published, draft Custom fields as key-value pairs
Show child attributes
Show child attributes
Creation timestamp
Last update timestamp
Publication timestamp
⌘I

