Authentication
You'll need to authenticate your requests to access any of the endpoints in the Doctrine API. In this guide, we'll look at how authentication works.
API Key as Bearer Token
The recommended way to authenticate with the Doctrine API is by using an API KEY. Here's how to add the API Key to the request header using cURL:
Example request with bearer token
curl https://doctrine.app/api \
-H "Authorization: Bearer {API_KEY}"
Always keep your API Key safe and reset it if you suspect it has been compromised.