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>"
  • Refresh token
curl -X GET -H "Authorization: Bearer <YOUR_TOKEN>"

json response:

    "token": "YOUR_NEW_TOKEN"

In case of wrong usage of the token, API's call will return a 401 Unauthorized response.