To access a protected route or resource, a JSON Web Token (JWT) should be included in the Authorization header using the Bearer schema.

curl -v -H "Content-Type: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

Retrieve a JWT

Use the following steps to retrieve a JWT:

  1. Create a JSON payload that contains your username and password.


    If you do not know your username and password, contact your Ceeblue Representative.

      "username": "user",
      "password": "e1c21ed98788f81e7191"
  1. Make a call to POST /login with the JSON payload.
curl -X POST \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
     -d '{"username":"user","password":"e1c21ed98788f81e7191"}'

The API returns the token to be used in API requests for protected routes or resources

    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"