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

# Get appointment by ID

> Returns a single appointment by ID. Requires read:appointments scope.



## OpenAPI

````yaml /openapi-v2.json get /appointments/{id}
openapi: 3.0.0
info:
  title: Max AI Public API
  description: API for third-party marketplace apps
  version: '2.0'
  contact: {}
servers:
  - url: https://api.maxcare.ai/v2
security: []
tags: []
paths:
  /appointments/{id}:
    get:
      tags:
        - Appointments
      summary: Get appointment by ID
      description: Returns a single appointment by ID. Requires read:appointments scope.
      operationId: AppointmentsPublicController_getAppointment
      parameters:
        - name: id
          required: true
          in: path
          description: Appointment ID
          schema:
            type: string
        - name: X-Organization-Id
          in: header
          required: true
          schema:
            type: string
          description: Target clinic organization ID
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAppointmentSuccessResponseV2'
        '400':
          description: Missing or invalid request parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiBadRequestResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiUnauthorizedResponse'
        '403':
          description: Insufficient scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiForbiddenResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiNotFoundResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiRateLimitResponse'
      security:
        - api-key: []
components:
  schemas:
    GetAppointmentSuccessResponseV2:
      type: object
      properties:
        code:
          type: string
          description: Response code
          example: success
        data:
          $ref: '#/components/schemas/ExternalAppointmentResponseV2'
      required:
        - code
        - data
    PublicApiBadRequestResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: bad_request
        message:
          type: string
          description: Human-readable error message
          example: '''id'' must be a valid UUID'
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiUnauthorizedResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: unauthorized
        message:
          type: string
          description: Human-readable error message
          example: Invalid or missing API key
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiForbiddenResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: forbidden
        message:
          type: string
          description: Human-readable error message
          example: Insufficient scope
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiNotFoundResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: not_found
        message:
          type: string
          description: Human-readable error message
          example: Resource not found
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiRateLimitResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: rate_limit_exceeded
        message:
          type: string
          description: Human-readable error message
          example: Rate limit exceeded. Maximum 1000 requests per 60 seconds.
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    ExternalAppointmentResponseV2:
      type: object
      properties:
        id:
          type: string
          description: Appointment unique identifier
          example: e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b
        scheduledStartDate:
          type: string
          description: Scheduled start date (ISO 8601)
          example: '2025-01-20T09:00:00.000Z'
        scheduledEndDate:
          type: string
          description: Scheduled end date (ISO 8601)
          nullable: true
          example: '2025-01-20T09:30:00.000Z'
        status:
          type: string
          description: Appointment status
          example: confirmed
        isNewPatient:
          type: boolean
          description: Whether the patient is new
          nullable: true
          example: false
        patientId:
          type: string
          description: Patient ID
          nullable: true
          example: c56103bc-d39c-46d3-9f31-38dd2b5e05f6
        patientFirstName:
          type: string
          description: Patient first name
          nullable: true
          example: Sarah
        patientLastName:
          type: string
          description: Patient last name
          nullable: true
          example: Johnson
        patientMrn:
          type: string
          description: Patient MRN
          nullable: true
          example: MRN-10042
        providerId:
          type: string
          description: Provider ID
          nullable: true
          example: d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a
        providerFirstName:
          type: string
          description: Provider first name
          nullable: true
          example: James
        providerLastName:
          type: string
          description: Provider last name
          nullable: true
          example: Wilson
        facilityId:
          type: string
          description: Facility ID
          nullable: true
          example: b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e
        createdAt:
          type: string
          description: Created timestamp
          example: '2025-01-15T09:30:00.000Z'
      required:
        - id
        - scheduledStartDate
        - scheduledEndDate
        - status
        - isNewPatient
        - patientId
        - patientFirstName
        - patientLastName
        - patientMrn
        - providerId
        - providerFirstName
        - providerLastName
        - facilityId
        - createdAt
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Marketplace API key

````