Authentication
How to authenticate with Vitable's API.
Getting an API Key
Section titled “Getting an API Key”To get an API key, please reach out to our team. We’ll provide you with the necessary credentials to access the Vitable API.
Authentication
Section titled “Authentication”To authenticate with Vitable’s API, include an Authorization header with a Bearer token in your requests:
curl -H "Authorization: Bearer YOUR_API_TOKEN" \ https://api.vitablehealth.com/v1/endpointJavascript
Section titled “Javascript”const response = await fetch('https://api.vitablehealth.com/v1/endpoint', { headers: { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json' }});Python
Section titled “Python”import requests
headers = { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json'}
response = requests.get('https://api.vitablehealth.com/v1/endpoint', headers=headers)