Create an authorization token

Tokens provide authorization for agents, users, and external systems or applications.


PUT https://{hostname}:{port}
Accept: application/json
Table 1. Request parameters
Parameter Type Required Description
user string true The user this token is associated with
expireDate string true Expiration date and time of the token, in the format MM-DD-YYYY-HH:mm
description string false Description of the authorization token
allowedIps string false Allowed IP addresses in CIDR notation, such as
restriction string false Name of id of auth token restrictions to apply to created auth token
Table 2. Header parameters
Parameter Type Required Description
Accept application/json true


curl -k -u jsmith:passwd 
  user=admin&expireDate=12-31-2020-12:00" -X PUT

Example response


Related CLI command: createAuthToken.