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://functions.siro.ai/api-externalApi/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
}

Documentation Index

Fetch the complete documentation index at: https://docs.siro.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
default:<organization-api-token>
required

Organization integration token from Siro admin (Person icon → API Tokens). Send Authorization: Bearer . This is not the OAuth access token used with api.siro.ai user-scoped endpoints.

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