Getlabs Availability API

Find the appointment timeslots open at a location. Each available slot comes with a booking key, which is required to book an [Appointment](#tag/Appointment) or [Appointment Group](#tag/Appointment-Group) at that time and place.

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 1

GET /v2/availability Availability list #

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-availability-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-availability-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Getlabs Availability 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: Availability
  description: Find the appointment timeslots open at a location. Each available slot comes with a booking key, which is required to book an Appointment or Appointment Group at that time and place.
paths:
  /v2/availability:
    get:
      description: Returns a list of appointment slots grouped by day. Available slots will have a booking key, this key is required when using the appointment endpoint to book an appointment.
      operationId: Availability_List
      parameters:
      - name: from
        required: true
        in: query
        description: The first date to query appointment availability in the YYYY-MM-DD format
        schema:
          format: date
          example: '2021-01-01'
          type: string
      - name: days
        required: true
        in: query
        description: The number of days to return appointment availability for
        schema:
          minimum: 1
          maximum: 14
          example: 5
          type: number
      - name: appointmentId
        required: false
        in: query
        description: The ID of an existing appointment to check availability for. Required when determining rebook eligibility
        schema:
          format: uuid
          type: string
      - name: street
        required: true
        in: query
        description: The street address for the appointment
        schema:
          example: 200 W. Washington Street
          type: string
      - name: unit
        required: false
        in: query
        description: The unit number for the appointment
        schema:
          example: Suite 205
          type: string
      - name: city
        required: true
        in: query
        description: The city for the appointment
        schema:
          example: Phoenix
          type: string
      - name: state
        required: true
        in: query
        description: The 2 character state code for the appointment
        schema:
          example: AZ
          type: string
      - name: zipCode
        required: true
        in: query
        description: The 5 digit zip code for the appointment
        schema:
          example: '85003'
          type: string
      responses:
        '200':
          description: The available appointment timeslots grouped by day
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilityResponseDto'
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDto'
      security:
      - bearer: []
      summary: Availability list
      tags:
      - Availability
      x-summary-source: derived
components:
  schemas:
    TimeslotDto:
      type: object
      properties:
        key:
          type:
          - string
          - 'null'
          readOnly: true
          description: The key used when booking an appointment. A key is valid for 60 minutes after generation, to book an appointment after that a new key is needed.
          example: yGDknWzB74gP8zpET+HrI3jQVyq4ss/ENX38C1eJSR3D7zCHGloM0URG8V2y1nltsTgvED2q/ZcyJZzfZcWc021/Hg1TWICUkDXl627QDdytvUGsEcy9dqpxtqNLmkCtBRcQHnbgaSIR9E7gZ/5fj6NfTwnRH1coitxlOUCsrm9x76l80saizu9M3L5UqafNB7MtbkcCtfB4h9nubzUXahEbXPq0wFvbt/2VQl7311Vgro9XC3k/CbeBMtiQXhSMqslRop44NJO7Rp6qHEjsrZOJVfcKd3ASuYFEspBi+J+ddRilOS4p06Ai8nhrIx3pbLXoRm4aSqNaLCx5lbldLeh08ozRBt3oBGZDzwxdsYzu8iBgxMMGbH/AUpuR+7Lh9YE=
        start:
          format: date-time
          type: string
          readOnly: true
          description: The appointment start time (UTC)
          example: '2021-07-01T12:00:00.000Z'
        end:
          format: date-time
          type: string
          readOnly: true
          description: The appointment end time (UTC)
          example: '2021-07-01T13:00:00.000Z'
        expiresAt:
          format: date-time
          type:
          - string
          - 'null'
          readOnly: true
          description: The time the booking key expires. Afterwards it cannot be used to book an appointment.
          example: '2021-06-22T12:00:00.000Z'
        price:
          type: number
          readOnly: true
          description: The price for the appointment in cents
          example: '2900'
        priority:
          type: boolean
          readOnly: true
          description: If an appointment is a priority slot then a lab order must be uploaded in order to book
          example: true
        available:
          type: number
          readOnly: true
          description: The number of appointments available for the timeslot
          example: 3
      required:
      - key
      - start
      - end
      - expiresAt
      - price
      - priority
      - available
    AvailabilityResponseDto:
      type: object
      properties:
        serviceable:
          type: boolean
          readOnly: true
          description: If the address is serviceable by Getlabs this will be true otherwise false
        data:
          readOnly: true
          description: An array containing all the dates requested
          type: array
          items:
            $ref: '#/components/schemas/DaySlotsDto'
        tz:
          type: string
          readOnly: true
          description: The timezone where the appointment will take place
          example: America/Phoenix
      required:
      - serviceable
      - data
    DaySlotsDto:
      type: object
      properties:
        date:
          format: date
          type: string
          readOnly: true
          description: The date the appointment slots are for
          example: '2021-07-01'
        slots:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/TimeslotDto'
      required:
      - date
      - slots
    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
    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
  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