> ## 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 a test

> Retrieve information about a specific test, including owners and who recorded the source session.



## OpenAPI

````yaml GET /api/v1/tests/{testId}
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}:
    get:
      summary: Get a test
      description: >-
        Retrieve information about a specific test, including owners and who
        recorded the source session.
      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:
              - steps
            description: Pass "steps" to include the test step definitions in the response
          required: false
          description: Pass "steps" to include the test step definitions in the response
          name: include
          in: query
      responses:
        '200':
          description: Test details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestResponse'
        '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:
    TestResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - test
        id:
          type: number
        name:
          type: string
        url:
          type: string
          description: Decipher dashboard link for the test
          example: https://app.getdecipher.com/tests/456
        status:
          type: string
          enum:
            - live
            - paused
        tags:
          type: array
          items:
            type: string
        createdBy:
          type: string
          nullable: true
          description: Email of who recorded the source session
        owners:
          type: array
          items:
            type: string
          description: Owner email addresses
          example:
            - alice@example.com
        createdAt:
          type: string
        updatedAt:
          type: string
        steps:
          type: array
          items:
            $ref: '#/components/schemas/TestStep'
          description: Test steps. Only present when ?include=steps is set.
      required:
        - object
        - id
        - name
        - url
        - status
        - tags
        - createdBy
        - owners
        - createdAt
        - updatedAt
    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
    TestStep:
      type: object
      properties:
        stepNumber:
          type: number
          example: 1
        type:
          type: string
          example: goto
          description: 'Step type: goto, wait, default, assert, auth, refresh, upload'
        description:
          type: string
          example: Navigate to login page
        data:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: >-
            Step data — URL for goto, text for assert, file URLs for upload,
            etc.
      required:
        - stepNumber
        - type
        - description
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your Decipher API key as the bearer token.

````