Authentication
The EnaLog API is secured by API tokens. Each token belongs to an Organisation. You can retrieve your organisation's API token by
heading to the Organisation page.
Every request to the EnaLog API requires you send your organisation's API token in the Authorization
header
using the Bearer : <api-token>
format. If you do not send your API token in the Auhtorization header the API will automatically
reject your request.
Examples
If you use one of our API packages then you just need to pass in your API token and the package will automatically set the header
for you.
Here is an example using cURL
:
curl -X POST 'https://api.enalog.app/v1/events' \
--header 'Authorization: Bearer <TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "waitlist-user",
"description": "User joined the waitlist",
"icon": "🔥",
"push": true,
"tags": {
"app": "EnaLog",
},
"meta": {
"user_email": "sam@enalog.app"
}
}'