Generate a new story from a prompt
Generates a brand-new presentation from a natural-language prompt using AI. The endpoint runs a 3-step pipeline (outline → slide layouts → per-slide content), optionally derives a brand color palette and fonts from the supplied website, persists the page in Live status, and creates its live link.
The response includes the live URL, short URL, editor URL, and the pageId / versionId you can pass to other v2 endpoints (e.g. use pageId as storyId in POST /v2/versions to create personalized variants of the generated story).
Rate Limit
150 requests per minute per organization. Every response includes x-rate-limit-counter and x-rate-limit-maximum headers.
Latency
Generation is synchronous and typically takes 30–90 seconds depending on slide count and brand pipeline. Use a long-running HTTP client and set a generous read timeout (≥ 180s).
Request
- Base URLhttps://api.storydoc.com
- AuthHTTP bearer
Request body
Example request
{
"prompt": "A 6-slide sales deck pitching our analytics product to enterprise marketing teams. Highlight ROI, ease of integration, and customer success stories.",
"senderEmail": "sender@company.com",
"company": "ACME Corporation",
"website": "acme.com",
"presentation type": "Sales deck"
}Response
Story generated and published successfully
Example response
{
"url": "https://www.storydoc.com/5d7d8922e00d9265/2e91b144-092f-456b-8f2e-0bae9f7f3355",
"shortUrl": "https://view.storydoc.com/4GdDGt",
"pageId": "672a1c50223b713000a41ca74",
"versionId": "672a1f40a3a86b7a96d0d8ccc",
"editorUrl": "https://app.storydoc.com/pages/editor/672a1c50223b713000a41ca74/672a1f40a3a86b7a96d0d8ccc",
"versionUrl": "https://app.storydoc.com/pages/editor/672a1c50223b713000a41ca74/versions/672a1f40a3a86b7a96d0d8ccc"
}Changes
No recorded changes to this operation across all 1 revision of this API.