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

# Test Vault Connection

> Test vault connection by verifying access.

**Required Role:** OPERATOR or higher

Attempts to connect to the external vault and list accessible vaults/secrets.
Updates last_verified_at on success.

Returns:
- success: Whether the connection works
- message: Human-readable status
- vaults_accessible: Number of vaults (1Password)
- secrets_accessible: Number of secrets (Doppler/Infisical)



## OpenAPI

````yaml POST /v1/teams/{team_id}/vault-connections/{connection_id}/test
openapi: 3.1.0
info:
  title: Data Raven API
  description: Cloud-to-cloud data transfer platform powered by RClone
  version: 0.5.0
servers: []
security: []
paths:
  /v1/teams/{team_id}/vault-connections/{connection_id}/test:
    post:
      tags:
        - Vault Connections
      summary: Test Vault Connection
      description: >-
        Test vault connection by verifying access.


        **Required Role:** OPERATOR or higher


        Attempts to connect to the external vault and list accessible
        vaults/secrets.

        Updates last_verified_at on success.


        Returns:

        - success: Whether the connection works

        - message: Human-readable status

        - vaults_accessible: Number of vaults (1Password)

        - secrets_accessible: Number of secrets (Doppler/Infisical)
      operationId: >-
        test_vault_connection_v1_teams__team_id__vault_connections__connection_id__test_post
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Connection Id
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VaultConnectionTestResponse'
        '404':
          description: Connection not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    VaultConnectionTestResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the connection test succeeded
        message:
          type: string
          title: Message
          description: Human-readable status message
        vaults_accessible:
          anyOf:
            - type: integer
            - type: 'null'
          title: Vaults Accessible
          description: Number of accessible vaults (1Password only)
        secrets_accessible:
          anyOf:
            - type: integer
            - type: 'null'
          title: Secrets Accessible
          description: Number of accessible secrets (Doppler/Infisical)
      type: object
      required:
        - success
        - message
      title: VaultConnectionTestResponse
      description: Response from vault connection test.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````