Skip to content
Get started
Getting started

Authentication

How to authenticate with Vitable's API.

To get an API key, please reach out to our team. We’ll provide you with the necessary credentials to access the Vitable API.

To authenticate with Vitable’s API, include an Authorization header with a Bearer token in your requests:

Terminal window
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://api.vitablehealth.com/v1/endpoint
const response = await fetch('https://api.vitablehealth.com/v1/endpoint', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
});
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
}
response = requests.get('https://api.vitablehealth.com/v1/endpoint', headers=headers)