J•Feed Documentation

JSON Web Token - JWT

To Access safety-related Data a special authenticate JWT is required.

Basic Api Authentication

See documentation how to access the J•Frame - Feed Api.

JWT

This Token is valid until an expiration time of 1 hour. Beyond this expiration you have to generate a new one.

Generate JWT

To Request a generated JWT the granted Basic Access is needed.

curl -X POST --location "/api/v1/token/generate" -H "Content-Type: application/x-www-form-urlencoded" -d "login={{USER_EMAIL}}&password={{USER_PASSWORD}}"

Generated JSON Result

The Result is a json object with the Key jwt and a Value containing a JSON Web Token (JWT)

{
  "jwt": "{{JWT}}"
}

Validate JWT

To Request a validation for a generated JWT.

curl -X GET --location "/api/v1/token/validate" -H "Authorization: Bearer {{JWT}}"

Validation JSON Result

The Result is a json object with the Key is-valid and a Value containing a boolean with true or false.

{
  "is-valid": true
}

Has JWT expired

To Request if a generated JWT is expired.

curl -X GET --location "/api/v1/token/has-expired" -H "Authorization: Bearer {{JWT}}"

Validation JSON Result

The Result is a json object with the Key has-expired and a Value containing a boolean with true or false.

{
  "has-expired": false
}