DoseSpot Clinics API

The Clinics API from DoseSpot — 7 operation(s) for clinics.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/clinics/{clinicId} Get a clinic's details · Gets clinic information #
Ask an LLM
“What is the address and phone of a clinic?”
“Can I look up a clinic by its ID?”
Tell an agent
Get clinic {clinicId}.
Show the details of clinic {clinicId}.
PUT /api/clinics/{clinicId} Update a clinic's contact information · Edit Clinic information #
Ask an LLM
“How do I change a clinic's address or phone number?”
“Can I deactivate a clinic?”
Tell an agent
Update clinic {clinicId} with name {ClinicName}, address {Address1}, city {City}, state {State}, zip {ZipCode} and phone {PrimaryPhone} ({PrimaryPhoneType}).
Set clinic {clinicId} active to {Active}.
GET /api/patients/{patientId}/clinics List clinics a patient is associated with · Get patient's clinics #
Ask an LLM
“Which clinics is a patient currently linked to?”
“Can I see all clinics a patient has been seen at?”
Tell an agent
List clinics for patient {patientId}.
Show every clinic patient {patientId} is associated with.
GET /api/clinicians/{clinicianId}/clinicIds List clinic IDs a clinician belongs to · Gets a clinician's clinic identifiers #
Ask an LLM
“Which clinics is a clinician assigned to?”
“Can I filter a clinician's clinic list by status?”
Tell an agent
List clinic IDs for clinician {clinicianId}.
Show clinician {clinicianId}'s clinics with status {clinicStatus}.
POST /api/clinics Add a new clinic · Add clinic #
Ask an LLM
“How do I add a new clinic to the system?”
“What details are required to create a clinic?”
Tell an agent
Add a clinic named {ClinicName} at {Address1}, {City}, {State} {ZipCode}, phone {PrimaryPhone} ({PrimaryPhoneType}).
Create a new clinic {ClinicName} with long name {ClinicNameLongForm}.
POST /api/patients/{patientId}/transfer Move a patient to another clinic · Transfer patient clinic #
Ask an LLM
“How do I transfer a patient from one clinic to another?”
“Can I remove a patient from a clinic and add them to a new one?”
Tell an agent
Move patient {patientId} from clinic {ClinicIdToRemove} to clinic {ClinicIdToAdd}.
Transfer patient {patientId} to clinic {ClinicIdToAdd}, removing them from {ClinicIdToRemove}.
POST /api/clinicians/{clinicianId}/clinics Add a clinician to several clinics · Add clinician clinics #
Ask an LLM
“How do I assign a clinician to multiple clinics at once?”
“Can I add a clinician to several clinics in one request?”
Tell an agent
Add clinician {clinicianId} to clinics {ClinicIds}.
Assign clinician {clinicianId} to clinics {ClinicIds} in one call.
DELETE /api/clinics/{clinicId}/clinicians Remove several clinicians from a clinic · Removes clinician(s) from a specified clinic #
Ask an LLM
“How do I take a group of clinicians off a clinic?”
“Can I remove several clinicians from a clinic in one request?”
Tell an agent destructive · confirm first
Remove clinicians {ClinicianIds} from clinic {clinicId}.
Take clinicians {ClinicianIds} off clinic {clinicId}.

Specifications

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/dosespot:dosespot-clinics-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

dosespot-clinics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: Full_EPCSV2
  title: 'DoseSpot REST API - Plan: Full + EPCS - V2 Clinics API'
