Authentication
You'll need to authenticate your requests to access any of the endpoints in the 24Robot API. In this guide, we'll look at how authentication works. 24Robot offers one way to authenticate your API requests: API tokens without the complication of OAuth.
With bearer token
The recommended way to authenticate with the 24Robot API is by using API tokens. When establishing a connection using API tokens, you will need your API token — you will find it in the API Tokens. Here's how to add the token to the request header using cURL:
Example request with bearer token
curl https://api.24robot.com/v1/signals \
-H "Authorization: Bearer {token}"
Always keep your token safe and delete it if you suspect it has been compromised.