Authentication
You'll need to authenticate your requests to access any of the endpoints in the HazelBase API. In this guide, we'll look at how authentication works. HazelBase offers now just one way to authenticate your API requests: API keys.
API key authentication
The recommended way to authenticate with the HazelBase API is by using API keys. API keys belong to organizations. You can create and manage your organization API keys on your organization dashboard. Here's how to add the token to the request header using cURL:
Example request with api key
curl https://api.hazelbase.com/graphql \
-H "Authorization: ApiKey {token}"
Please don't commit your API key to GitHub! Always keep your API key safe and delete it if you suspect it has been compromised.