Create Personal Access Token
Last updated
Last updated
POST /auth/pats
Create a new personal access token for the caller
User action signature required. See User Action Signing for more information.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Name | Conditions |
---|---|
Property | Type | Description |
---|---|---|
See Common Errors for common errors.
See Personal Access Token Management Errors for personal access token management specific errors.
Success - The created personal access token
Auth:Users:Create
Always Required
Auth:Types:Pat
Always Required
name
*
String
the name of the personal access token, must be unique for the caller
publicKey
*
String
public key that can be used to validate signatures generated by the personal access token
secondsValid
Integer
Optional
number of seconds the personal access token will be valid. If this is specified, daysValid
will be ignored.
daysValid
Integer
Optional
number of days the personal access token will be valid. Max is 730
. If secondsValid
is specified, daysValid
will be ignored.
permissionId
String
Optional
ID of the permission that will be assigned to the personal access token. If no permission ID is given, the personal access token will be assigned the same permissions as the caller
externalId
String
Optional
user defined value that can be used to correlate the entity with an external system