Build with AIX DocGen
Generate branded proposals, reports, and SOWs from your app or from an AI agent. This guide covers authentication, the REST API, and PDF / DOCX exports.
Quickstart
Create your first document in three steps: sign up, generate an API key in Settings → API Keys, then call POST /api/v1/documents.
curlcurl https://docgen.aixccelerate.com/api/v1/documents \ -H "Authorization: Bearer aix_live_xxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Co — Q2 Proposal", "type": "proposal", "status": "draft" }'
The response returns a document id you can use to request a PDF or DOCX export.
Authentication
All API requests are authenticated with a bearer token. Keys are scoped to a single organization and carry the permissions of the user who created them. Keep secret keys server-side — they should never appear in a browser bundle.
httpAuthorization: Bearer aix_live_xxxxxxxxxxxxxxxx
Documents
/api/v1/documentsList up to 100 documents in your organization, newest first./api/v1/documentsCreate a new document./api/v1/documents/{id}Fetch a single document, including its Tiptap content tree./api/v1/documents/{id}Update a document's name, status, theme, or content.Create — request body
json{ "name": "Acme Co — Q2 Proposal", "type": "proposal", "status": "draft", "theme_id": "00000000-0000-0000-0000-000000000000", "content_json": { } }
name is required. type defaults to proposal. status is one of draft, review, final. content_json is a Tiptap document — leave empty to start from a blank cover page.
Exports
Request a PDF or DOCX and poll until it's ready. Completed exports return a signed URL valid for one hour.
curl# 1. Queue an export curl https://docgen.aixccelerate.com/api/v1/exports \ -H "Authorization: Bearer aix_live_xxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "document_id": "DOC_ID", "format": "pdf" }' # 2. Poll the job curl https://docgen.aixccelerate.com/api/v1/exports/JOB_ID \ -H "Authorization: Bearer aix_live_xxxxxxxxxxxxxxxx"
queued → processing → ready. On ready the response includes a download_url. Exports respect your theme's page size, margins, and brand colors.Ready to integrate?
Create a free account to get your first API key and start generating branded documents in minutes.