Getlabs Patient API

Patients are the people appointments are booked for. Create a patient before booking, and keep their contact details and address current so Getlabs can reach them on the day of the appointment.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

POST /v2/patient Patient create #
GET /v2/patient/{id} Patient read #
PATCH /v2/patient/{id} Patient update #
GET /v2/patient/external-id/{id} Patient read by external id #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/getlabs:getlabs-patient-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

getlabs-patient-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Getlabs Patient API
  description: 'By integrating the Getlabs API, you can bridge the gap between virtual and in-person healthcare, connecting physician-led telemedicine with in-person care from medical professionals. This enables healthcare providers to extend care to the home unlocking high-quality healthcare for more patients at a fraction of the cost.


    With a single API call, we enable our partners to provide end-to-end care for their patients and extend their capabilities to treat new conditions & modalities. What if you could treat primary care remotely? Now you can.


    Pick and choose the types of diagnostics you need. Your patients select a convenient time and place. The Getlabs API takes care of everything else.


    **Maintenance Mode**: In the event that the Getlabs API is under maintenance a 503 Service Unavailable will be returned with a matching maintenance mode header (maintenance-mode) set to true. Under normal operation the header defaults false.


    # Authentication


    Most of the API endpoints are secured via Bearer Tokens. You must pass your token with any endpoint request. To do so

    include the following header in your request replacing the token with one that you''ve obtained from the /oauth/token endpoint.


    `Authorization: Bearer c2FkZnNld3J0Z2Zlcndnd2Z3ZXNndGVydGZ3ZXJmZXd0Z2V3Z3dlNGdmM3dmM3c=`

    ## Obtaining a Bearer token


    In order to make API requests you will need to obtain an access token. Token requests must send a signed JWT.

    The JWT must be signed (using HS512 algorithm) with the provided getlabs API token/secret. See OAuth section below for more details.


    _NOTE: the JWT provided with the token request is valid for a period of 24hrs after first use. The JWT will need to be regenerated after that time. It is recommended to regenerate a signed JWT for each token request._


    ## WAF and newlines in JSON


    GCP Cloud Armor (WAF) can reject token requests when JSON string values contain literal newline characters.


    If you get an HTTP 403 response, your request was likely blocked by Cloud Armor (WAF).


    Use a single-line JSON payload (no line breaks in the payload), or use this curl heredoc pattern (`--data @-` with `"}

    EOF

    ```


    # Rate Limiting


    The API has rate limits in place to ensure fair usage and to protect our services from misuse.


    The default rate limit is 600 requests per 5 minute interval. If you exceed this limit, you will receive a `429 Too Many Requests`.


    All API responses include the following headers to help you monitor your rate limit status:


    - `X-RateLimit-Period`: the interval period of the rate limit we have configured.

    - `X-RateLimit-Remaining`: how many requests remaining before hitting the rate limit.

    - `X-RateLimit-Next`: milliseconds to when the rate limit will be lifted.


    Use these headers to monitor your usage and adjust your request rate accordingly.


    To avoid hitting the rate limit, it is recommended to implement exponential backoff and retry logic in your application.


    _NOTE: Endpoints in this api might have higher rate limits than the default documented. Please trust the RateLimit header set and NOT this documentation._'
  version: v2
  contact: {}
servers:
- url: https://api.getlabs.com
  description: Production
- url: https://api.getlabs-sandbox.com
  description: Sandbox
tags:
- name: Patient
  description: Patients are the people appointments are booked for. Create a patient before booking, and keep their contact details and address current so Getlabs can reach them on the day of the appointment.
paths:
  /v2/patient:
    post:
      description: 'Creates a new patient.


        To ensure direct communication on the day of the appointment, Getlabs asks that you provide patient contact information directly regarding their appointment. A partner provider consumer contact may be used if required.


        **NOTE: Previous patient matching functionality has been retired. Each call to the Patient Create endpoint will now result in a new patient record being created.**In order to avoid creating duplicate patient records, it is advised to either:

        1. Store the patient ID returned from the initial patient creation request in your application and use it in subsequent API calls

        2. Pass a unique `externalId` value when creating/updating patients that can later be used to lookup the patient'
      operationId: Patient_Create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatientDto'
      responses:
        '201':
          description: The requested patient
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientDto'
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDto'
        '409':
          description: A patient with the given external id already exists.
      security:
      - bearer: []
      summary: Patient create
      tags:
      - Patient
      x-summary-source: derived
  /v2/patient/{id}:
    get:
      description: Fetches an existing patient
      operationId: Patient_Read
      parameters:
      - name: id
        required: true
        in: path
        description: The patient ID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The patient's details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientDto'
        '404':
          description: The patient does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundDto'
      security:
      - bearer: []
      summary: Patient read
      tags:
      - Patient
      x-summary-source: derived
    patch:
      description: Updates an existing patient's details
      operationId: Patient_Update
      parameters:
      - name: id
        required: true
        in: path
        description: The patient ID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatientUpdateDto'
      responses:
        '200':
          description: The patient's details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientDto'
        '404':
          description: The patient does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundDto'
        '409':
          description: A patient with the given external id already exists.
      security:
      - bearer: []
      summary: Patient update
      tags:
      - Patient
      x-summary-source: derived
  /v2/patient/external-id/{id}:
    get:
      description: Fetches a patient by an external identifier
      operationId: Patient_ReadByExternalId
      parameters:
      - name: id
        required: true
        in: path
        description: Partner's external identifier for the patient
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The patient's details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientDto'
        '404':
          description: A patient with the given external id does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundDto'
      security:
      - bearer: []
      summary: Patient read by external id
      tags:
      - Patient
      x-summary-source: derived
components:
  schemas:
    PatientUpdateDto:
      type: object
      properties:
        externalId:
          type:
          - string
          - 'null'
          description: External identifier for the patient.
        guardian:
          description: The patient's guardian, this is required if the patient is under 18 years old.
          allOf:
          - $ref: '#/components/schemas/GuardianDto'
        insurance:
          description: Images of the patient's insurance.
          allOf:
          - $ref: '#/components/schemas/InsuranceDto'
        firstName:
          type: string
          description: First name (editing only allowed if patient.editable=true).
          example: Jane
        lastName:
          type: string
          description: Last name (editing only allowed if patient.editable=true).
          example: Doe
        birthSex:
          description: Birth sex (editing only allowed if patient.editable=true).
          example: female
          allOf:
          - $ref: '#/components/schemas/UserGender'
        email:
          type:
          - string
          - 'null'
          format: email
          description: Email address (editing only allowed if patient.editable=true).
        phoneNumber:
          type:
          - string
          - 'null'
          minLength: 10
          maxLength: 10
          example: '6025554567'
          description: 10 digit phone number (editing only allowed if patient.editable=true).
        pronouns:
          type:
          - string
          - 'null'
          description: The patient's preferred pronouns (editing only allowed if patient.editable=true).
          example: She/Her
        notes:
          type:
          - string
          - 'null'
          description: Notes for the patient (editing only allowed if patient.editable=true). If a null value is passed, existing notes will be deleted.
        communicationSettings:
          description: Communication settings updates. Only the alternate contact and SMS opt-in can be updated; settings left out keep their current values.
          allOf:
          - $ref: '#/components/schemas/PatientCommunicationSettingsDto'
    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
          example: Jane Doe
        relationship:
          type:
          - string
          - 'null'
          description: Patient's relationship to the guardian, this is required if the patient is under 18 years old
          example: Mother
    AlternateContactDto:
      type: object
      properties:
        phoneNumber:
          type: string
          minLength: 10
          maxLength: 10
          example: '6025554567'
          description: 10 digit phone number of the alternate contact.
        name:
          type: string
          description: Name of the alternate contact.
          example: Jane Doe
        relationship:
          type: string
          description: Relationship of the alternate contact to the patient (e.g. 'caregiver', 'relative', 'facility').
          example: caregiver
        isPrimary:
          type: boolean
          description: Whether this alternate contact should be treated as the patient's primary contact.
          example: true
      required:
      - phoneNumber
      - name
      - relationship
    UserGender:
      type: string
      enum:
      - male
      - female
      - other
      description: Birth sex.
    FileDto:
      type: object
      properties:
        id:
          type: string
          readOnly: true
          format: uuid
        name:
          type: string
          description: File name
          example: lab-order.pdf
        purpose:
          description: The purpose of this file, must be one of the available options
          allOf:
          - $ref: '#/components/schemas/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":

            * lab-order can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf

            * collection-instructions can be one of: image/png, image/jpeg, image/heic, image/heif, image/tiff, application/pdf

            * 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
          example: 13264
        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
    ValidationErrorDto:
      type: object
      properties:
        property:
          type: string
          readOnly: true
          example: email
          description: The property name that the errors are for
        constraints:
          type: object
          readOnly: true
          description: An object containing all of the errors. The key is the error name and the value is the description.
          example:
            isNotEmpty: property should not be empty
          properties: {}
        children:
          readOnly: true
          description: An array of ValidationErrors for the children of this property
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorDto'
      required:
      - property
      - children
    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: '#/components/schemas/FileDto'
        rear:
          description: The file object representing the image of the rear of the insurance
          readOnly: true
          type:
          - object
          - 'null'
          allOf:
          - $ref: '#/components/schemas/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
          example: 9b45fe45-79ed-40aa-9bc3-f358a7c6e6d1
          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
          example: 9b45fe45-79ed-40aa-9bc3-f358a7c6e6d1
          writeOnly: true
    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
          example: '6025554567'
          description: 10 digit phone number.
        firstName:
          type: string
          description: First name.
          example: Jane
        lastName:
          type: string
          description: Last name.
          example: Doe
        dob:
          type: string
          description: Date of birth (YYYY-MM-DD).
          example: '1977-07-08'
          format: date
        birthSex:
          description: Birth sex.
          example: female
          allOf:
          - $ref: '#/components/schemas/UserGender'
        pronouns:
          type:
          - string
          - 'null'
          description: The patient's preferred pronouns.
          example: She/Her
        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: '#/components/schemas/GuardianDto'
        insurance:
          description: Images of the patient's insurance.
          allOf:
          - $ref: '#/components/schemas/InsuranceDto'
        communicationSettings:
          description: The patient's communication settings. New patients are opted in to SMS unless `optInSms` is `false`.
          allOf:
          - $ref: '#/components/schemas/PatientCommunicationSettingsDto'
      required:
      - firstName
      - lastName
      - dob
      - birthSex
    PatientCommunicationSettingsDto:
      type: object
      properties:
        alternateContact:
          description: Alternate contact for the patient.
          type:
          - object
          - 'null'
          allOf:
          - $ref: '#/components/schemas/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.
    BadRequestDto:
      type: object
      properties:
        statusCode:
          type: number
          readOnly: true
          enum:
          - 400
          description: The http status code
        message:
          readOnly: true
          description: An array containing all ValidationErrors for the request
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorDto'
        error:
          type: string
          readOnly: true
          enum:
          - Bad Request
          description: A string describing the type of error
      required:
      - statusCode
      - message
      - error
    NotFoundDto:
      type: object
      properties:
        statusCode:
          type: number
          readOnly: true
          enum:
          - 404
          description: The http status code
        message:
          type: string
          readOnly: true
          enum:
          - Not Found
          description: A string describing the type of error
      required:
      - statusCode
      - message
  securitySchemes:
    jwt-bearer-flow:
      scheme: bearer
      bearerFormat: JWT
      description: Used on /oauth/token endpoint to request an access_token
      type: http
    bearer:
      scheme: bearer
      bearerFormat: JWT
      description: Once an access token is returned provide the access_token to this Authorization header.
      type: http