List patients
curl --request GET \
--url https://api.vibrant-america.com/v1/patients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vibrant-america.com/v1/patients"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vibrant-america.com/v1/patients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vibrant-america.com/v1/patients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vibrant-america.com/v1/patients"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vibrant-america.com/v1/patients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vibrant-america.com/v1/patients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"patients": [
{
"patientId": 750123,
"patientFirstName": "Jane",
"patientMiddleName": null,
"patientLastName": "Doe",
"patientGender": "Female",
"patientDateOfBirth": "1990-05-21",
"patientEmail": "jane.doe@example.com",
"patientPhoneNumber": "4085550100",
"guardianEmail": null,
"patientHeight": "65",
"patientWeight": "150",
"address": {
"street": "1 Main St",
"apt": "",
"city": "San Jose",
"state": "CA",
"zipCode": "95112",
"country": "US"
}
}
],
"count": 342,
"page": 1,
"perPage": 20
}{
"error": {
"code": "invalid_request",
"message": "One or more testCodes were not recognized.",
"requestId": "req_01JQ8ZC5X9K2MN",
"details": [
{
"unknownCodes": [
"FOO_BAR"
]
}
]
}
}{
"error": {
"code": "unauthorized",
"message": "Not authenticated.",
"requestId": "req_01JQ8ZC5X9K2MN"
}
}{
"error": {
"code": "internal_error",
"message": "Unexpected error.",
"requestId": "req_01JQ8ZC5X9K2MN"
}
}Patient
List patients
Returns the patients on your account, whether or not they have ever ordered. Scope comes entirely from your token. Pass patientId to fetch specific patients instead — one id or a comma-separated list.
Patients have the same shape here as everywhere else in the API, so a record you read can be sent straight back to PUT /patients with the parts you changed. A field with no value is null — never an empty string or a missing key — and address itself is null when the patient has none.
GET
/
patients
List patients
curl --request GET \
--url https://api.vibrant-america.com/v1/patients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vibrant-america.com/v1/patients"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vibrant-america.com/v1/patients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vibrant-america.com/v1/patients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vibrant-america.com/v1/patients"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vibrant-america.com/v1/patients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vibrant-america.com/v1/patients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"patients": [
{
"patientId": 750123,
"patientFirstName": "Jane",
"patientMiddleName": null,
"patientLastName": "Doe",
"patientGender": "Female",
"patientDateOfBirth": "1990-05-21",
"patientEmail": "jane.doe@example.com",
"patientPhoneNumber": "4085550100",
"guardianEmail": null,
"patientHeight": "65",
"patientWeight": "150",
"address": {
"street": "1 Main St",
"apt": "",
"city": "San Jose",
"state": "CA",
"zipCode": "95112",
"country": "US"
}
}
],
"count": 342,
"page": 1,
"perPage": 20
}{
"error": {
"code": "invalid_request",
"message": "One or more testCodes were not recognized.",
"requestId": "req_01JQ8ZC5X9K2MN",
"details": [
{
"unknownCodes": [
"FOO_BAR"
]
}
]
}
}{
"error": {
"code": "unauthorized",
"message": "Not authenticated.",
"requestId": "req_01JQ8ZC5X9K2MN"
}
}{
"error": {
"code": "internal_error",
"message": "Unexpected error.",
"requestId": "req_01JQ8ZC5X9K2MN"
}
}Returns the patients on your account — everyone, whether or not they have ever ordered. Scope comes
entirely from your token, so you only ever see your own. Page with
Don’t issue one request per patient — a comma-separated list resolves a batch in one call.
The response keeps the same envelope, plus a
An unknown id is not an error — the request still returns
page and perPage, and order
with sortBy / sortOrder (see Pagination).
Fetching specific patients
PasspatientId to fetch patients you already know, one or up to 100 at a time:
GET /patients?patientId=750123
GET /patients?patientId=750123,750124,750125
notFound array listing the ids that matched nothing:
{
"patients": [ { "patientId": 750123, "…": "…" } ],
"count": 1,
"notFound": [750125]
}
200. The order of patients isn’t
guaranteed to match the order you asked for, so match on patientId.
The shape is the same everywhere
A patient here has exactly the fields that Create and Update take, so you can read a record, change one value, and send it straight back. A field with no value comes back asnull — never an empty string or a missing
key — and address itself is null when the patient has none.Authorizations
Query Parameters
Response
One page of patients, with the total count.