> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pullstory.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a pull story

> Fetch a brief-generated pull story by ID. Poll this endpoint to check generation status.



## OpenAPI

````yaml /openapi.yaml get /stories/{id}
openapi: 3.1.0
info:
  title: pull/story API
  version: '1.0'
  description: |
    Turn a structured code brief into a narrated video walkthrough.

    All endpoints are served from `https://pullstory.com/api/v1`.
  contact:
    name: pull/story Support
    url: https://pullstory.com
    email: moshikarim@proton.me
servers:
  - url: https://pullstory.com/api/v1
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Stories
    description: Create and retrieve brief-generated pull stories.
paths:
  /stories/{id}:
    get:
      tags:
        - Stories
      summary: Get a pull story
      description: >-
        Fetch a brief-generated pull story by ID. Poll this endpoint to check
        generation status.
      operationId: getStory
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^brief_[a-f0-9]{16}$
            example: brief_0123abcd4567ef89
      responses:
        '200':
          description: Pull story details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Story'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimit'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security: []
components:
  schemas:
    Story:
      type: object
      properties:
        id:
          type: string
          example: brief_0123abcd4567ef89
        status:
          type: string
          enum:
            - generating
            - ready
            - failed
        url:
          type: string
          example: https://pullstory.com/s/brief_0123abcd4567ef89
        cached:
          type: boolean
          example: false
        message:
          type: string
          example: Another request is already generating this story
        estimated_seconds:
          type: integer
          nullable: true
          example: 90
        duration_seconds:
          type: integer
          nullable: true
          example: 142
        scenes:
          type: integer
          nullable: true
          example: 8
        title:
          type: string
          example: How auth works in this codebase
        error:
          type: string
          nullable: true
          example: Story generation failed. Retry with a smaller brief.
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimit:
      description: Too many requests
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: Service temporarily unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````