Skip to content

List all refresh tokens for a client

Request

OAuth 2.0 scope:
  • okta.authorizationServers.read

Lists all refresh tokens issued by an authorization server for a specific Client

Path
authServerIdstringrequired

id of the Authorization Server

Example:GeGRTEr7f3yu2n7grw22
clientIdstringrequired

client_id of the app

Example:52Uy4BUWVBOjFItcg2jWsmnd83Ad8dD
Query
expandstring

Valid value: scope. If specified, scope details are included in the _embedded attribute.

afterstring

Specifies the pagination cursor for the next page of tokens

limitinteger, (int32)

The maximum number of tokens to return (maximum 200)

Default:-1
curl -i -X GET \
  'https://subdomain.okta.com/api/v1/authorizationServers/GeGRTEr7f3yu2n7grw22/clients/52Uy4BUWVBOjFItcg2jWsmnd83Ad8dD/tokens?expand=string&after=string&limit=-1'

Responses

Success

Bodyapplication/json
Array [
clientIdstring

Client ID

createdstring, (date-time)(createdProperty)read-only

Timestamp when the object was created

Example:"2017-03-28T01:11:10.000Z"
expiresAtstring, (date-time)read-only

Expiration time of the OAuth 2.0 Token

idstringread-only

ID of the Token object

Example:"oar579Mcp7OUsNTlo0g3"
issuerstring

The complete URL of the authorization server that issued the Token

Example:"https://{yourOktaDomain}/oauth2/ausain6z9zIedDCxB0h7"
lastUpdatedstring, (date-time)(lastUpdatedProperty)read-only

Timestamp when the object was last updated

scopesArray of strings

The scope names attached to the Token

Example:
[ "offline_access" ]
statusstring(GrantOrTokenStatus)read-only

Status

Enum:"ACTIVE""REVOKED"
Example:"ACTIVE"
userIdstring

The ID of the user associated with the Token

Example:"00u5t60iloOHN9pBi0h7"
_embeddedobjectread-only

The embedded resources related to the object if the expand query parameter is specified

]
Response
[ { "id": "{refreshTokenId}", "status": "ACTIVE", "created": "2023-09-21T19:59:56.000Z", "lastUpdated": "2023-09-21T20:00:38.000Z", "expiresAt": "2023-09-28T20:00:38.000Z", "issuer": "https://{yourOktaDomain}/oauth2/{authorizationServerId}", "client_id": "{clientId}", "userId": "{userId}", "scopes": [ … ], "_embedded": { … }, "_links": { … } } ]