Skip to content

List all application refresh tokens

Request

OAuth 2.0 scope:
  • okta.apps.read

Lists all refresh tokens for an app

Note: The results are paginated according to the limit parameter. If there are multiple pages of results, the Link header contains a next link that you need to use as an opaque value (follow it, don't parse it).

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
Query
expandstring

An optional parameter to return scope details in the _embedded property. Valid value: scope

Example:expand=scope
afterstring

Specifies the pagination cursor for the next page of results. Treat this as an opaque value obtained through the next link relationship. See Pagination.

Example:after=16275000448691
limitinteger, [ 1 .. 200 ]

A limit on the number of objects to return

Default:20
curl -i -X GET \
  'https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/tokens?expand=scope&after=16275000448691&limit=20'

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": "oar579Mcp7OUsNTlo0g3", "status": "ACTIVE", "created": "2023-03-09T03:18:06.000Z", "lastUpdated": "2023-03-09T03:18:06.000Z", "expiresAt": "2023-03-16T03:18:06.000Z", "issuer": "https://{yourOktaDomain}/oauth2/ausain6z9zIedDCxB0h7", "clientId": "0oabskvc6442nkvQO0h7", "userId": "00u5t60iloOHN9pBi0h7", "scopes": [ … ], "_embedded": { … }, "_links": { … } } ]