API Reference - Kits
Get kit by ID
API Reference - Kits
Get kit by ID
Returns an individual kit with the given kit id.
GET
/
api
/
v2
/
kits
/
{public_id}
/
Authorization
string
*
Authorization
Required
string
Token-based authentication with required prefix "Token"
public_id
string
*
public_id
Required
string
ID of the kit to retrieve.
curl --request GET \
--url https://app.spotdx.com/api/v2/kits/{public_id}/ \
--header 'Authorization: <api-key>'
{
"kit_id": "SPOT123456",
"type": "example_lipid_kit",
"status": "preparing",
"events": [
{
"status": "awaiting_collection",
"created": "2023-01-01T04:30:11.222Z"
},
{
"status": "in_transit",
"created": "2023-01-05T04:30:11.222Z"
},
{
"status": "delivered",
"created": "2023-01-06T04:30:11.222Z"
},
{
"status": "received",
"created": "2023-01-07T04:30:11.222Z"
},
{
"status": "resulted",
"created": "2023-01-08T04:30:11.222Z"
}
],
"shipment_to_customer": {
"tracking_number": "9400123456789999876500",
"carrier": "usps",
"created": "2023-01-01T04:30:11.222Z"
},
"registered_to": {
"patient_id": "7563e8e2-7fbd-480c-9b8b-2070eda884bf",
"first_name": "Alice",
"last_name": "Smith",
"date_of_birth": "1990-01-01",
"sex": "F",
"email": "alice123@gmail.com",
"phone": "1234567890"
},
"sample": {
"sample_id": "SPOT654321",
"status": "awaiting_collection",
"events": [
{
"status": "awaiting_collection",
"created": "2023-01-01T04:30:11.222Z"
}
],
"type": "adx100",
"shipments": [
{
"tracking_number": "9400123456789999876500",
"carrier": "usps",
"created": "2023-01-01T04:30:11.222Z"
}
],
"panels": ["lipids_panel_complete"],
"reports": [
"report_id": "string",
"results": [
{
"result_type": "quantity",
"name": "HDL Cholesterol",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": 123,
"unit_of_measure": "mg/dL",
"range_minimum": 20,
"range_maximum": 200,
"comments": null
},
{
"result_type": "quantity",
"name": "Vitamin B12",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": "<10",
"unit_of_measure": "pg/mL",
"range_minimum": 20,
"range_maximum": 200,
"comments": null
},
{
"result_type": "reactivity",
"name": "Chlamydia",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": "negative",
"unit_of_measure": null,
"range_minimum": null,
"range_maximum": null,
"comments": null
},
{
"result_type": "DNA",
"name": "rs1234567",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": "TT",
"unit_of_measure": null,
"range_minimum": null,
"range_maximum": null,
"comments": null
}
],
"pdf": "https://app.spotkits.com/results/f0e5a607-5b52-4d7c-a3f2-c40772d41482.pdf",
"txt": "https://app.spotkits.com/results/f0e5a607-5b52-4d7c-a3f2-c40772d41482.txt",
"date_collected": "2023-01-16T11:00:09.869Z",
"date_received": "2023-01-16T11:00:09.869Z",
"is_amendment": false
]
}
}
Authorizations
Authorization
string
headerrequiredToken-based authentication with required prefix "Token"
Path Parameters
public_id
string
requiredID of the kit to retrieve.
Response
200 - application/json
kit_id
string
The unique identifier of the kit.
type
string
The kit's type
status
enum<string>
The new status of the kit.
Available options:
preparing
, in_transit
, delivered
, delivery_exception
, registered
, canceled
events
object[]
A list of all the events that have occurred for this kit.
events.status
enum<string>
The new status of the kit.
Available options:
preparing
, in_transit
, delivered
, delivery_exception
, registered
, canceled
events.created
string
The date and time the event occurred.
shipment_to_customer
object
shipment_to_customer.tracking_number
string | null
shipment_to_customer.carrier
enum<string> | null
Available options:
fedex
, ups
, usps
shipment_to_customer.created
string
registered_to
object
registered_to.patient_id
string
registered_to.first_name
string
registered_to.last_name
string
registered_to.date_of_birth
string
registered_to.sex
enum<string>
Available options:
M
, F
registered_to.email
string
registered_to.phone
string
sample
object
sample.sample_id
string
sample.status
enum<string>
The new status of the sample.
Available options:
awaiting_collection
, collection_exception
, delivery_exception
, delivered
, in_transit
, received
, resulted
, partially_resulted
, extra_quality_checks
, canceled
sample.events
object[]
sample.events.status
enum<string>
The new status of the sample.
Available options:
awaiting_collection
, collection_exception
, delivery_exception
, delivered
, in_transit
, received
, resulted
, partially_resulted
, extra_quality_checks
, canceled
sample.events.created
string
sample.type
enum<string>
Available options:
adx100
, adx100_2
, adx100_4
, whatman903_10
, dry_transport_swab
, hemaspot_hf
, saliva_3
sample.shipments
object[]
sample.shipments.tracking_number
string | null
sample.shipments.carrier
enum<string> | null
Available options:
fedex
, ups
, usps
sample.shipments.created
string
sample.panels
string[]
The panel codes of the test being performed on the sample. We'll create these with you during onboarding.
sample.reports
array
sample.reports.report_id
string
sample.reports.results
object[]
sample.reports.results.result_type
enum<string>
Available options:
quantity
sample.reports.results.name
string
The biomarker that was analyzed.
sample.reports.results.time_collected
string
sample.reports.results.result
sample.reports.results.unit_of_measure
string | null
sample.reports.results.range_minimum
string
sample.reports.results.range_maximum
number
sample.reports.results.comments
string | null
sample.reports.pdf
string | null
A URL to the PDF report.
sample.reports.txt
string | null
A URL to the TXT report.
sample.reports.date_collected
string
sample.reports.date_received
string
sample.reports.date_resulted
string
sample.reports.is_amendment
boolean
Whether this report is an amendment to a previous report.
curl --request GET \
--url https://app.spotdx.com/api/v2/kits/{public_id}/ \
--header 'Authorization: <api-key>'
{
"kit_id": "SPOT123456",
"type": "example_lipid_kit",
"status": "preparing",
"events": [
{
"status": "awaiting_collection",
"created": "2023-01-01T04:30:11.222Z"
},
{
"status": "in_transit",
"created": "2023-01-05T04:30:11.222Z"
},
{
"status": "delivered",
"created": "2023-01-06T04:30:11.222Z"
},
{
"status": "received",
"created": "2023-01-07T04:30:11.222Z"
},
{
"status": "resulted",
"created": "2023-01-08T04:30:11.222Z"
}
],
"shipment_to_customer": {
"tracking_number": "9400123456789999876500",
"carrier": "usps",
"created": "2023-01-01T04:30:11.222Z"
},
"registered_to": {
"patient_id": "7563e8e2-7fbd-480c-9b8b-2070eda884bf",
"first_name": "Alice",
"last_name": "Smith",
"date_of_birth": "1990-01-01",
"sex": "F",
"email": "alice123@gmail.com",
"phone": "1234567890"
},
"sample": {
"sample_id": "SPOT654321",
"status": "awaiting_collection",
"events": [
{
"status": "awaiting_collection",
"created": "2023-01-01T04:30:11.222Z"
}
],
"type": "adx100",
"shipments": [
{
"tracking_number": "9400123456789999876500",
"carrier": "usps",
"created": "2023-01-01T04:30:11.222Z"
}
],
"panels": ["lipids_panel_complete"],
"reports": [
"report_id": "string",
"results": [
{
"result_type": "quantity",
"name": "HDL Cholesterol",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": 123,
"unit_of_measure": "mg/dL",
"range_minimum": 20,
"range_maximum": 200,
"comments": null
},
{
"result_type": "quantity",
"name": "Vitamin B12",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": "<10",
"unit_of_measure": "pg/mL",
"range_minimum": 20,
"range_maximum": 200,
"comments": null
},
{
"result_type": "reactivity",
"name": "Chlamydia",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": "negative",
"unit_of_measure": null,
"range_minimum": null,
"range_maximum": null,
"comments": null
},
{
"result_type": "DNA",
"name": "rs1234567",
"time_collected": "2023-01-14T04:30:11.222Z",
"result": "TT",
"unit_of_measure": null,
"range_minimum": null,
"range_maximum": null,
"comments": null
}
],
"pdf": "https://app.spotkits.com/results/f0e5a607-5b52-4d7c-a3f2-c40772d41482.pdf",
"txt": "https://app.spotkits.com/results/f0e5a607-5b52-4d7c-a3f2-c40772d41482.txt",
"date_collected": "2023-01-16T11:00:09.869Z",
"date_received": "2023-01-16T11:00:09.869Z",
"is_amendment": false
]
}
}