Get a generated story's progress

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.storydoc.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Storydoc API MCP server": {
    "url": "https://docs.storydoc.com/mcp"
  }
}

Close
GET /v2/stories/generate/{jobId}

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.

Path parameters

  • jobId string Required

    The jobId from POST /v2/stories/generate.

Responses

  • 200 application/json

    The deck's progress

    Hide response attributes Show response attributes object
    • jobId string Required
    • status string Required

      done: published, the links show the deck. failed: see error.

      Values are building, done, or failed.

    • slides object Required
      Hide slides attributes Show slides attributes object
      • built integer

        Slides placed so far.

      • total integer

        Slides planned; 0 until the outline is written.

    • error string

      Why it failed, when status is failed.

    • url string(uri)
    • shortUrl string(uri)
    • pageId string
    • versionId string
    • editorUrl string(uri)
    • versionUrl string(uri)
  • 403 application/json

    Missing or invalid API key

    Hide response attributes Show response attributes object
    • error string
    • code string

      VARIABLES_PLAN_REQUIRED when the story uses variables above the account's plan; absent for authentication failures.

    • requiredPlan string

      With VARIABLES_PLAN_REQUIRED: the lowest plan that covers every blocked variable.

      Values are pro or team.

    • variables array[object]

      With VARIABLES_PLAN_REQUIRED: the blocked variables and the plan each needs.

      Hide variables attributes Show variables attributes object
      • name string
      • requiredPlan string
  • 404 application/json

    No such generation for this organization (or it is more than a day old)

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"
}