List Lab Reports
curl --request GET \
--url https://app-api.spikeapi.com/v3/lab_reports \
--header 'Authorization: Bearer <token>'import requests
url = "https://app-api.spikeapi.com/v3/lab_reports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app-api.spikeapi.com/v3/lab_reports', 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://app-api.spikeapi.com/v3/lab_reports",
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://app-api.spikeapi.com/v3/lab_reports"
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://app-api.spikeapi.com/v3/lab_reports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.spikeapi.com/v3/lab_reports")
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[
{
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_date": "<string>",
"lab_information": {
"address": "<string>",
"email_address": "<string>",
"name": "<string>",
"notes": "<string>",
"phone_number": "<string>"
},
"modified_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"original_record_id": "<string>",
"parsing_error": "<string>",
"patient_information": {
"address": "<string>",
"age": 1,
"date_of_birth": "<string>",
"email_address": "<string>",
"gender": "<string>",
"name": "<string>",
"notes": "<string>",
"patient_id": "<string>",
"phone_number": "<string>"
},
"result_date": "<string>",
"sections": [
{
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"original_section_name": "<string>",
"results": [
{
"original_test_name": "<string>",
"original_unit_name": "<string>",
"standard_test_name": "<string>",
"standard_unit_name": "<string>",
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"normal_max": 123,
"normal_min": 123,
"notes": "<string>",
"require_human_review": true,
"tested_positive": true,
"value": 123,
"value_text": "<string>",
"within_normal_range": true
}
],
"section_notes": "<string>",
"standard_section_name": "<string>"
}
],
"uploaded_at": "2023-11-07T05:31:56Z"
}
]{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}List Lab Reports
Retrieve a list of lab reports by the time range.
List Lab Reports
curl --request GET \
--url https://app-api.spikeapi.com/v3/lab_reports \
--header 'Authorization: Bearer <token>'import requests
url = "https://app-api.spikeapi.com/v3/lab_reports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app-api.spikeapi.com/v3/lab_reports', 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://app-api.spikeapi.com/v3/lab_reports",
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://app-api.spikeapi.com/v3/lab_reports"
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://app-api.spikeapi.com/v3/lab_reports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app-api.spikeapi.com/v3/lab_reports")
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[
{
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_date": "<string>",
"lab_information": {
"address": "<string>",
"email_address": "<string>",
"name": "<string>",
"notes": "<string>",
"phone_number": "<string>"
},
"modified_at": "2023-11-07T05:31:56Z",
"notes": "<string>",
"original_record_id": "<string>",
"parsing_error": "<string>",
"patient_information": {
"address": "<string>",
"age": 1,
"date_of_birth": "<string>",
"email_address": "<string>",
"gender": "<string>",
"name": "<string>",
"notes": "<string>",
"patient_id": "<string>",
"phone_number": "<string>"
},
"result_date": "<string>",
"sections": [
{
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"original_section_name": "<string>",
"results": [
{
"original_test_name": "<string>",
"original_unit_name": "<string>",
"standard_test_name": "<string>",
"standard_unit_name": "<string>",
"loinc_code": "<string>",
"loinc_common_name": "<string>",
"normal_max": 123,
"normal_min": 123,
"notes": "<string>",
"require_human_review": true,
"tested_positive": true,
"value": 123,
"value_text": "<string>",
"within_normal_range": true
}
],
"section_notes": "<string>",
"standard_section_name": "<string>"
}
],
"uploaded_at": "2023-11-07T05:31:56Z"
}
]{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Start time of the query range in UTC, inclusive
Examples:
"2006-01-02T15:04:05"
"2006-01-02T15:04:05Z"
End time of the query range in UTC, non-inclusive
Examples:
"2006-01-02T15:04:05"
"2006-01-02T15:04:05Z"
Response
object[] | null
OK
Unique identifier for a record.
Example:
"12345678-1234-abcd-4321-abcdef123456"
Lab Report Status
Available options:
pending, processing, completed, failed Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
