API requests and draft review
List content, propose a draft and handle versions safely.
Content endpoints#
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/sites | Accessible site slugs |
| GET | /api/v1/content?site=your-site&type=pages | List metadata |
| GET | /api/v1/content?site=your-site&id=RESOURCE | Read one resource and version |
| POST | /api/v1/content?site=your-site | Create staged draft |
| PATCH | /api/v1/content?site=your-site&id=RESOURCE | Propose changes |
Swipe the table sideways to read every column.
Propose a new page#
Send Content-Type: application/json and a Bearer header to the platform hostname. Types are pages, posts and blocks. Pages/posts require a slug; blocks omit slug/excerpt. Use image placeholders only. No API upload, publish, delete or template/CSS/JS operation is available.
{
"type": "pages",
"title": "Our services",
"slug": "our-services",
"excerpt": "How we can help.",
"body_html": "<h2>Our services</h2><p>Draft content.</p><p>[image:Our team]</p>",
"client_request_id": "create-services-unique-001"
}Avoid overwriting someone else#
GET the opaque resource ID first. PATCH needs its latest exact version as expected_version or a strong quoted If-Match header. Each mutation needs a unique client_request_id (8–80 letters/numbers/underscores/hyphens). Reuse it only for the same retry within 24 hours.
{
"title": "Updated services",
"expected_version": "EXACT_64_CHARACTER_VERSION_FROM_GET",
"client_request_id": "update-services-unique-002"
}The owner stays in control#
API writes are separate proposals. Open Settings → API Access → API drafts, review and explicitly publish. New/unpublished content can be saved as a CMS draft and opened in the editor. Live content stays unchanged until approved.
Limits and useful errors#
Limits: 40,000 UTF-8 bytes/body, 64,000/request, 25 pending proposals/site. Successful draft requests: 10/minute and 200/day/site. Token requests: 60/minute. Existing page quotas apply. Lists use limit 1–20 and offset up to 10000.
- 401: check expiry, revocation and password changes.
- 403: check Advanced, permissions and suspension.
- 409: read current state before resolving a conflict.
- 428: provide the latest expected_version.
- 429: respect Retry-After.