Skip to main content

GetPersonalAccessTokenResponse

Properties

NameTypeDescriptionNotes
idstrThe ID of the personal access token (to be used as the username for Basic Auth).[required]
namestrThe name of the personal access token. Cannot be the same as other personal access tokens owned by a user.[required]
scope[]strScopes of the personal access token.[required]
ownerPatOwner[required]
createddatetimeThe date and time, down to the millisecond, when this personal access token was created.[required]
last_useddatetimeThe date and time, down to the millisecond, when this personal access token was last used to generate an access token. This timestamp does not get updated on every PAT usage, but only once a day. This property can be useful for identifying which PATs are no longer actively used and can be removed.[optional]
managedboolIf true, this token is managed by the SailPoint platform, and is not visible in the user interface. For example, Workflows will create managed personal access tokens for users who create workflows.[optional] [default to False]
access_token_validity_secondsintNumber of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200.[optional] [default to 43200]
expiration_datedatetimeDate and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date.[optional]
}

Example

from sailpoint.v2025.models.get_personal_access_token_response import GetPersonalAccessTokenResponse

get_personal_access_token_response = GetPersonalAccessTokenResponse(
id='86f1dc6fe8f54414950454cbb11278fa',
name='NodeJS Integration',
scope=[demo:personal-access-token-scope:first, demo:personal-access-token-scope:second],
owner=sailpoint.v2025.models.pat_owner.PatOwner(
type = 'IDENTITY',
id = '2c9180a46faadee4016fb4e018c20639',
name = 'Support', ),
created='2017-07-11T18:45:37.098Z',
last_used='2017-07-11T18:45:37.098Z',
managed=False,
access_token_validity_seconds=36900,
expiration_date='2018-01-11T18:45:37.098Z'
)

[Back to top]