v51

latestOpenAPI 3.0.3Mozilla Public License Version 2.0raw.githubusercontent.com2026-08-0165205256.0 KB
OAuth

List tokens for a provided API ID and OAuth-client ID

This endpoint allows you to retrieve a list of all current tokens and their expiry date for a provided API ID and OAuth-client ID .If page query parameter is sent the tokens will be paginated. This endpoint will work only for newly created tokens. <br/> <br/> You can control how long you want to store expired tokens in this list using oauth_token_expired_retain_period gateway option, which specifies retain period for expired tokens stored in Redis. By default expired token not get removed. See <a href="https://tyk.io/docs/configure/tyk-gateway-configuration-options/#a-name-oauth-token-expired-retain-period-a-oauth-token-expired-retain-period" target="_blank">here</a> for more details.

get/tyk/oauth/clients/{apiID}/{keyName}/tokens

Path parameters

apiIDstring required

The API id

keyNamestring required

The Client ID

Query parameters

pageinteger

Use page query parameter to say which page number you want returned.

Response

Tokens returned successfully.

OR