API Basic Guidelines

AUTHENTICATION

Access token authentication consists of a 3-step process:

1. Define a token in the Token Management window.  Copy the token created:
API_token_Management.png

2. Paste this token into your call to the Authentication API.

Example Request

curl https://app.anodot.com/api/v2/access-token -H 'content-type: application/json' -d '{"refreshToken": "1d084b2c4b6b4f 721b69cdc9fd14a7e6"}'

Example Response

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoiMDgwN
jVlYjA3ZTI4ZTRiZGVlZjkx/>ZGJlNGJlOGUzZWIwNjZhMjdkMDA
yMzNjMTcyYjQwNWMwMDI4ZWRlMTliNzQ5ODc3MGIxZDIiLCJpY
XQiOjE1MjA1NTM5NTQsImV4cCI6MTUyMDY0MDM1NH0.VV84T
lSjqG8elwUm5k7_abJT7aQwlSUsoBMgoVNhmM"

3. Use this token from the response in your calls to the Alerts API.

Example Request to Alerts API

curl -X GET "https://app.anodot.com/api/v2/alerts/"
-H 'Authorization: Bearer yJhbGciOiJIUzI1NiIsInR5cCI6IkpXVlZ
jkxZGJlNGJlOGUzZWIwNjZhMjdkMDAyMzNjMTcyYjQwNWMwM
DI4ZWRlMTliNzQ5ODc3MGIxZDIiLCJpYXQiOjE1MjA1NTM3NzQ
sImV4cCI6MTUyMDY0MDE3NH0.UpJME0JbeBvU6ByLkuac8KhIo
XX1oIZhjRkHbGrHnFE' -H 'content-type: application/json

 

Note The token is valid for 24 hours. Make sure that you handle token refresh to enable smooth and ongoing use of the API in order to create alerts via API.

LIMITATIONS

APIs are limited by:

  • Rate limits for API calls
  • Overall number of entities - per terms of use/ specific contract.
Was this article helpful?
0 out of 0 found this helpful
-->