curl --request POST \
--url https://www.closient.com/brands/api/v1/brands/{id}/story-pages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"accent_color": "#ff9500",
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
],
"name": "Our bakery story",
"primary_color": "#0a84ff"
}
'import requests
url = "https://www.closient.com/brands/api/v1/brands/{id}/story-pages"
payload = {
"accent_color": "#ff9500",
"blocks": [
{
"data": { "body": "Three generations of bakers." },
"type": "text_section"
}
],
"name": "Our bakery story",
"primary_color": "#0a84ff"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accent_color: '#ff9500',
blocks: [
{
data: {body: JSON.stringify('Three generations of bakers.')},
type: 'text_section'
}
],
name: 'Our bakery story',
primary_color: '#0a84ff'
})
};
fetch('https://www.closient.com/brands/api/v1/brands/{id}/story-pages', 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://www.closient.com/brands/api/v1/brands/{id}/story-pages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accent_color' => '#ff9500',
'blocks' => [
[
'data' => [
'body' => 'Three generations of bakers.'
],
'type' => 'text_section'
]
],
'name' => 'Our bakery story',
'primary_color' => '#0a84ff'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/brands/api/v1/brands/{id}/story-pages"
payload := strings.NewReader("{\n \"accent_color\": \"#ff9500\",\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ],\n \"name\": \"Our bakery story\",\n \"primary_color\": \"#0a84ff\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/brands/api/v1/brands/{id}/story-pages")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accent_color\": \"#ff9500\",\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ],\n \"name\": \"Our bakery story\",\n \"primary_color\": \"#0a84ff\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/brands/{id}/story-pages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accent_color\": \"#ff9500\",\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ],\n \"name\": \"Our bakery story\",\n \"primary_color\": \"#0a84ff\"\n}"
response = http.request(request)
puts response.read_body{
"accent_color": "#ff9500",
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
],
"brand_name_override": "",
"created": "2026-06-01T09:00:00Z",
"id": "sT4uV6wX8yZ2aB3cD5eF7g",
"modified": "2026-06-19T14:30:00Z",
"name": "Our bakery story",
"primary_color": "#0a84ff",
"tagline": "Made by hand in Portland"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Create a brand story page
Create a story page a resolver rule can then send scans to. Requires the Owner, Manager or Editor role on the organization that owns the brand; a read-only key is refused with 403.
curl --request POST \
--url https://www.closient.com/brands/api/v1/brands/{id}/story-pages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"accent_color": "#ff9500",
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
],
"name": "Our bakery story",
"primary_color": "#0a84ff"
}
'import requests
url = "https://www.closient.com/brands/api/v1/brands/{id}/story-pages"
payload = {
"accent_color": "#ff9500",
"blocks": [
{
"data": { "body": "Three generations of bakers." },
"type": "text_section"
}
],
"name": "Our bakery story",
"primary_color": "#0a84ff"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accent_color: '#ff9500',
blocks: [
{
data: {body: JSON.stringify('Three generations of bakers.')},
type: 'text_section'
}
],
name: 'Our bakery story',
primary_color: '#0a84ff'
})
};
fetch('https://www.closient.com/brands/api/v1/brands/{id}/story-pages', 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://www.closient.com/brands/api/v1/brands/{id}/story-pages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accent_color' => '#ff9500',
'blocks' => [
[
'data' => [
'body' => 'Three generations of bakers.'
],
'type' => 'text_section'
]
],
'name' => 'Our bakery story',
'primary_color' => '#0a84ff'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/brands/api/v1/brands/{id}/story-pages"
payload := strings.NewReader("{\n \"accent_color\": \"#ff9500\",\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ],\n \"name\": \"Our bakery story\",\n \"primary_color\": \"#0a84ff\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/brands/api/v1/brands/{id}/story-pages")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accent_color\": \"#ff9500\",\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ],\n \"name\": \"Our bakery story\",\n \"primary_color\": \"#0a84ff\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/brands/api/v1/brands/{id}/story-pages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accent_color\": \"#ff9500\",\n \"blocks\": [\n {\n \"data\": {\n \"body\": \"Three generations of bakers.\"\n },\n \"type\": \"text_section\"\n }\n ],\n \"name\": \"Our bakery story\",\n \"primary_color\": \"#0a84ff\"\n}"
response = http.request(request)
puts response.read_body{
"accent_color": "#ff9500",
"blocks": [
{
"data": {
"body": "Three generations of bakers."
},
"type": "text_section"
}
],
"brand_name_override": "",
"created": "2026-06-01T09:00:00Z",
"id": "sT4uV6wX8yZ2aB3cD5eF7g",
"modified": "2026-06-19T14:30:00Z",
"name": "Our bakery story",
"primary_color": "#0a84ff",
"tagline": "Made by hand in Portland"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Authorizations
Path Parameters
URL-safe brand identifier.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Body
Payload to create a story page.
Internal label shown to brand managers when picking a page for a rule, 1 to 120 characters. Unique among the brand's pages of this kind; a name already in use is refused with 422.
1 - 120^[^\x00]{1,120}$Header background colour, a 6-digit hex value such as #0a84ff.
^#[0-9A-Fa-f]{6}$Button and link colour, a 6-digit hex value such as #ff9500.
^#[0-9A-Fa-f]{6}$Header brand name to show instead of the brand's own, up to 120 characters.
120^[^\x00]{0,120}$One-line tagline under the brand name, up to 160 characters.
160^[^\x00]{0,160}$Ordered content blocks, each a {type, data} object. Types: hero_image, text_section, image_text, certification_badges, image_gallery and cta. A malformed block is refused with 422.
Response
Created
A brand-styled product story page made of ordered content blocks.
Identifier of the page.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Internal label shown to brand managers when picking a page for a rule.
Header brand name shown instead of the brand's own; empty to use the brand's name.
One-line tagline under the brand name; empty when none.
Header background colour, a 6-digit hex value such as #0a84ff.
Button and link colour, a 6-digit hex value such as #ff9500.
ISO-8601 creation timestamp.
ISO-8601 last-modified timestamp.
Ordered content blocks, each a {type, data} object. Types: hero_image, text_section, image_text, certification_badges, image_gallery and cta. A malformed block is refused with 422.