servers:
- url: https://virtserver.swaggerhub.com/DoseSpot/dosespot-staging-rest-api-v2/Full_EPCSV2
tags:
- name: Clinics
paths:
  /api/clinics/{clinicId}:
    get:
      tags:
      - Clinics
      summary: Gets clinic information
      description: "Given a clinicId gets the respective clinicâ\x80\x99s information"
      operationId: Clinics_GetClinicDetailsV2
      parameters:
      - name: clinicId
        in: path
        description: Clinic ID
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClinicDetailResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ClinicDetailResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ClinicDetailResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ClinicDetailResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/ClinicDetailResponse'
    put:
      tags:
      - Clinics
      summary: Edit Clinic information
      description: "Updates an existing clinicâ\x80\x99s contact information"
      operationId: Clinics_ClinicEditV2
      parameters:
      - name: clinicId
        in: path
        description: Clinic ID
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
            text/json:
              schema:
                $ref: '#/components/schemas/Response'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Response'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response'
            text/xml:
              schema:
                $ref: '#/components/schemas/Response'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
        description: Updated clinic data
        required: true
  /api/patients/{patientId}/clinics:
    get:
      tags:
      - Clinics
      summary: Get patient's clinics
      description: Retrieves information on all clinics that have been associated with a patient
      operationId: Clinics_GetPatientClinicsV2
      parameters:
      - name: patientId
        in: path
        description: Patient ID
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponse_Clinic'
            text/json:
              schema:
                $ref: '#/components/schemas/ListResponse_Clinic'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ListResponse_Clinic'
            application/xml:
              schema:
                $ref: '#/components/schemas/ListResponse_Clinic'
            text/xml:
              schema:
                $ref: '#/components/schemas/ListResponse_Clinic'
  /api/clinicians/{clinicianId}/clinicIds:
    get:
      tags:
      - Clinics
      summary: Gets a clinician's clinic identifiers
      description: 'Retrieves a list of clinic identifiers for a clinician

        regardless of eRx functions for those clinics'
      operationId: Clinics_GetClinicianClinicsV2
      parameters:
      - name: clinicianId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: includeClinicGroups
        in: query
        required: false
        schema:
          type: boolean
      - name: clinicStatus
        in: query
        required: false
        schema:
          type: string
          enum:
          - Active
          - Inactive
          - All
          maximum: 2
          minimum: 0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponse_ClinicIdentifier'
            text/json:
              schema:
                $ref: '#/components/schemas/ListResponse_ClinicIdentifier'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ListResponse_ClinicIdentifier'
            application/xml:
              schema:
                $ref: '#/components/schemas/ListResponse_ClinicIdentifier'
            text/xml:
              schema:
                $ref: '#/components/schemas/ListResponse_ClinicIdentifier'
  /api/clinics:
    post:
      tags:
      - Clinics
      summary: Add clinic
      description: Adds a new clinic
      operationId: Clinics_ClinicAddV2
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClinicKeyResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ClinicKeyResponse'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ClinicKeyResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ClinicKeyResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/ClinicKeyResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AddEditClinicRequest'
        description: New clinic data
        required: true
  /api/patients/{patientId}/transfer:
    post:
      tags:
      - Clinics
      summary: Transfer patient clinic
      description: Change the clinic this patient is associated with
      operationId: Clinics_PatientClinicTransferV2
      parameters:
      - name: patientId
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
            text/json:
              schema:
                $ref: '#/components/schemas/Response'
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Response'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response'
            text/xml:
              schema:
                $ref: '#/components/schemas/Response'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangePatientClinicRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ChangePatientClinicRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/ChangePatientClinicRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/ChangePatientClinicRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/ChangePatientClinicRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ChangePatientClinicRequest'
        required: true
  /api/clinicians/{clinicianId}/clinics:
    post:
      tags:
      - Clinics
      summary: Add clinician clinics
      description: Adds a clinician to one or more existing clinics
      operationId: Clinics_ClinicianAddMultipleClinicsV2
      parameters:
      - name: clinicianId
        in: path
        description: Clinician ID
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            application/problem+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClinicianAddMultipleClinicsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ClinicianAddMultipleClinicsRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/ClinicianAddMultipleClinicsRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/ClinicianAddMultipleClinicsRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/ClinicianAddMultipleClinicsRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ClinicianAddMultipleClinicsRequest'
        description: Clinic list
        required: true
  /api/clinics/{clinicId}/clinicians:
    delete:
      tags:
      - Clinics
      summary: Removes clinician(s) from a specified clinic
      description: Removes an array of clinicians from a specified clinic
      operationId: Clinics_ClinicRemoveMultipleCliniciansV2
      parameters:
      - name: clinicId
        in: path
        description: Clinic ID
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            application/problem+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Response'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClinicRemoveMultipleCliniciansRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ClinicRemoveMultipleCliniciansRequest'
          application/problem+json:
            schema:
              $ref: '#/components/schemas/ClinicRemoveMultipleCliniciansRequest'
          application/xml:
            schema:
              $ref: '#/components/schemas/ClinicRemoveMultipleCliniciansRequest'
          text/xml:
            schema:
              $ref: '#/components/schemas/ClinicRemoveMultipleCliniciansRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ClinicRemoveMultipleCliniciansRequest'
        description: List of Clinician IDs
        required: true
