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

# List runs for a test

> Retrieve a paginated list of test runs for a specific test. Supports filtering by status and time range, with cursor-based pagination.



## OpenAPI

````yaml GET /api/v1/tests/{testId}/runs
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/tests/{testId}/runs:
    get:
      summary: List runs for a test
      description: >-
        Retrieve a paginated list of test runs for a specific test. Supports
        filtering by status and time range, with cursor-based pagination.
      parameters:
        - schema:
            type: string
            description: The ID of the test
            example: '456'
          required: true
          description: The ID of the test
          name: testId
          in: path
        - schema:
            type: string
            enum:
              - passed
              - failed
              - running
              - all
            default: all
          required: false
          name: status
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          required: false
          name: limit
          in: query
        - schema:
            type: string
          required: false
          name: cursor
          in: query
        - schema:
            type: string
          required: false
          name: since
          in: query
        - schema:
            type: string
          required: false
          name: until
          in: query
      responses:
        '200':
          description: Paginated list of test runs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestRunListResponse'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Test not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    TestRunListResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/TestRunListItem'
        hasMore:
          type: boolean
        nextCursor:
          type: string
          nullable: true
        test:
          $ref: '#/components/schemas/TestInfo'
      required:
        - object
        - data
        - hasMore
        - nextCursor
        - test
    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
    TestRunListItem:
      type: object
      properties:
        object:
          type: string
          enum:
            - testRun
        id:
          type: number
        testId:
          type: number
        status:
          type: string
          enum:
            - passed
            - failed
            - running
        startTime:
          type: string
          nullable: true
        endTime:
          type: string
          nullable: true
        durationMs:
          type: number
          nullable: true
        triggeredBy:
          type: string
          nullable: true
        createdAt:
          type: string
        summary:
          $ref: '#/components/schemas/TestRunListSummary'
        totalSteps:
          type: number
        failedSteps:
          type: number
      required:
        - object
        - id
        - testId
        - status
        - startTime
        - endTime
        - durationMs
        - triggeredBy
        - createdAt
        - summary
        - totalSteps
        - failedSteps
    TestInfo:
      type: object
      properties:
        id:
          type: number
        name:
          type: string
        url:
          type: string
          description: Decipher dashboard link for the test
          example: https://app.getdecipher.com/tests/456
      required:
        - id
        - name
        - url
    TestRunListSummary:
      type: object
      properties:
        oneLineSummary:
          type: string
          nullable: true
        firstFailedStepNumber:
          type: number
          nullable: true
      required:
        - oneLineSummary
        - firstFailedStepNumber
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your Decipher API key as the bearer token.

````