List Token Information

Overview

This endpoint retrieves a paginated list of all OAuth tokens issued for the entity. It includes metadata such as roles, scopes, expiration times, and creation dates. This is useful for auditing, monitoring active sessions, and managing token lifecycle.

Endpoint Details

DefinitionDescription
Endpointhttps://api.paas.sandbox.co.passportfintech.com/v1/iam/oauth/tokens
MethodGET
HeadersAccept-Language, Content-Length, Content-Type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Query Parameters

Pagination Parameters

ParameterDescription
page_params.page_sizeNumber of records to return per page.
page_params.page_numberPage number to retrieve.
page_params.first_request_timestamp.secondsUTC seconds since Unix epoch (1970-01-01T00:00:00Z). Must be between 0001-01-01T00:00:00Z and 9999-12-31T23:59:59Z (inclusive).
page_params.first_request_timestamp.nanosNanosecond fraction (0 to 999,999,999). Must be a non-negative value and represents fractional seconds at nanosecond resolution.

Ordering Parameters

ParameterDescription
order_params.order_keyField used to sort the results.
order_params.order_directionSort direction. Allowed values: ORDER_DIRECTION_ENUM_UNSPECIFIED, ASC, DESC.

Token Filters

ParameterDescription
account_idFilters by the unique account reference associated with the access token.
user_idFilters by the unique user reference associated with the access token.
grant_flowFilters by the grant flow used to generate the access token. Allowed values: GRANT_FLOW_CLIENT_CREDENTIALS, GRANT_FLOW_PASSWORD, GRANT_FLOW_ENTITY_SETUP, GRANT_FLOW_LOGIN.
roleFilters by the role associated with the access token.

Request Body

This endpoint does not require a request body.

Example Request

JSON
Copy

Response

  • HTTP Status Code 200 OK.

Example of Response

JSON
Copy

Common Errors and Handling

HTTP Status CodeMeaningDescription
400Bad RequestInvalid query parameters or malformed request
401UnauthorizedBearer token missing, expired, or does not include iam.oauth.tokens.list.get scope
403ForbiddenAuthenticated user lacks permission to view token list
500Internal Server ErrorUnexpected error. Retry or contact support if issue persists

Best Practices

  • Use the pagination_info object to iterate through all pages when retrieving tokens.
  • Regularly audit active tokens to ensure compliance with security policies.
  • Immediately revoke compromised or unused tokens using the Revoke Token endpoint.
  • Never expose raw tokens in logs or client-side applications.
  • Use roles and scopes to enforce least-privilege access models.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard