Providers

View providers

GET
/providers

This endpoint returns the providers of the institution. Every filter is optional.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

start_cursor?string

First item of the current page. Starts empty

end_cursor?string

Last item of the current page. Starts empty

per_page?integer

Number of results to return per page. Maximum allowed amount is 1000.

Formatint32
Default5
sort?string

Optional comma-separated string of fields to sort on. Include a leading dash for descending order.

Available fields:

  • updated_at
  • -updated_at
location_id?integer

Only return providers associated with the specified Location ID

Formatint32
foreign_id?string

Unique provider ID from the EHR

requestable?boolean

Only return providers who are bookable via NexHealth online booking at the specified location_id

inactive?boolean

Filter result set based on inactive status, defaults to false if not specified

Defaultfalse
updated_since?string

Query providers whose records have updated since the specified datetime in ISO8601 format. Must be a parseable Date, recommended formats are YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+0000

Formatdate-time
ids[]?array<>

NexHealth IDs

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/providers?subdomain=string&location_id=1&foreign_id=100437&requestable=true&inactive=false&updated_since=2024-04-12T10%3A30%3A00Z&ids%5B%5D=83" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 415,      "email": "Amy.Ramos@nexhealth.com",      "first_name": "John",      "middle_name": "Anthony",      "last_name": "Smith",      "name": "John Smith",      "created_at": "2020-06-05T20:16:57.007Z",      "updated_at": "2020-06-05T20:16:57.007Z",      "institution_id": 105,      "foreign_id": "100437",      "foreign_id_type": "--DataSource-",      "bio": {        "city": "New York",        "state": "NY",        "gender": "Female",        "zip_code": "20814",        "new_patient": false,        "non_patient": true,        "phone_number": "5163042196",        "date_of_birth": "1964-05-03",        "address_line_1": "",        "address_line_2": "",        "street_address": "",        "cell_phone_number": "",        "home_phone_number": "",        "work_phone_number": ""      },      "inactive": false,      "last_sync_time": "2024-04-12T10:30:00Z",      "display_name": "John Smith",      "npi": "1912507500",      "tin": "078051120",      "state_license": "R219935",      "specialty_code": "363L00000X",      "locations": [        {          "id": 7,          "name": "Default",          "institution_id": 1,          "street_address": "123 Law St",          "street_address_2": "85335, North East",          "city": "New York",          "state": "NY",          "zip_code": "54700",          "country_code": "US",          "created_at": "2020-06-05T20:16:57.007Z",          "updated_at": "2020-06-05T20:16:57.007Z",          "latitude": 37.7775028,          "longitude": -122.3970603,          "phone_number": "8888750851",          "foreign_id": "1",          "foreign_id_type": "--DataSource-",          "email": "defaultLocation@nexhealth.com",          "tz": "America/Los_Angeles",          "last_sync_time": "2020-06-17T19:23:49.176Z",          "insert_appt_client": true,          "map_by_operatory": true,          "set_availability_by_operatory": false,          "inactive": false,          "specialty": {            "id": 0,            "name": "string"          }        }      ],      "provider_requestables": [        {          "location_id": 4        }      ],      "availabilities": [        {          "id": 12,          "provider_id": 7,          "location_id": 3,          "operatory_id": 149,          "begin_time": "10:30",          "end_time": "17:00",          "days": [            "Monday",            "Tuesday",            "Wednesday",            "Thursday",            "Friday"          ],          "specific_date": "2022-11-03",          "custom_recurrence": {            "num": 3,            "unit": "day",            "ref": "2022-11-03"          },          "tz_offset": "-0700",          "active": true,          "source": "synced",          "label": {            "id": 113,            "location_id": 115,            "name": "New patient appointments"          },          "appointment_types": [            {              "id": 1,              "name": "Medical",              "parent_type": "Institution",              "parent_id": 1,              "minutes": 15,              "bookable_online": false            }          ]        }      ]    }  ],  "page_info": {    "has_previous_page": false,    "has_next_page": false,    "start_cursor": "AAAAA",    "end_cursor": "BBBBBB"  }}