Browse documentation
Start an idempotent content generation job.
POST /v1/brands/{brand_id}/content/generations (content:generate)
Headers: Idempotency-Key (required), Content-Type: application/json.
Body | Rules |
|---|---|
| one of the 11 formats and in |
| UUID of a content_topic recommendation in this brand |
|
|
| optional, ≤ 4,000 chars; treated as untrusted data and never placed in a system prompt |
|
|
|
|
|
|
| boolean (default false) |
At least one source is required. There are no model, provider or URL fields.
Processing order: write capability (scope + api.generation.enabled) → brand authorization → content-type allowlist → source resolution in the brand → idempotency → atomic job admission (credits + concurrency + row) → audit → enqueue.
Response 202:
Poll GET /v1/jobs/{job_id}. When it succeeds, read GET …/content/{result.content_id}?include=body.
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.
POST/v1/brands/{brand_id}/content/generations
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}"
: "${CITERA_IDEMPOTENCY_KEY:?Set CITERA_IDEMPOTENCY_KEY}"
# 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/generations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${CITERA_API_KEY}" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ${CITERA_IDEMPOTENCY_KEY}" \
--data-raw '{"content_type":"blog_post","source":{"prompt_id":"<prompt_id>"},"options":{"language":"en","tone":"expert","target_length":"standard","include_images":false}}'