Skip to main content
GET
/
v1
/
core
/
oauth
/
apps
/
{clientId}
/
access-token
Get all OAuth access tokens for a given OAuth app.
curl --request GET \
  --url https://api.example.com/v1/core/oauth/apps/{clientId}/access-token \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "accessTokenId": "<string>",
      "oAuthAppId": "<string>",
      "userId": "<string>",
      "audience": "<string>",
      "subject": "<string>",
      "scope": "read",
      "expiresAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "revokedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "cursor": "<string>",
  "pageSize": 123,
  "limit": 123,
  "total": 123,
  "hasNextPage": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

clientId
string
required

The OAuth app that the tokens are bound to.

Query Parameters

owner
string
required

The id of the user that created one or more OAuth access tokens.

Minimum string length: 1
fromDate
string<date-time>

Return OAuth access tokens created after this date.

toDate
string<date-time>

Return OAuth access tokens created before this date.

limit
integer
default:100

The number of results to return. If omitted, 100 results will be returned.

Required range: 1 <= x <= 100
cursor
string

The cursor to paginate the results. Cursor-based pagination will always be used unless if left blank and a page number is provided.

Minimum string length: 1
page
integer

The page number to return. If omitted, the first page of results will be returned.

Required range: x >= 1
sortField
enum<string>
default:dateCreated

The field to sort the results by. If omitted, the results will be sorted by dateCreated in descending order.

Available options:
dateCreated,
dateUpdated
sortDirection
enum<string>
default:desc

The direction to sort the results by. If omitted, the results will be sorted by dateCreated in descending order.

Available options:
asc,
desc

Response

Get all OAuth access tokens for a given OAuth app.

data
object[]
required
cursor
pageSize
number
limit
number
total
number | null
hasNextPage
boolean