components:
  schemas:
    Result:
      type: object
      required:
      - ResultCode
      properties:
        ResultCode:
          type: string
          description: The result code of the operation.
        ResultDescription:
          type: string
          description: A description of the result, if there were errors.
      description: Represents the result of a service operation.
    ListResponse_ClinicIdentifier:
      type: object
      properties:
        Items:
          type: array
          description: The list of elements to return.
          items:
            $ref: '#/components/schemas/ClinicIdentifier'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: Represents a generic response containing a list of objects.
    ChangePatientClinicRequest:
      type: object
      required:
      - ClinicIdToAdd
      - ClinicIdToRemove
      properties:
        ClinicIdToRemove:
          type: integer
          format: int32
        ClinicIdToAdd:
          type: integer
          format: int32
    AddEditClinicRequest:
      type: object
      required:
      - Address1
      - City
      - ClinicName
      - PrimaryPhone
      - PrimaryPhoneType
      - State
      - ZipCode
      properties:
        ClinicName:
          type: string
        ClinicNameLongForm:
          type: string
          minLength: 0
          maxLength: 250
        Address1:
          type: string
        Address2:
          type: string
          minLength: 0
          maxLength: 35
        Active:
          type: boolean
        City:
          type: string
        State:
          type: string
        ZipCode:
          type: string
        PrimaryPhone:
          type: string
          minLength: 0
          maxLength: 25
        PrimaryPhoneType:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
        PrimaryFax:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditional1:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditionalType1:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
        PhoneAdditional2:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditionalType2:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
        PhoneAdditional3:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditionalType3:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
      description: 'Represents a request to add or edit a clinic.

        This class overrides the identifier property so that it will not be serialized for requests.'
    ClinicKeyResponse:
      type: object
      properties:
        ClinicId:
          type: integer
          format: int32
        ClinicKey:
          type: string
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
    Response:
      type: object
      properties:
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: The result of the operation.
    ClinicRemoveMultipleCliniciansRequest:
      type: object
      required:
      - ClinicianIds
      properties:
        ClinicianIds:
          type: array
          items:
            type: integer
            format: int32
    ClinicDetailResponse:
      type: object
      properties:
        Clinic:
          $ref: '#/components/schemas/Clinic'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
    ClinicIdentifier:
      type: object
      properties:
        ClinicId:
          type: integer
          format: int32
    ListResponse_Clinic:
      type: object
      properties:
        Items:
          type: array
          description: The list of elements to return.
          items:
            $ref: '#/components/schemas/Clinic'
        Result:
          description: The result of the operation.
          $ref: '#/components/schemas/Result'
      description: Represents a generic response containing a list of objects.
    ClinicianAddMultipleClinicsRequest:
      type: object
      required:
      - ClinicIds
      properties:
        ClinicIds:
          type: array
          items:
            type: integer
            format: int32
    Clinic:
      type: object
      required:
      - Address1
      - City
      - ClinicName
      - PrimaryPhone
      - PrimaryPhoneType
      - State
      - ZipCode
      properties:
        ClinicId:
          type: integer
          format: int32
        ClinicName:
          type: string
        ClinicNameLongForm:
          type: string
          minLength: 0
          maxLength: 250
        Address1:
          type: string
        Address2:
          type: string
          minLength: 0
          maxLength: 35
        Active:
          type: boolean
        City:
          type: string
        State:
          type: string
        ZipCode:
          type: string
        PrimaryPhone:
          type: string
          minLength: 0
          maxLength: 25
        PrimaryPhoneType:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
        PrimaryFax:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditional1:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditionalType1:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
        PhoneAdditional2:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditionalType2:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary
        PhoneAdditional3:
          type: string
          minLength: 0
          maxLength: 25
        PhoneAdditionalType3:
          type: string
          enum:
          - Undefined
          - Beeper
          - Cell
          - Fax
          - Home
          - Work
          - Night
          - Primary