The API is available to some accounts only. If your key generation is disabled, or the API answers
404, check with your DocuRise contact.1. Generate an API key
In the dashboard, go to Settings → Developers, name your key, select the scopes it needs (documents:write for this guide), and generate it. Copy the
key immediately — it’s shown in full exactly once.
2. Create a document
Idempotency-Key is required on every create request. Reusing the same key
with the same body replays the original response instead of creating a
second document — safe to retry on a timeout.
Not writing code? Setting this up in Zapier, n8n, or a similar tool
TheIdempotency-Key exists so that a retry — yours, or the automation
tool’s own automatic retry after a timeout — doesn’t create a second
document. It only works if you set it up right:
Do: set it to something that’s always the same for this one document, and different for every
other document — usually the unique ID of whatever triggered the automation (a Notion page ID, a
form submission ID, a spreadsheet row ID).
- Zapier
- n8n
In your action step (e.g. “Webhooks by Zapier” → Custom Request, or a
custom app’s Create action), map the
Idempotency-Key field directly to
a unique field from your trigger step — don’t generate it with a
Formatter “random” utility. If your trigger is a new Notion page, for
example, map it to that page’s ID:
create-doc-{{Trigger: Page ID}}.3. Read the response
A successful call returns201 with the document’s id and live share URL:
Next steps
- Authentication — scopes, key rotation, and revocation.
- Create a document reference — full request/response contract.
