UserApiToken Object
Metadata for one of an organization's access tokens, listed by
organizationAccessTokens. The plaintext secret (prefix
"pie_pat_") is never returned here — the server stores only a
SHA-256 hash; tokenPrefix carries the token's first 16 characters
for identification. Tokens created with
createOrganizationAccessToken do not expire; a non-null
revokedAt (set by revokeOrganizationAccessToken) means the
token no longer authenticates requests. createdBy is the creator's
name (their email when they have no name). stoppedReason is null
while the token works; otherwise it says why requests with it are
refused: organization_deleted, organization_not_enterprise or
organization_trial. The token belongs to the organization, so what
happens to its creator never stops it. access is "read" or
"read_write". code is the token's short public name: changes made
with a Read + write token are shown as "API User #".
Fields
#
Usages
#
References
#
- Field userApiToken from UserApiTokenPayload
User
UserApiTokenPayload
