curl --request POST \
--url https://{host}/api/v2/authorize \
--header 'Content-Type: application/json' \
--data '
{
"userName": "apiUser",
"pwd": "apiPassword"
}
'{
"apiToken": "eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIzNzI2Yzk0NC0wMmE4LTRlYzQtOGE2Ny04ODBmMDM2OTRhZDciLCJpYXQiOjE1NDI2NTI0MDUsInN1YiI6InZhbiIsImlzcyI6IkRlbnNpZnkuY29tIiwiZXhwIjoxNTQyNjUyNzA1fQ.cJd8qFJfRoPnMEU7GzcdYGBT8WwlgmviQ1OQp8P_w9VUcjQA3FJaB9QkqJJ6d7zbrY5yjc4w0rOWjY-PPdbmqw",
"expires": 1542652705869,
"status": 200
}{
"status": 400,
"message": "<string>"
}{
"message": "Unauthorized",
"status": 401
}{
"status": 400,
"message": "<string>"
}{
"status": 400,
"message": "<string>"
}{
"status": 400,
"message": "<string>"
}Authorize
Obtain a JWT API token
Returns a JWT token for any active Kubex user when valid credentials are provided. Only tokens for API-enabled users can be used to make authorized API calls.
POST
/
authorize
curl --request POST \
--url https://{host}/api/v2/authorize \
--header 'Content-Type: application/json' \
--data '
{
"userName": "apiUser",
"pwd": "apiPassword"
}
'{
"apiToken": "eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIzNzI2Yzk0NC0wMmE4LTRlYzQtOGE2Ny04ODBmMDM2OTRhZDciLCJpYXQiOjE1NDI2NTI0MDUsInN1YiI6InZhbiIsImlzcyI6IkRlbnNpZnkuY29tIiwiZXhwIjoxNTQyNjUyNzA1fQ.cJd8qFJfRoPnMEU7GzcdYGBT8WwlgmviQ1OQp8P_w9VUcjQA3FJaB9QkqJJ6d7zbrY5yjc4w0rOWjY-PPdbmqw",
"expires": 1542652705869,
"status": 200
}{
"status": 400,
"message": "<string>"
}{
"message": "Unauthorized",
"status": 401
}{
"status": 400,
"message": "<string>"
}{
"status": 400,
"message": "<string>"
}{
"status": 400,
"message": "<string>"
}Body
application/json
Response
Successful authorization

