How to use your jwt

Some endpoints need to use a JWT for authenticate the user performing the request.

Getting a JWT.

You can get a JWT signing up using Basic Auth.

What token to use?

The end point will return two tokens and the public Key for the account of the user among other information.

The JWT used for the API is the shortToken.

Using the token in a request

You need to send the token in a request Header and append the string Bearer before it as shown below:

curl --request GET \
  --url https://api.betterez.com/inventory/stations \
  --header 'x-api-key: {{x-api-key}}' \
  --header 'authorization: Bearer {{jwt-short-token}}'