GenerateApiTokenRequestV2
The request body for generating API token.
{
"notifyBeforeExpiry": 0,
"idToken": "string",
"tokenName": "string",
"refreshTokenTTL": 0,
"allowedScopes": {
"organizationScopes": {
"keptInToken": [
"string"
],
"allRoles": false,
"permissions": [
{
"resources": [
"string"
],
"permissionId": "string"
}
],
"allPermissions": false,
"roles": [
{
"name": "string",
"resource": "string"
}
]
},
"servicesScopes": [
{
"keptInToken": [
"string"
],
"allRoles": false,
"permissions": [
{
"resources": [
"string"
],
"permissionId": "string"
}
],
"serviceDefinitionId": "string",
"roles": [
{
"name": "string",
"resource": "string"
}
],
"allPermissions": false
}
],
"generalScopes": [
"string"
]
},
"orgId": "string"
}
Number of days to notify before token expiration
ID Token is signed JWT token returned from the authorization server and contains the user's profile information, includingthe domain of the identity provider. This domain is used to obtain the identity provider URL. This token is used for optimization so the application can know the identity of the user, without having to make any additional network requests. This token can be generated via the Authorization Code flow only.
The name of the API token. The value must be alphanumerical and can contain the following symbols -_.`':@&, and space. International characters are allowed.
API Token Time To Live (TTL)
The allowed general, organization and service scopes of access.
Id of the organization for which to generate token (if different from the logged in user organization). This functionality is allowed only for non-production environments.