POST
/api/v1/ai/pages/notesDraft a page from notes
Turns rough notes into a page in Markdown. Streams the result as server-sent events: delta events with text as it's written, then done (or limit when a limit stops it). Nothing is saved: create the page with Create a page.
API token required30 per minute per IP
Guide: AI in pages
Code samples and Try itRequest body
#application/json, required
notesstringRequiredThe rough notes. Up to 42,000 characters.
templatestringA built-in template's id to shape the page, or
autoto let AI choose. Up to 64 characters.titlestringA title for the page. Up to 200 characters.
workspacestringThe workspace the page will go in (members and up). Its AI setting and limits apply. Up to 64 characters.
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.