Authentication (POST)#
To authorize any API-request, a JSON Web Token needs to be provided in the header.
POST api/create-token
Note
Each token can be used for about 45 minutes.
Payload#
A token can be generated via POST
-request at the endpoint api/create-token
where the credentials need to be passed like so:
Response#
The response will look like this:
{
"token": "eyJ0eXAiOiJKV1QiL...",
"id": 17,
"name": "1CH",
"email": "henning.wilhelm@1concepts.de"
}
Usage#
The value of token
then needs to be inserted into the header-field Authorization
alongside the prefixed string Bearer
.
An authorization-payload would like this: