---
title: "Retrieve an appointment"
url: "https://real-estate-agency.apim.eu/apis/viewing-appointments/versions/70b37971-1301-4569-bd6c-e68e8b19e7e2/operations/getAppointment"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/viewing-appointments/versions/70b37971-1301-4569-bd6c-e68e8b19e7e2.md

# Retrieve an appointment

`GET` `/appointments/{appointmentId}`

Operation ID: `getAppointment`

## Path parameters

- `appointmentId` (string, required)

## Responses

- `200` - Appointment
- `404` - Record not found

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Viewing Appointments
  version: 1.0.0
servers:
  - url: https://api.realestateagency.example/v1
    description: Production
  - url: https://sandbox.api.realestateagency.example/v1
    description: Sandbox
paths:
  /appointments/{appointmentId}:
    parameters:
      - name: appointmentId
        in: path
        required: true
        schema:
          type: string
          example: appt_9a44
    get:
      tags:
        - Appointments
      summary: Retrieve an appointment
      operationId: getAppointment
      responses:
        "200":
          description: Appointment
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Appointment"
        "404":
          $ref: "#/components/responses/NotFound"
security:
  - apiKey: []
components:
  schemas:
    Appointment:
      allOf:
        - $ref: "#/components/schemas/AppointmentInput"
        - type: object
          properties:
            id:
              type: string
              example: appt_9a44
            status:
              $ref: "#/components/schemas/AppointmentStatus"
            confirmations_count:
              type: integer
              example: 8
            waitlist_count:
              type: integer
              example: 2
            created_at:
              type: string
              format: date-time
              example: 2026-08-20T11:02:10Z
    AppointmentInput:
      type: object
      required:
        - property_id
        - type
        - start
      properties:
        property_id:
          type: string
          example: prop_8f2c1a
        type:
          $ref: "#/components/schemas/AppointmentType"
        start:
          type: string
          format: date-time
          example: 2026-09-03T16:00:00+02:00
        duration_minutes:
          type: integer
          minimum: 10
          maximum: 240
          default: 30
        slots:
          type: integer
          minimum: 1
          description: "Only evaluated when `type: group`."
          example: 12
        meeting_point:
          type: string
          maxLength: 200
          example: In front of the main entrance, 148 Elm Street
        note:
          type: string
          maxLength: 500
          example: Please bring photo ID; the unit is currently occupied.
    AppointmentStatus:
      type: string
      enum:
        - scheduled
        - confirmed
        - completed
        - cancelled
      example: confirmed
    Error:
      type: object
      description: Uniform error format across all Real Estate Agency APIs.
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: validation_failed
        message:
          type: string
          example: The appointment start time is missing.
        details:
          type: array
          items:
            $ref: "#/components/schemas/ErrorDetail"
    AppointmentType:
      type: string
      enum:
        - individual
        - group
        - virtual
      example: individual
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
          example: start
        reason:
          type: string
          example: missing
  responses:
    NotFound:
      description: Record not found
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/Error"
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: |
        Every call carries an API key in the `apikey` header. You generate the
        key in the Real Estate portal under "My Apps"; it's shown exactly once.

        Each key has the scopes it's allowed to use attached to it. If one is
        missing, the API responds with `403` and `code: "scope_missing"`; the
        missing scope is in `details[].field`.
```
