Create a document
Create a DocuRise document: a Notion page, a post (rich text or an HTML page) or a lead-capture form
Authorizations
A key generated from Settings → Developers, sent as
Authorization: Bearer dr_live_<12 hex chars>_<64 hex chars>. Keys
carry explicit scopes — each endpoint states the one it requires.
The full key is shown exactly once at generation time and cannot be
retrieved again; only the keyId prefix is shown afterward. A
revoked key fails auth on its very next request.
Headers
A unique client-generated string (≤ 255 characters) identifying this create attempt. See "Idempotency" above.
255Body
- Notion page
- Post: content (rich text)
- Post: html (HTML page)
- Lead-capture form
The body of POST /api/preview/documents. kind selects which of the three bodies applies:
notion, post or form. A missing or unknown kind, or a field that belongs to another kind, is
a 400 VALIDATION_ERROR. A post body takes exactly one of content (rich-text HTML) or html
(an HTML page): sending both or neither is a 400 VALIDATION_ERROR.
Selects the document kind. Always notion for this body.
notion Document title, shown on the share page.
1 - 200A URL to a Notion page that has been published to web (shared publicly). DocuRise fetches it unauthenticated — there is no per-account Notion connection to configure.
Optional subtitle shown on the share page.
500Only live (the default) is accepted. draft is
422 STATUS_NOT_SUPPORTED because a Notion document has no draft state, and
inactive is 422 STATUS_NOT_SUPPORTED because creating a document turned off
is not available yet (create it, then PATCH its status to inactive).
live 