Appearance
Getting authentication tokens
You will need to get a valid authentication token to communicate with the application. Please note that access tokens only live for up to 23 hours- therefore you will be required to generate a new token after this time.
Endpoint
sh
POST https://art.ayima.com/api/loginParameters
| name | type | description | required |
|---|---|---|---|
| username | String | The username or email for the ART account | ✅ |
| password | String | The password associated to the ART account | ✅ |
Response
json
{
"token_type": "Bearer",
"expires_in": 25199,
"access_token": "...",
"refresh_token": "...",
"user": {}
}You will need to provide the access token for every request you make to the ART application, as well as the 'Accept' header to 'application/json'. This is done by setting the 'authorization' header with the token returned. e.g.
sh
curl -i
-H "Authorization: Bearer {ACCESS TOKEN HERE}"
-H "Accept: application/json"