Authentication
How to authenticate requests to the absentify API.
You can find your API key in the absentify Dashboard. Keep this key private to ensure the security of your account.
Do not share your API key in public areas, such as GitHub repositories, client-side code, or anywhere it might be exposed to unauthorized users.
The absentify API requires an API key for every request. This key, unique to your account, must be included as the x-api-key
in the request headers. If your API key is ever compromised, you can regenerate it in the absentify Dashboard to secure your account data.
Example request
Below are examples of how to make an API request with the x-api-key
included, demonstrated in multiple programming languages.
Explanation
- Set up the API URL: Define the API endpoint you want to access.
- Add headers: Include your
x-api-key
and setContent-Type
to “application/json”. - Send the request: Execute the request and process the JSON response.
Replace "https://api.absentify.com/api/v1/example_endpoint"
with the specific API endpoint you need, and "your_api_key_here"
with your actual API key.
Was this page helpful?