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

# Get step screenshots

> Retrieve before and after screenshots for a specific step in a test run. Returns time-limited signed URLs (valid for ~3 hours).

You can also get all screenshots at once by passing `?include=screenshots` on the [Get a test run](/api-reference/endpoint/get-test-run) endpoint. This endpoint is useful when you only need screenshots for specific steps or need a fresh TTL on the signed URLs.



## OpenAPI

````yaml GET /api/v1/test-runs/{runId}/screenshots/{stepNumber}
openapi: 3.0.3
info:
  title: Decipher API
  version: 1.0.0
  description: >-
    API for retrieving test run data from Decipher. Use your API key to
    authenticate requests.
servers:
  - url: https://api.getdecipher.com
    description: Production
security: []
paths:
  /api/v1/test-runs/{runId}/screenshots/{stepNumber}:
    get:
      summary: Get step screenshots
      description: >-
        Retrieve before and after screenshots for a specific step in a test run.
        Returns time-limited signed URLs (valid for ~3 hours).


        You can also get all screenshots at once by passing
        `?include=screenshots` on the [Get a test
        run](/api-reference/endpoint/get-test-run) endpoint. This endpoint is
        useful when you only need screenshots for specific steps or need a fresh
        TTL on the signed URLs.
      parameters:
        - schema:
            type: string
            description: The ID of the test run
            example: '12345'
          required: true
          description: The ID of the test run
          name: runId
          in: path
        - schema:
            type: string
            description: The step number
            example: '3'
          required: true
          description: The step number
          name: stepNumber
          in: path
      responses:
        '200':
          description: Step screenshots with signed URLs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StepScreenshotsResponse'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Test run or step not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    StepScreenshotsResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - stepScreenshots
        runId:
          type: number
        stepNumber:
          type: number
        stepDescription:
          type: string
        screenshots:
          type: object
          properties:
            before:
              type: string
              nullable: true
            after:
              type: string
              nullable: true
          required:
            - before
            - after
        expiresAt:
          type: string
      required:
        - object
        - runId
        - stepNumber
        - stepDescription
        - screenshots
        - expiresAt
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - authentication_error
                - authorization_error
                - not_found_error
                - validation_error
                - rate_limit_error
                - api_error
            code:
              type: string
            message:
              type: string
            field:
              type: string
          required:
            - type
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your Decipher API key as the bearer token.

````