GET all the labs.
curl --request GET \
--url '{{BASE_URL}}/v3/lab_tests/labs' \
--header 'accept: application/json' \
--header 'x-vital-api-key: {YOUR_KEY}'
[
{
"id": 1,
"slug": "labcorp",
"name": "LabCorp",
"first_line_address": "123 Main St",
"city": "San Francisco",
"zipcode": "91789",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["saliva", "serum"]
}
]
curl --request GET \
--url '{{BASE_URL}}/v3/lab_tests/labs' \
--header 'accept: application/json' \
--header 'x-vital-api-key: {YOUR_KEY}'
[
{
"id": 1,
"slug": "labcorp",
"name": "LabCorp",
"first_line_address": "123 Main St",
"city": "San Francisco",
"zipcode": "91789",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["saliva", "serum"]
}
]
Vital Team API Key
Successful Response
The response is of type ClientFacingLab · object[]
.
curl --request GET \
--url '{{BASE_URL}}/v3/lab_tests/labs' \
--header 'accept: application/json' \
--header 'x-vital-api-key: {YOUR_KEY}'
[
{
"id": 1,
"slug": "labcorp",
"name": "LabCorp",
"first_line_address": "123 Main St",
"city": "San Francisco",
"zipcode": "91789",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["saliva", "serum"]
}
]
GET all the labs.
curl --request GET \
--url '{{BASE_URL}}/v3/lab_tests/labs' \
--header 'accept: application/json' \
--header 'x-vital-api-key: {YOUR_KEY}'
[
{
"id": 1,
"slug": "labcorp",
"name": "LabCorp",
"first_line_address": "123 Main St",
"city": "San Francisco",
"zipcode": "91789",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["saliva", "serum"]
}
]
curl --request GET \
--url '{{BASE_URL}}/v3/lab_tests/labs' \
--header 'accept: application/json' \
--header 'x-vital-api-key: {YOUR_KEY}'
[
{
"id": 1,
"slug": "labcorp",
"name": "LabCorp",
"first_line_address": "123 Main St",
"city": "San Francisco",
"zipcode": "91789",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["saliva", "serum"]
}
]
Vital Team API Key
Successful Response
The response is of type ClientFacingLab · object[]
.
curl --request GET \
--url '{{BASE_URL}}/v3/lab_tests/labs' \
--header 'accept: application/json' \
--header 'x-vital-api-key: {YOUR_KEY}'
[
{
"id": 1,
"slug": "labcorp",
"name": "LabCorp",
"first_line_address": "123 Main St",
"city": "San Francisco",
"zipcode": "91789",
"collection_methods": ["at_home_phlebotomy", "walk_in_test"],
"sample_types": ["saliva", "serum"]
}
]