Getlabs · Schema

AppointmentRequestDto

CompanyHealthcareDiagnosticsAt-Home Services

Properties

Name Type Description
id string The appointment request's ID
status object The current status of the appointment request Pending = The appointment request has been created but has not been actioned upon. Processed = The appointment request has been processed, waiting to noti
patient object The patient the appointment request is for
appointmentData objectnull The appointment data
rawData stringnull The appointment data in raw form, how we received the appointment request before transformation.
cancellationReason object The reason the appointment request was cancelled
cancellationReasonDetails stringnull Specific details on why the appointment request was cancelled
createdAt string Datetime when the appointment request was created
updatedAt string Datetime when the appointment request was updated
appointmentId stringnull The ID of the appointment created for this request.
lastNotifiedAt stringnull Datetime when the user was last notified about this request.
timesNotified numbernull Number of times the user has been notified.
bookingUrl stringnull URL where the patient can book an appointment.
groupId stringnull The appointment request group id, if this appointment request is part of a grouped appointment request.
expiresAt stringnull The date the appointment request (magic link) expires. Optionally configured by Getlabs. By default there is no expiry. After this date, the patient will no longer be able to book the appointment usin
View JSON Schema on GitHub

JSON Schema

getlabs-appointment-request-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getlabs/json-schema/getlabs-appointment-request-dto-schema.json",
  "title": "AppointmentRequestDto",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getlabs-openapi.yml#/components/schemas/AppointmentRequestDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true,
      "format": "uuid",
      "description": "The appointment request's ID"
    },
    "status": {
      "readOnly": true,
      "description": "The current status of the appointment request\n\nPending = The appointment request has been created but has not been actioned upon.\nProcessed = The appointment request has been processed, waiting to notify the patient.\nNotified = The patient has been notified about the appointment request.\nUnresponsive = The patient has been notified and reminded three times about the appointment request, but has not responded.\nScheduled = An appointment has been scheduled for the appointment request\nFulfilled = The scheduled appointment has been completed.\nErrored = There has been an error processing the appointment request.\nCancelled = The scheduled appointment has been canceled.",
      "allOf": [
        {
          "$ref": "#/$defs/AppointmentRequestStatus"
        }
      ]
    },
    "patient": {
      "readOnly": true,
      "description": "The patient the appointment request is for",
      "allOf": [
        {
          "$ref": "#/$defs/PatientDto"
        }
      ]
    },
    "appointmentData": {
      "readOnly": true,
      "description": "The appointment data",
      "type": [
        "object",
        "null"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/AppointmentDataEmbed"
        }
      ]
    },
    "rawData": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The appointment data in raw form, how we received the appointment request before transformation."
    },
    "cancellationReason": {
      "readOnly": true,
      "description": "The reason the appointment request was cancelled",
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/$defs/AppointmentRequestCancellationReason"
        }
      ]
    },
    "cancellationReasonDetails": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Specific details on why the appointment request was cancelled"
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "readOnly": true,
      "description": "Datetime when the appointment request was created"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string",
      "readOnly": true,
      "description": "Datetime when the appointment request was updated"
    },
    "appointmentId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The ID of the appointment created for this request."
    },
    "lastNotifiedAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Datetime when the user was last notified about this request."
    },
    "timesNotified": {
      "type": [
        "number",
        "null"
      ],
      "readOnly": true,
      "description": "Number of times the user has been notified."
    },
    "bookingUrl": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "URL where the patient can book an appointment."
    },
    "groupId": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The appointment request group id, if this appointment request is part of a grouped appointment request."
    },
    "expiresAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The date the appointment request (magic link) expires. Optionally configured by Getlabs. By default there is no expiry. After this date, the patient will no longer be able to book the appointment using the link we provide them. They will be informed to reach out to the partner to reinitiate the process."
    }
  },
  "required": [
    "id",
    "status",
    "patient",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "AddressDto": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string",
          "description": "Street address"
        },
        "unit": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unit number"
        },
        "city": {
          "type": "string",
          "description": "City"
        },
        "state": {
          "type": "string",
          "description": "2 character state code"
        },
        "zipCode": {
          "type": "string",
          "description": "5 digit zip code for the appointment"
        },
        "timezone": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "The timezone for the address"
        }
      },
      "required": [
        "street",
        "city",
        "state",
        "zipCode"
      ]
    },
    "AlternateContactDto": {
      "type": "object",
      "properties": {
        "phoneNumber": {
          "type": "string",
          "minLength": 10,
          "maxLength": 10,
          "description": "10 digit phone number of the alternate contact."
        },
        "name": {
          "type": "string",
          "description": "Name of the alternate contact."
        },
        "relationship": {
          "type": "string",
          "description": "Relationship of the alternate contact to the patient (e.g. 'caregiver', 'relative', 'facility')."
        },
        "isPrimary": {
          "type": "boolean",
          "description": "Whether this alternate contact should be treated as the patient's primary contact."
        }
      },
      "required": [
        "phoneNumber",
        "name",
        "relationship"
      ]
    },
    "AppointmentDataEmbed": {
      "type": "object",
      "properties": {
        "address": {
          "description": "The address of the appointment",
          "allOf": [
            {
              "$ref": "#/$defs/AddressDto"
            }
          ]
        },
        "labOrderDetails": {
          "description": "The lab order details of the appointment",
          "type": "array",
          "items": {
            "$ref": "#/$defs/LabOrderDetailsDto"
          }
        },
        "patientId": {
          "type": "string",
          "format": "uuid",
          "description": "The patient's ID"
        },
        "partnerId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "The partner's ID"
        },
        "insurance": {
          "description": "The insurance information on the appointment",
          "allOf": [
            {
              "$ref": "#/$defs/InsuranceDto"
            }
          ]
        },
        "parkingInstruction": {
          "type": "string",
          "description": "Instructions for parking"
        },
        "specialRequest": {
          "type": "string",
          "description": "Special instruction notes"
        },
        "externalId": {
          "type": "string",
          "description": "External identifier for the appointment, once created."
        }
      },
      "required": [
        "address",
        "patientId"
      ]
    },
    "AppointmentRequestCancellationReason": {
      "type": "string",
      "enum": [
        "malformed-data",
        "not-serviceable",
        "unknown-partner",
        "missed-opportunity",
        "customer-requested",
        "has-outstanding-request",
        null
      ],
      "description": "The reason the appointment request was cancelled"
    },
    "AppointmentRequestStatus": {
      "type": "string",
      "enum": [
        "pending",
        "processed",
        "notified",
        "unresponsive",
        "scheduled",
        "fulfilled",
        "errored",
        "cancelled"
      ],
      "description": "The current status of the appointment request\n\nPending = The appointment request has been created but has not been actioned upon.\nProcessed = The appointment request has been processed, waiting to notify the patient.\nNotified = The patient has been notified about the appointment request.\nUnresponsive = The patient has been notified and reminded three times about the appointment request, but has not responded.\nScheduled = An appointment has been scheduled for the appointment request\nFulfilled = The scheduled appointment has been completed.\nErrored = There has been an error processing the appointment request.\nCancelled = The scheduled appointment has been canceled."
    },
    "ExtendedFileDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true,
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "description": "File name"
        },
        "purpose": {
          "description": "The purpose of this file, must be one of the available options",
          "allOf": [
            {
              "$ref": "#/$defs/ExtendedFilePurpose"
            }
          ]
        },
        "data": {
          "type": "string",
          "description": "Base64 encoded file contents, maximum size of 25 MB. The file MIME types allowed differ depending on the file \"purpose\":\n* lab-order can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf\n* collection-instructions can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf\n* insurance-front, insurance-rear can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf",
          "writeOnly": true
        },
        "size": {
          "type": "number",
          "description": "The file size in bytes",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Type of the file.",
          "readOnly": true
        },
        "url": {
          "type": "string",
          "description": "Signed, expiring url for the file.",
          "readOnly": true
        }
      },
      "required": [
        "name",
        "purpose",
        "data",
        "size",
        "type",
        "url"
      ]
    },
    "ExtendedFilePurpose": {
      "type": "string",
      "enum": [
        "lab-order",
        "collection-instructions",
        "insurance-front",
        "insurance-rear",
        "specimen"
      ],
      "description": "The purpose of this file, must be one of the available options"
    },
    "FileDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true,
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "description": "File name"
        },
        "purpose": {
          "description": "The purpose of this file, must be one of the available options",
          "allOf": [
            {
              "$ref": "#/$defs/FilePurpose"
            }
          ]
        },
        "data": {
          "type": "string",
          "description": "Base64 encoded file contents, maximum size of 25 MB. The file MIME types allowed differ depending on the file \"purpose\":\n* lab-order can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf\n* collection-instructions can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf\n* insurance-front, insurance-rear can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf",
          "writeOnly": true
        },
        "size": {
          "type": "number",
          "description": "The file size in bytes",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Type of the file.",
          "readOnly": true
        }
      },
      "required": [
        "name",
        "purpose",
        "data",
        "size",
        "type"
      ]
    },
    "FilePurpose": {
      "type": "string",
      "enum": [
        "lab-order",
        "collection-instructions",
        "insurance-front",
        "insurance-rear"
      ],
      "description": "The purpose of this file, must be one of the available options"
    },
    "GuardianDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the patient's guardian, this is required if the patient is under 18 years old"
        },
        "relationship": {
          "type": [
            "string",
            "null"
          ],
          "description": "Patient's relationship to the guardian, this is required if the patient is under 18 years old"
        }
      }
    },
    "InsuranceDto": {
      "type": "object",
      "properties": {
        "front": {
          "description": "The file object representing the image of the front of the insurance",
          "readOnly": true,
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/FileDto"
            }
          ]
        },
        "rear": {
          "description": "The file object representing the image of the rear of the insurance",
          "readOnly": true,
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/FileDto"
            }
          ]
        },
        "frontId": {
          "type": [
            "string",
            "null"
          ],
          "description": "A file ID with a purpose of 'insurance-front' uploaded using the file endpoint, or null to remove the existing image",
          "format": "uuid",
          "writeOnly": true
        },
        "rearId": {
          "type": [
            "string",
            "null"
          ],
          "description": "A file ID with a purpose of 'insurance-rear' uploaded using the file endpoint, or null to remove the existing image",
          "format": "uuid",
          "writeOnly": true
        }
      }
    },
    "LabOrderDetailsDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true,
          "format": "uuid",
          "description": "The ID of this entity"
        },
        "contactName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the person/doctor's office who has the lab order details. Required if labOrderFileIds does NOT include a 'lab-order' file AND the appointment is NOT a priority appointment."
        },
        "contactPhone": {
          "type": [
            "string",
            "null"
          ],
          "description": "10 digit phone number of the person/doctor's office who has the lab order details. Required if labOrderFileIds does NOT include a 'lab-order' file AND the appointment is NOT a priority appointment."
        },
        "labOrderFiles": {
          "readOnly": true,
          "description": "An array of all files attached.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExtendedFileDto"
          }
        },
        "testCodes": {
          "description": "An array of test codes to be performed for this lab order.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "labOrderFileIds": {
          "writeOnly": true,
          "description": "An array of file IDs that were previously uploaded (and returned) using the /file endpoint. Files must have a purpose of 'lab-order' or 'collection-instructions'; a 'collection-instructions' file is only ever an attachment, so at least one 'lab-order' file is still required wherever a lab order is. Required if contactName and contactPhone are not set OR if trying to schedule a priority appointment and/or have already uploaded files using the /file endpoint.",
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    },
    "PatientCommunicationSettingsDto": {
      "type": "object",
      "properties": {
        "alternateContact": {
          "description": "Alternate contact for the patient.",
          "type": [
            "object",
            "null"
          ],
          "allOf": [
            {
              "$ref": "#/$defs/AlternateContactDto"
            }
          ]
        },
        "optInSms": {
          "type": "boolean",
          "description": "Whether the patient gets appointment reminders and updates by SMS (never marketing). Defaults to `true` on create; partners must have patient consent."
        }
      }
    },
    "PatientDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The patient's ID."
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ],
          "description": "External identifier for the patient."
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "description": "Email address."
        },
        "phoneNumber": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 10,
          "maxLength": 10,
          "description": "10 digit phone number."
        },
        "firstName": {
          "type": "string",
          "description": "First name."
        },
        "lastName": {
          "type": "string",
          "description": "Last name."
        },
        "dob": {
          "type": "string",
          "description": "Date of birth (YYYY-MM-DD).",
          "format": "date"
        },
        "birthSex": {
          "description": "Birth sex.",
          "allOf": [
            {
              "$ref": "#/$defs/UserGender"
            }
          ]
        },
        "pronouns": {
          "type": [
            "string",
            "null"
          ],
          "description": "The patient's preferred pronouns."
        },
        "editable": {
          "type": "boolean",
          "description": "Indicates if the patient's details are editable."
        },
        "guardian": {
          "description": "The patient's guardian, this is required if the patient is under 18 years old.",
          "allOf": [
            {
              "$ref": "#/$defs/GuardianDto"
            }
          ]
        },
        "insurance": {
          "description": "Images of the patient's insurance.",
          "allOf": [
            {
              "$ref": "#/$defs/InsuranceDto"
            }
          ]
        },
        "communicationSettings": {
          "description": "The patient's communication settings. New patients are opted in to SMS unless `optInSms` is `false`.",
          "allOf": [
            {
              "$ref": "#/$defs/PatientCommunicationSettingsDto"
            }
          ]
        }
      },
      "required": [
        "firstName",
        "lastName",
        "dob",
        "birthSex"
      ]
    },
    "UserGender": {
      "type": "string",
      "enum": [
        "male",
        "female",
        "other"
      ],
      "description": "Birth sex."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/getlabs-appointment-request-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.