Page tree


Knowledge Base


Feedback

Have a suggestion for the Armor Knowledge Base?

Send a message to
kb@armor.com.









The Post Authorize API creates a temporary authorization code that can be redeemed for an authorization token.

This API call applies to both Armor Complete and Armor Anywhere users.

To redeem an authorization token, see Post Token

Sample Request

POST https://api.armor.com/auth/authorize

{
  "username": "user@domain.com",
  "password": "password123%^&"
}

Input


The following table describes the different parts of this API call: 

API Call / URLMethod / Type
/auth/authorize POST


The following table describes the parameter (or parameters) for this API call:

ParameterDescriptionFormatRequired or optionalExample
usernameYour AMP usernameStringRequireduser@domain.com
passwordYour AMP passwordStringRequiredpassword123%^&

Sample Return

StatusResponse
200
{
 "redirect_uri": null,
 "code": 
"HJTX3gAAAAN2q1UP7cvFtOh1qffrfWIpKetdnIgvOfpJRSC5W7b3vVqMBn8pZHtRY8I4nLRzW95gdWPdRMVUrgsnJ2mwqB8kgxOu8lhH1LOggfwrRCvxLGvGmwET59gIzJ60rxpEdM0dTLw58kNnWVbaQI1NmPQJwjvD/1RIPTnOL5d+z29wyJ/BI/POlPKNlVfHsJGYJl8ql0/3D3czNGhXCqfV20Uj0r8EX7zsQz/9t1YCqKKj9OpPv3sypXS6h4hNb/v4yLD33G+EnwOajJQ62sA=",
 "success": true
}
403
{
 "errorCode": "access_denied",
 "badLogonCount": 0
}