> ## 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.

# Get Agent Cal.com Account

> Returns the effective Cal.com account for an agent with priority: agent private key, then org-linked account, then none.

### 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>

***

### Path Parameters

<ParamField path="agent_id" type="string" required>
  The agent UUID whose effective Cal.com account you want to inspect.
</ParamField>

***

### Query Parameters

<ParamField query="org_id" type="string">
  Optional fallback organization ID. It is used only when the JWT claims do not already include the org context.
</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">
  Effective Cal.com account information for the agent.

  <Expandable title="data">
    <ResponseField name="connected" type="boolean">
      Whether the agent currently has an effective Cal.com account.
    </ResponseField>

    <ResponseField name="type" type="string">
      Source of the effective connection. Common values are `agent`, `org_linked`, and `none`.
    </ResponseField>

    <ResponseField name="calcom_account_id" type="string">
      Effective Cal.com account UUID when connected.
    </ResponseField>

    <ResponseField name="account_name" type="string">
      Effective Cal.com account name when connected.
    </ResponseField>

    <ResponseField name="status" type="string">
      Connection status when connected.
    </ResponseField>

    <ResponseField name="api_base_url" type="string">
      Effective Cal.com API base URL when connected.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": <boolean>,
    "message": "Agent Cal.com account retrieved",
    "data": {
      "connected": <boolean>,
      "type": "<string>",
      "calcom_account_id": "<string>",
      "account_name": "<string>",
      "status": "<string>",
      "api_base_url": "<string>"
    }
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": <boolean>,
    "message": "Agent Cal.com account retrieved",
    "data": {
      "connected": false,
      "type": "none"
    }
  }
  ```
</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/agents/{agent_id}/account
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/agents/{agent_id}/account:
    get:
      tags:
        - CalComService
      summary: Get Agent Cal.com Account
      operationId: GetAgentCalcomAccount
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
          description: Agent UUID
        - name: org_id
          in: query
          schema:
            type: string
          description: Fallback organization ID used only when not present in JWT claims
      responses:
        '200':
          description: Agent Cal.com account retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAgentCalcomAccountResponse'
              example:
                success: true
                message: Agent Cal.com account retrieved
                data:
                  connected: true
                  type: <string>
                  calcom_account_id: <string>
                  account_name: <string>
                  status: <string>
                  api_base_url: <string>
        '400':
          description: Missing agent_id
          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: Agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: NOT_FOUND
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: INTERNAL_ERROR
      security:
        - BearerAuth: []
components:
  schemas:
    GetAgentCalcomAccountResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/AgentCalcomEffectiveAccountData'
      example:
        success: true
        message: Agent Cal.com account retrieved
        data:
          connected: true
          type: <string>
          calcom_account_id: <string>
          account_name: <string>
          status: <string>
          api_base_url: <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>
    AgentCalcomEffectiveAccountData:
      type: object
      properties:
        connected:
          type: boolean
        type:
          type: string
        calcom_account_id:
          type: string
        account_name:
          type: string
        status:
          type: string
        api_base_url:
          type: string
      example:
        connected: true
        type: <string>
        calcom_account_id: <string>
        account_name: <string>
        status: <string>
        api_base_url: <string>
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````