Authentication
You'll need to authenticate your requests to access any of the endpoints provided by the SDAPI API. In this guide, we'll look at how authentication works.
Bearer token
When establishing a connection using the API, you will need your API token — you will find it in the SDAPI dashboard under API settings. Here's how to add the token to the request header using cURL:
Example request with bearer token
curl https://api.observli.com/v1/events \
-H "Authorization: Bearer {token}"
Always keep your token safe and reset it if you suspect it has been compromised.
Using an SDK
If you use one of our official SDKs, you won't have to worry about any of the above — fetch your access token from the SDAPI dashboard under API settings, and the client library will take care of the rest.