What you need
- If you haven’t done so yet, you can get API keys by signing up for a Vital account in the Dashboard. Detailed instructions are available here.
- One of our client libraries. The lab testing API is available for the python and node SDKs. If none of those fit your use-case, you can always directly call the API. Email support@tryvital.io for specific library support.
{{BASE_URL}}
with your team’s environment URL.
(1) Creating a user
In the context of our API, a user refers to the patient who will be undergoing the lab test. All you need to provide is a string identifying the user on your side (client_user_id
). The response to this call returns the userId on our side, which you’ll be able to use for future requests.
You can find more details in our API quickstart guide.
(2) Listing Available Tests
To retrieve the set of lab tests you have access to, use the/v3/lab_tests
API endpoint. In Sandbox, you will already have access to a default set of tests. Once you’re ready to head to production, we can setup a call and get you ready for launch!
Response
id
when creating an order.
(3) Placing an order
Ordering a test for your user is as simple as making an API call:Response