// DEVELOPERS

API Reference

Programmatic access to the Kontent Engine pipeline. The public API is in private beta; the schemas below are early drafts and may change.

Authentication

All requests must include an Authorization: Bearer <token>header. Tokens are issued from Settings → API Keys → Developer API (coming soon). Tokens scope to a single workspace.

Base URL

https://api.kontentengine.example/v1

Resources

POST /sources

Register a new ingestion source. The type field accepts one of 6 values: rss, scraper, youtube, tiktok, webhook, brand(Brand Prompt Lane — source-less generation from the persona profile and a topic pool).

POST /raw

Push raw content directly into the pipeline. Useful for webhook bridges.

GET /generated

List generated content items, filterable by source, status, and date range. The bucket filter accepts one of the 5 user-facing values: video, image, text, blog, newsletter. Internal engine outputs (Persona Short, Template Short, Clipped Short, Composite Short, Persona Tweet, Quote Graphic, etc.) all collapse into these 5 buckets for API consumers — read the engine_output field on each item if you need the underlying renderer identity.

POST /generated/:id/publish

Schedule or immediately publish a generated item to its configured platforms.

GET /analytics

Aggregate performance metrics per outlet, content type, and date bucket.

Webhooks

Subscribe to events to receive POST callbacks when pipeline state changes. Configure endpoints in Settings → Webhooks.

  • raw.ingested — a new raw item entered the queue.
  • generated.ready — an AI-generated variant is ready for review.
  • published.success — an item was published successfully.
  • published.failed — a publish attempt failed. Payload includes error detail.

Rate limits

60 requests per minute per workspace, burst of 120. Exceeding returns HTTP 429.

Errors

Errors return standard HTTP status codes with a JSON body: { error: "...", detail?: [...] }. Unauthenticated requests return 401; exceeded quota returns 402; invalid inputs return 400.

Early access

Interested in the developer API? Email api@kontentengine.examplewith your use case and we'll whitelist your workspace.