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

# Get a test

> Return a single compliance test by its ID.



## OpenAPI

````yaml api-reference/openapi.json GET /tests/{testId}
openapi: 3.0.0
info:
  title: DSALTA API
  version: 1.0.0
  description: >-
    DSALTA Public API (v1). Authenticate with a Bearer API token issued from
    your organization settings. Each token carries resource-level scopes (e.g.
    documents:read).
  contact: {}
servers:
  - url: https://apip.dsalta.com/v1
    description: Production
security: []
paths:
  /tests/{testId}:
    get:
      tags:
        - Tests
      summary: Get Test
      operationId: GetTest
      parameters:
        - in: path
          name: testId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicItemResponse_PublicTest_'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Example 1:
                  value:
                    success: false
                    message: Test not found.
      security:
        - apiToken:
            - tests:read
components:
  schemas:
    PublicItemResponse_PublicTest_:
      properties:
        data:
          $ref: '#/components/schemas/PublicTest'
      required:
        - data
      type: object
      additionalProperties: false
    ErrorResponse:
      properties:
        details:
          $ref: '#/components/schemas/Record_string.unknown_'
        message:
          type: string
        success:
          type: boolean
          enum:
            - false
          nullable: false
      required:
        - message
        - success
      type: object
    PublicTest:
      description: >-
        Public (v1) shape for an automated test. A curated subset of the
        internal

        test model.


        Excluded on purpose (sensitive or internal): the remediation `solution`,
        the

        raw integration id, the AI audit result, comments (commenter PII), the

        owner's email and internal id, the execution runners' PII, the

        evidence-status / next-refresh bookkeeping, internal notes, the
        `isActive`

        flag and the organisation id.
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        status:
          type: string
          description: Test status, e.g. "PASS" | "FAIL" | "NOT_RUN" | "IN_PROGRESS".
        frameworks:
          items:
            type: string
          type: array
          description: Names of the frameworks this test maps to.
        owner:
          type: string
          nullable: true
          description: Owner's display name, or null. Never an email or internal id.
        dueDate:
          type: string
          nullable: true
          description: ISO 8601 due date, or null.
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - description
        - status
        - frameworks
        - owner
        - dueDate
        - createdAt
        - updatedAt
      type: object
      additionalProperties: false
    Record_string.unknown_:
      properties: {}
      type: object
      description: Construct a type with a set of properties K of type T
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer
      bearerFormat: DSALTA_API_TOKEN

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.