Skip to main content
Before you begin, you’ll need:
  • Chronicle workspace with API enabled (available on Pro, Plus, and Max plans)
  • Node.js 18+ or another runtime with fetch support
1

Create an API key

  • Open Chronicle
  • Navigate to Settings → API
  • Create an API key
  • Copy and store it securely, you won’t be able to see it again
Include the key in the header with every request. Supported headers:
  • Authorization: Bearer <API_KEY>
  • x-api-key: <API_KEY>
2

Upload reference files (optional)

Skip this step if your prompt doesn’t need source files. Otherwise, request a presigned upload target, post the file directly to S3, and keep the returned download_url for the next step.
Allowed formats: .txt, .md, .pdf, .pptx, and common image types. Max 50 MB per file. See POST /uploads/create-target for the full reference.
3

Start a generation from a prompt

If you uploaded files in the previous step, pass them in the attachments array using the download_url you captured.
The request returns 202 Accepted with a generation_id you can poll.
4

Poll for completion

Poll the status endpoint until status is completed, failed, or awaiting_input.
5

View and use your Chronicle deck

Open the url from the completed payload, or fetch the presentation later by ID: