> For the complete documentation index, see [llms.txt](https://docs.storydoc.com/llms.txt)

# Get a generated story's progress

> 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.



## Servers
- Production API server: https://api.storydoc.com (Production API server)


## Authentication methods
- Bearer auth


## Parameters

### Path parameters

- **jobId** (string)
  The `jobId` from `POST /v2/stories/generate`.




## Responses
### 200
The deck's progress

#### Body: application/json (object)
- **jobId** (string)

- **status** (string)
  `done`: published, the links show the deck. `failed`: see `error`.

- **slides** (object)

- **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
Missing or invalid API key

#### Body: application/json (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.

- **variables** (array[object])
  With `VARIABLES_PLAN_REQUIRED`: the blocked variables and the plan each needs.


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


[Powered by Bump.sh](https://bump.sh)
