Browse documentation
Read generated content, safely edit drafts, and select cover images.
GET /v1/brands/{brand_id}/content
Metadata only, newest first. Query: status (see content types and enums), content_type, source_recommendation_id, limit, cursor. Returns content objects with provenance (whether it was created via the API and by which job/key), destination compatibility and publications.
GET /v1/brands/{brand_id}/content/{content_id}
Query include=body returns the body as CCF blocks. The body is capped at 256 KB: whole leading blocks are kept, body_truncated reports cutting and body_bytes gives the full size. Without include, body is null.
PATCH /v1/brands/{brand_id}/content/{content_id} — edit a draft (content:write)
Body | Rules |
|---|---|
| 1–500 chars, optional |
| 1–500 chars, optional |
| ≤ 200 CCF blocks, each |
| required — |
At least one of title/slug/body must be present. The content must be reviewable (pending_approval, approved, published, publish_failed), and no publication may be in flight. A stale expected_updated_at gives 409 invalid_state. Saving never publishes.
POST /v1/brands/{brand_id}/content/{content_id}/cover — select a cover (content:write)
Body: { "asset_id": "<uuid>", "expected_updated_at": "<RFC 3339>" }. The asset must be an image belonging to this content (crawl screenshots are excluded). The cover flag and body are saved in one SQL transaction.
Request examples
Choose a language for each endpoint. Set your assigned HTTPS API origin and environment variables, then replace the <placeholders>. These examples do not run requests in your browser.
GET/v1/brands/{brand_id}/content
: "${CITERA_API_BASE_URL:?Set CITERA_API_BASE_URL}"
: "${CITERA_API_KEY:?Set CITERA_API_KEY}"
: "${BRAND_ID:?Set BRAND_ID}"
curl --fail-with-body --connect-timeout 10 --max-time 30 -X GET "${CITERA_API_BASE_URL%/}/v1/brands/${BRAND_ID}/content" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}"GET/v1/brands/{brand_id}/content/{content_id}
: "${CITERA_API_BASE_URL:?Set CITERA_API_BASE_URL}"
: "${CITERA_API_KEY:?Set CITERA_API_KEY}"
: "${BRAND_ID:?Set BRAND_ID}"
: "${CONTENT_ID:?Set CONTENT_ID}"
curl --fail-with-body --connect-timeout 10 --max-time 30 -X GET "${CITERA_API_BASE_URL%/}/v1/brands/${BRAND_ID}/content/${CONTENT_ID}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}"PATCH/v1/brands/{brand_id}/content/{content_id}
This is a write operation. Review the body and confirmation requirements before running it.
: "${CITERA_API_BASE_URL:?Set CITERA_API_BASE_URL}"
: "${CITERA_API_KEY:?Set CITERA_API_KEY}"
: "${BRAND_ID:?Set BRAND_ID}"
: "${CONTENT_ID:?Set CONTENT_ID}"
# Review this write and replace every <placeholder> before running.
curl --fail-with-body --connect-timeout 10 --max-time 30 -X PATCH "${CITERA_API_BASE_URL%/}/v1/brands/${BRAND_ID}/content/${CONTENT_ID}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"title":"Updated draft title","expected_updated_at":"<fresh_updated_at>"}'POST/v1/brands/{brand_id}/content/{content_id}/cover
This is a write operation. Review the body and confirmation requirements before running it.
: "${CITERA_API_BASE_URL:?Set CITERA_API_BASE_URL}"
: "${CITERA_API_KEY:?Set CITERA_API_KEY}"
: "${BRAND_ID:?Set BRAND_ID}"
: "${CONTENT_ID:?Set CONTENT_ID}"
# Review this write and replace every <placeholder> before running.
curl --fail-with-body --connect-timeout 10 --max-time 30 -X POST "${CITERA_API_BASE_URL%/}/v1/brands/${BRAND_ID}/content/${CONTENT_ID}/cover" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"asset_id":"<asset_id>","expected_updated_at":"<fresh_updated_at>"}'