Authentication
Rollee Company API is protected with JWT authentication. The initial token is provided by Rollee with a certain validity time period.
You can create a new valid token, when the previous one is closed to expire, using the API.
Examples using curl:
- Get list of companies
curl -X GET -H "Authorization: Bearer <YOUR_TOKEN>" https://api.getrollee.com/api/company/v0.1/companies
- Refresh token
curl -X GET -H "Authorization: Bearer <YOUR_TOKEN>" https://api.getrollee.com/api/company/v0.1/token/refresh
json response:
{
"token": "YOUR_NEW_TOKEN"
}
In case of wrong usage of the token, API's call will return a 401 Unauthorized
response.
`
Updated 3 months ago