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

# Test integration credentials

> Attempt to authenticate with the upstream platform using the stored credentials. Returns success/failure metadata only — never echoes credential values. Updates `last_tested_at` / `last_test_status` only for decisive outcomes (success or credential/auth rejection). Transient network errors do not change health. Successful survey-proxy calls also refresh the same fields.



## OpenAPI

````yaml /openapi/program.openapi.json post /integrations/{integrationId}/test
openapi: 3.1.0
info:
  title: Questra Program API
  version: 0.0.1
  description: >-
    REST API for the Questra Program product. Browser users authenticate through
    Questra Auth SSO; automation uses workspace-scoped API keys (`Authorization:
    Bearer qpk_live_…`). API keys carry scopes enforced before handlers.
    Outbound webhooks follow Standard Webhooks (at-least-once delivery;
    consumers must be idempotent).
servers:
  - url: /v1
    description: Program API base path
security: []
paths:
  /integrations/{integrationId}/test:
    post:
      tags:
        - Integrations
      summary: Test integration credentials
      description: >-
        Attempt to authenticate with the upstream platform using the stored
        credentials. Returns success/failure metadata only — never echoes
        credential values. Updates `last_tested_at` / `last_test_status` only
        for decisive outcomes (success or credential/auth rejection). Transient
        network errors do not change health. Successful survey-proxy calls also
        refresh the same fields.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: community-decipher
          required: true
          name: integrationId
          in: path
      responses:
        '200':
          description: Credential test result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestIntegrationResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    TestIntegrationResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/TestIntegrationResult'
      required:
        - data
    ErrorBody:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        resource:
          type: string
        slug:
          type: string
        file_id:
          type: string
        endpoint_id:
          type: string
        event_id:
          type: string
        delivery_id:
          type: string
        api_key_id:
          type: string
        integration_id:
          type: string
        audit_id:
          type: string
        status:
          type: string
        details: {}
        question_ids:
          type: array
          items:
            type: string
        survey_ids:
          type: array
          items:
            type: string
        revisions:
          type: array
          items:
            type: number
      required:
        - error
    TestIntegrationResult:
      type: object
      properties:
        ok:
          type: boolean
          description: True when the upstream platform accepted the stored credentials.
        status:
          type: string
          enum:
            - ok
            - failed
          description: >-
            Normalized test outcome (mirrors `last_test_status` when not
            untested).
        message:
          type:
            - string
            - 'null'
          example: Credentials accepted by Qualtrics
          description: Human-readable detail. Never includes credential values.
        checked_at:
          type: string
          format: date-time
      required:
        - ok
        - status
        - message
        - checked_at

````