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

# Test Connection Credentials by Connection ID

> Test the connection credentials for a given Connection.



## OpenAPI

````yaml get /provisioning/organizations/{organization_id}/connections/{connection_id}/test
openapi: 3.1.0
info:
  title: Leen Security API
  version: 0.0.1
servers:
  - description: Production API (US)
    url: https://api.leen.dev/v1
  - description: Production API (EU)
    url: https://api.eu-c1.leen.dev/v1
  - description: Production API (APAC)
    url: https://api.ap-se2.leen.dev/v1
security: []
paths:
  /provisioning/organizations/{organization_id}/connections/{connection_id}/test:
    get:
      tags:
        - provisioning
      summary: Test Connection Credentials by Connection ID
      description: Test the connection credentials for a given Connection.
      operationId: test_connection_by_id
      parameters:
        - in: path
          name: organization_id
          required: true
          schema:
            format: uuid
            title: Organization Id
            type: string
        - in: path
          name: connection_id
          required: true
          schema:
            format: uuid
            title: Connection Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionTestRespModel'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - API-Key: []
components:
  schemas:
    ConnectionTestRespModel:
      properties:
        is_valid:
          description: >-
            Whether the credentials authenticated against the vendor. A test
            that reaches the vendor and is rejected is `false`, not an error.
          title: Is Valid
          type: boolean
        message:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Why the test failed, in the vendor's words where they gave a reason.
            Null when it succeeded.
          title: Message
      required:
        - is_valid
      title: ConnectionTest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    API-Key:
      in: header
      name: X-API-KEY
      type: apiKey

````

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