[{"label":"Latest (v1.0)","version":"latest"}]
csp

GenerateApiTokenRequestV2

The request body for generating API token.


Properties

allowedScopes Required

The allowed general, organization and service scopes of access.


string as ^[\p{Alnum}\-._ ]+$
idToken Required

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.


integer as int32
refreshTokenTTL Required

API Token Time To Live (TTL)


integer as int32
notifyBeforeExpiry Optional

Number of days to notify before token expiration


string
orgId Optional

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.


string
tokenName Optional

The name of the API token. The value must be alphanumerical and can contain the following symbols -_.`’:@&, and space. International characters are allowed.

JSON Example

{
	"allowedScopes": {},
	"idToken": "string",
	"refreshTokenTTL": 0
}
[{"label":"Latest (v1.0)","version":"latest"}]
csp
Parameter To

Generate User API Token

Feedback

Was this page helpful?