Login
Username/password login
curl http://127.0.0.1:8080/api/login \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD"
}'{
"access_token": "eyJz93a...k4laUWw",
"refresh_token": "eyJz93a...k4laUWx"
}curl http://127.0.0.1:8080/api/ \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJz93a...k4laUWw' \
-X GETRetrieve valid JWT access and refresh tokens to use for accessing the API. Login either by username/password or Auth0 token
Authorizations
AuthorizationstringRequired
Body
passwordstringRequired
usernamestringRequired
Responses
200
OK
application/json
access_tokenstringOptional
refresh_tokenstringOptional
400
Bad Request
application/json
403
Forbidden
application/json
500
Internal Server Error
application/json
post/api/login
POST /api/login HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"password": "text",
"username": "text"
}{
"access_token": "text",
"refresh_token": "text"
}Auth0 login
Retrieve valid JWT access and refresh tokens to use for accessing the API. Login either by username/password or Auth0 token
Authorizations
AuthorizationstringRequired
Body
passwordstringRequired
usernamestringRequired
Responses
200
OK
application/json
access_tokenstringOptional
refresh_tokenstringOptional
400
Bad Request
application/json
403
Forbidden
application/json
500
Internal Server Error
application/json
post/api/login
POST /api/login HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"password": "text",
"username": "text"
}{
"access_token": "text",
"refresh_token": "text"
}JWT refresh
Retrieve a new access token by providing the refresh token
Authorizations
AuthorizationstringRequired
Responses
200
OK
application/json
access_tokenstringOptional
500
Internal Server Error
application/json
get/api/login/refresh
GET /api/login/refresh HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"access_token": "text"
}Last updated
Was this helpful?
