cURL
validCredentials
curl --request POST \ --url https://api.example.com/authorize \ --header 'Content-Type: application/json' \ --data '{ "userName": "apiUser", "pwd": "apiPassword"}'
{ "apiToken": "eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIzNzI2Yzk0NC0wMmE4LTRlYzQtOGE2Ny04ODBmMDM2OTRhZDciLCJpYXQiOjE1NDI2NTI0MDUsInN1YiI6InZhbiIsImlzcyI6IkRlbnNpZnkuY29tIiwiZXhwIjoxNTQyNjUyNzA1fQ.cJd8qFJfRoPnMEU7GzcdYGBT8WwlgmviQ1OQp8P_w9VUcjQA3FJaB9QkqJJ6d7zbrY5yjc4w0rOWjY-PPdbmqw", "expires": 1542652705869, "status": 200 }
Returns a JWT token for any active Densify user when valid credentials are provided. Only tokens for API-enabled users can be used to make authorized API calls.
Username of an active Densify user account
Password corresponding to userName
userName
Successful authorization
JWT string (RFC 7519) to include as a Bearer token on subsequent requests.
Epoch time in milliseconds when the token expires.
HTTP status code of the authorization request.
200