Authentication
The Athelas API uses Bearer Tokens to authenticate all requests. Below are the steps to authenticate your account:
Step 1: Login
First, make a call to POST api.athelas.com/v1/auth/login
or POST staging-api.athelas.com/v1/auth/login
with the following information:
- Your email address
- Your password
Please navigate to the API reference for details regarding this step. You will receive a JSON response that contains a token.
Please note that tokens provided via the staging API are different from tokens provided via the production API.
Step 2: Use the Token to Authenticate
You're all set! For all future requests, add the following header to authenticate:
- Authorization: Bearer
Head over to the API Reference to make use of all of our functionalities via REST requests!
Step 3: Renew Your Token
Your token will expire every 60 minutes. You will have to repeat steps 1 & 2 to continue sending authenticated requests when this happens.
Updated about 3 years ago