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

# Cal.com Connection Status

> Returns the connection status of all org-level Cal.com accounts.

### Authorizations

<ParamField header="Authorization" type="string" required>
  Your JWT access token. Pass it as a Bearer token in the `Authorization` header. Example: `Authorization: Bearer <token>`.
</ParamField>

***

### Query Parameters

<ParamField query="org_id" type="string" required>
  The organization ID whose Cal.com connection status you want to check.
</ParamField>

***

### Response

<ResponseField name="success" type="boolean">
  Whether the request succeeded.
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable status message.
</ResponseField>

<ResponseField name="data" type="object">
  Returned connection status.

  <Expandable title="data">
    <ResponseField name="connected" type="boolean">
      Whether any Cal.com account is currently connected.
    </ResponseField>

    <ResponseField name="status" type="string">
      Connection status. Common values are `active` and `not_connected`.
    </ResponseField>

    <ResponseField name="accounts" type="array">
      Array of org-level Cal.com accounts.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": <boolean>,
    "message": "<string>",
    "data": {
      "connected": <boolean>,
      "status": "<string>",
      "accounts": [
        {
          "id": "<string>",
          "account_name": "<string>",
          "status": "<string>",
          "error": "<string>"
        }
      ]
    }
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": <boolean>,
    "message": "Cal.com is not connected",
    "data": {
      "connected": false,
      "status": "not_connected",
      "accounts": []
    }
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 400 theme={null}
  {
    "success": false,
    "message": "<string>",
    "code": "INVALID_REQUEST"
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 401 theme={null}
  {
    "success": false,
    "message": "<string>"
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 404 theme={null}
  {
    "success": false,
    "message": "<string>",
    "code": "NOT_FOUND"
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 500 theme={null}
  {
    "success": false,
    "message": "<string>",
    "code": "INTERNAL_ERROR"
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /api/v1/calcom/status
openapi: 3.0.1
info:
  title: Agni API
  version: 1.0.0
  description: >-
    Agni API for managing agents, tools, widget settings, telephony, and
    integrations.
servers:
  - url: https://api.ravan.ai
security:
  - X-Api-Key: []
tags:
  - name: AgentService
  - name: AgentToolService
  - name: WidgetSettingsService
  - name: PhoneService
  - name: AppointmentService
  - name: GHLService
  - name: CalComService
  - name: CampaignService
  - name: ContactService
  - name: CallingService
  - name: RAGService
  - name: ModelService
  - name: HealthService
paths:
  /api/v1/calcom/status:
    get:
      tags:
        - CalComService
      summary: Cal.com Connection Status
      operationId: CalcomStatus
      parameters:
        - name: org_id
          in: query
          required: true
          schema:
            type: string
          description: Organization ID
      responses:
        '200':
          description: Connection status retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalcomStatusResponse'
              example:
                success: true
                message: Connection status retrieved
                data:
                  connected: true
                  status: active
                  accounts:
                    - id: <string>
                      account_name: <string>
                      status: <string>
                      error: <string>
        '400':
          description: Missing org_id query param
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: INVALID_REQUEST
        '401':
          description: Missing or invalid JWT
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
              example:
                success: false
                message: <string>
        '404':
          description: No matching Cal.com account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: NOT_FOUND
        '500':
          description: Unexpected or database error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: INTERNAL_ERROR
      security:
        - BearerAuth: []
components:
  schemas:
    CalcomStatusResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/CalcomStatusData'
      example:
        success: true
        message: Connection status retrieved
        data:
          connected: true
          status: active
          accounts:
            - id: <string>
              account_name: <string>
              status: <string>
              error: <string>
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        code:
          type: string
    UnauthorizedResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
      example:
        success: false
        message: <string>
    CalcomStatusData:
      type: object
      properties:
        connected:
          type: boolean
        status:
          type: string
        accounts:
          type: array
          items:
            $ref: '#/components/schemas/CalcomAccountStatus'
      example:
        connected: true
        status: active
        accounts:
          - id: <string>
            account_name: <string>
            status: <string>
            error: <string>
    CalcomAccountStatus:
      type: object
      properties:
        id:
          type: string
        account_name:
          type: string
        status:
          type: string
        error:
          type: string
      example:
        id: <string>
        account_name: <string>
        status: <string>
        error: <string>
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````