Skip to main content
POST
/
authorize
Obtain a JWT API token
curl --request POST \
  --url https://{host}/api/v2/authorize \
  --header 'Content-Type: application/json' \
  --data '
{
  "userName": "<string>",
  "pwd": "<string>"
}
'
{
  "apiToken": "<string>",
  "expires": 123,
  "status": 200
}

Body

application/json
userName
string
required

Username of an active Densify user account

pwd
string<password>
required

Password corresponding to userName

Response

Successful authorization

apiToken
string
required

JWT string (RFC 7519) to include as a Bearer token on subsequent requests.

expires
number<int64>
required

Epoch time in milliseconds when the token expires.

status
enum<integer>
required

HTTP status code of the authorization request.

Available options:
200