HUMAN uses API tokens to authenticate requests. To use any of our API, you must authenticate every request you make. Requests without proper authentication will fail.
Authorization for certain solutions are slightly different. Be sure you follow the correct instructions for the API you want to use.
To generate a token, you must have access to the HUMAN Console.
Tokens are confidential and gives sensitive access to your account. Be sure to store and handle your tokens securely. Do not share this key with others or store them in publicly accessible places.
For Account Defender, Alerts, Bot Defender, or Credential Intelligence, HUMAN uses an application’s server token when using API calls. For more on creating and managing applications, see Setting up your application.
To create a token:
You can create up to three server tokens per application at a time.
If a token does not already exist, you may need to ask HUMAN to generate one for you. Contact us at contact-support@humansecurity.com to do so.
To access a token for the Code Defender or PCI DSS API:
Tokens have an expiration date. Make sure to generate a new token before the previous one expires. If you think a token has been compromised, contact HUMAN support.
You can authenticate requests using your token with --header 'authorization: Bearer <token>'. You do not need to provide a password.
For example, to authenticate a request to get a list of custom rules: