How far the deck started by POST /v2/stories/generate is: building while its outline and slides are written, done once it is published (the links show it), or failed with an error. slides.built counts the slides placed so far out of slides.total; a done deck that missed some slides has fewer built than total, and can be completed in the editor. Poll every few seconds; this does not count toward the rate limit.
GET
/v2/stories/generate/{jobId}
curl \
--request GET 'https://api.storydoc.com/v2/stories/generate/{jobId}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"jobId": "3b241101-e2bb-4255-8caf-4136c566a962",
"status": "done",
"slides": {
"built": 9,
"total": 9
},
"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"
}
Response examples (403)
{
"error": "Access denied",
"code": "VARIABLES_PLAN_REQUIRED",
"requiredPlan": "pro",
"variables": [
{
"name": "deal_value",
"requiredPlan": "pro"
}
]
}
Response examples (404)
{
"error": "No such deck generation"
}