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

> Fetches a single booking by its Cal.com booking UID from the organization's primary Cal.com account.

### 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="appointment_id" type="string" required>
  The Cal.com booking UID for the appointment you want to fetch.
</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">
  Returned appointment data.

  <Expandable title="data">
    <ResponseField name="appointment" type="object">
      The fetched appointment.
    </ResponseField>

    <ResponseField name="org_id" type="string">
      Echoed organization ID.
    </ResponseField>

    <ResponseField name="agent_id" type="string">
      Echoed agent ID.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": <boolean>,
    "message": "Appointment retrieved",
    "data": {
      "appointment": {
        "id": "<string>",
        "organization_id": "<string>",
        "ghl_appointment_id": "<string>",
        "contact_id": "<string>",
        "agent_id": "<string>",
        "agent_name": "<string>",
        "contact_name": "<string>",
        "contact_email": "<string>",
        "contact_phone": "<string>",
        "appointment_time": "<string>",
        "end_time": "<string>",
        "status": "<string>"
      },
      "org_id": "<string>",
      "agent_id": "<string>"
    }
  }
  ```
</ResponseExample>

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

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

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

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

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


## OpenAPI

````yaml GET /api/v1/calcom/appointments/{appointment_id}
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/appointments/{appointment_id}:
    get:
      tags:
        - CalComService
      summary: Get Appointment
      operationId: GetCalcomAppointment
      parameters:
        - name: appointment_id
          in: path
          required: true
          schema:
            type: string
          description: Cal.com booking UID
        - name: org_id
          in: query
          schema:
            type: string
          description: Fallback organization ID used only when not present in JWT claims
      responses:
        '200':
          description: Appointment retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCalcomAppointmentResponse'
              example:
                success: true
                message: Appointment retrieved
                data:
                  appointment:
                    id: <string>
                    organization_id: <string>
                    ghl_appointment_id: <string>
                    contact_id: <string>
                    agent_id: <string>
                    agent_name: <string>
                    contact_name: <string>
                    contact_email: <string>
                    contact_phone: <string>
                    appointment_time: <string>
                    end_time: <string>
                    status: <string>
                  org_id: <string>
                  agent_id: <string>
        '400':
          description: Missing appointment_id or Cal.com not connected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: INVALID_REQUEST
        '401':
          description: Missing or invalid JWT, or no org context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: UNAUTHORIZED
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: INTERNAL_ERROR
        '502':
          description: Cal.com API failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: <string>
                code: CALCOM_API_ERROR
      security:
        - BearerAuth: []
components:
  schemas:
    GetCalcomAppointmentResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          $ref: '#/components/schemas/GetCalcomAppointmentData'
      example:
        success: true
        message: Appointment retrieved
        data:
          appointment:
            id: <string>
            organization_id: <string>
            ghl_appointment_id: <string>
            contact_id: <string>
            agent_id: <string>
            agent_name: <string>
            contact_name: <string>
            contact_email: <string>
            contact_phone: <string>
            appointment_time: <string>
            end_time: <string>
            status: <string>
          org_id: <string>
          agent_id: <string>
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        code:
          type: string
    GetCalcomAppointmentData:
      type: object
      properties:
        appointment:
          $ref: '#/components/schemas/CalcomAppointmentDetail'
        org_id:
          type: string
        agent_id:
          type: string
      example:
        appointment:
          id: <string>
          organization_id: <string>
          ghl_appointment_id: <string>
          contact_id: <string>
          agent_id: <string>
          agent_name: <string>
          contact_name: <string>
          contact_email: <string>
          contact_phone: <string>
          appointment_time: <string>
          end_time: <string>
          status: <string>
        org_id: <string>
        agent_id: <string>
    CalcomAppointmentDetail:
      type: object
      properties:
        id:
          type: string
        organization_id:
          type: string
        ghl_appointment_id:
          type: string
        contact_id:
          type: string
        agent_id:
          type: string
        agent_name:
          type: string
        contact_name:
          type: string
        contact_email:
          type: string
        contact_phone:
          type: string
        appointment_time:
          type: string
        end_time:
          type: string
        status:
          type: string
      example:
        id: <string>
        organization_id: <string>
        ghl_appointment_id: <string>
        contact_id: <string>
        agent_id: <string>
        agent_name: <string>
        contact_name: <string>
        contact_email: <string>
        contact_phone: <string>
        appointment_time: <string>
        end_time: <string>
        status: <string>
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````