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

# Check Connection Status

> Check the connection status of a resource

## Overview

Check the connection status of a specific resource. This endpoint tests the connectivity to the resource and returns the current status.


## OpenAPI

````yaml POST /resources/check-connection/{id}
openapi: 3.1.0
info:
  title: Ledgerbeam API
  description: >-
    Conversational analytics API for querying data using natural language,
    managing resources, and interacting with data sources
  version: 1.0.0
  contact:
    name: Ledgerbeam Support
    email: support@ledgerbeam.com
  license:
    name: MIT
servers:
  - url: https://api.ledgerbeam.com/v1
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /resources/check-connection/{id}:
    post:
      summary: Check connection status
      description: Check the connection status of a resource
      operationId: checkConnectionStatus
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Resource ID
      responses:
        '200':
          description: Connection status checked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionStatus'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ConnectionStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - connected
            - disconnected
            - error
          description: Connection status
          example: connected
        message:
          type: string
          description: Status message
          example: Connection successful
        checked_at:
          type: string
          format: date-time
          description: Check timestamp
          example: '2024-01-15T10:30:00Z'
    Error:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                description:
                  type: array
                  items:
                    type: string
          description: Error message or validation errors
          example: Unauthorized access
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: API-KEY
      description: API key for authentication

````