QUANTM7 Docs
Headless APIAPI Reference

Policies

Fetch store policies like privacy, returns, and shipping from the QUANTM7 API.

Store policies are legal pages (privacy, returns, shipping, terms) that you display on your storefront. The list endpoint gives you titles and handles for navigation. The detail endpoint gives you the full content.

List policies

Returns all published policies for your store.

GET /v1/policies

Auth: Publishable or secret key

Response

{
  "data": [
    {
      "id": 1,
      "public_id": "01J9ABC...",
      "title": "Privacy Policy",
      "handle": "privacy-policy",
      "policy_type": "privacy",
      "published_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-07-15T10:30:00.000Z"
    },
    {
      "id": 2,
      "public_id": "01J9DEF...",
      "title": "Returns Policy",
      "handle": "returns-policy",
      "policy_type": "returns",
      "published_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-06-20T14:00:00.000Z"
    }
  ]
}

Policy list fields

FieldTypeDescription
idintegerPolicy ID
public_idstringPublic UUID
titlestringPolicy title
handlestringURL-safe slug
policy_typestringOne of privacy, returns, shipping, terms, custom
published_atstringPublish date (ISO 8601)
updated_atstringLast update date

Get a policy

Returns a single policy with its full content.

GET /v1/policies/{handle}

Auth: Publishable or secret key

Path parameters

ParameterTypeDescription
handlestringPolicy handle (URL slug)

Response

{
  "data": {
    "id": 1,
    "public_id": "01J9ABC...",
    "title": "Privacy Policy",
    "handle": "privacy-policy",
    "policy_type": "privacy",
    "blocks": {
      "sections": [
        { "type": "heading", "content": "What data we collect" },
        { "type": "paragraph", "content": "We collect your name, email..." }
      ]
    },
    "seo_title": "Privacy Policy | My Store",
    "seo_description": "How we handle your personal data.",
    "published_at": "2026-01-01T00:00:00.000Z",
    "created_at": "2025-12-15T10:00:00.000Z",
    "updated_at": "2026-07-15T10:30:00.000Z"
  }
}

Policy detail fields

FieldTypeDescription
idintegerPolicy ID
public_idstringPublic UUID
titlestringPolicy title
handlestringURL-safe slug
policy_typestringPolicy type
blocksobject or nullRich content (block editor format)
seo_titlestring or nullSEO page title
seo_descriptionstring or nullSEO meta description
published_atstringPublish date
created_atstringCreation date
updated_atstringLast update date

Errors

StatusCodeDescription
404not_foundNo policy with this handle exists

Examples

List all policies:

curl https://api.quantm7.com/v1/policies \
  -H "Authorization: Bearer q7_pk_your_key"

Get privacy policy:

curl https://api.quantm7.com/v1/policies/privacy-policy \
  -H "Authorization: Bearer q7_pk_your_key"

On this page