accessTokens
List access tokens you own in an organization.
Returns only tokens owned by the authenticated caller. Accounts see their own personal tokens; service accounts see tokens issued to themselves. There is no admin view of another user's personal tokens.
Example:
query {
accessTokens(
organizationId: "my-org"
filter: { revoked: false }
sort: { field: EXPIRES_AT, order: ASC }
) {
items { id name prefix expiresAt }
cursor { next }
}
}
accessTokens(
organizationId: ID!
filter: AccessTokensFilter
sort: AccessTokensSort
cursor: Cursor
): AccessTokensPage
Arguments
accessTokens.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
accessTokens.filter ● AccessTokensFilter input {#filter}
Optional filters to narrow results.
accessTokens.sort ● AccessTokensSort input {#sort}
Sort field and direction. Defaults to newest first.
accessTokens.cursor ● Cursor input {#cursor}
Cursor from a previous page to fetch the next set of results.