Authenticate a user

POST /api/auth

authenticates a user and returns a JWT token for use in futher API requests

application/json

Body Required

Get JWT Token

Responses

POST /api/auth
curl \
 -X POST http://api.example.com/api/auth \
 -H "Content-Type: application/json" \
 -d '{"client_token":"has7ner\u0026\u0026asenrc%1324faadfdxHDFFaawe","client_secret":"3ZlciIsIkdyb3VwIFBlcm1pc3Npb25zIiwiQ29tcGFuaWVzIiwiT3RoZXIgUm9sZXMiLCJzdGFmZiIsIlBlcm1pc3Npb25zIiwiRG9jdW1lbnRzIiwidmlldyIsIkFncmVlbWVudHMiLCJwcmljZ"}'
Request example
{
  "client_token": "has7ner&&asenrc%1324faadfdxHDFFaawe",
  "client_secret": "3ZlciIsIkdyb3VwIFBlcm1pc3Npb25zIiwiQ29tcGFuaWVzIiwiT3RoZXIgUm9sZXMiLCJzdGFmZiIsIlBlcm1pc3Npb25zIiwiRG9jdW1lbnRzIiwidmlldyIsIkFncmVlbWVudHMiLCJwcmljZ"
}
Response examples (default)
{
  "error": false,
  "data": "Bearer <<256bit Key>>",
  "message": "Bearer token created and it expires in 180 minutes"
}