---
title: "GET /oauth/tokens"
method: GET
path: "/oauth/tokens"
tags: ["OAuthTokens"]
---

# GET /oauth/tokens

`GET /oauth/tokens`

Returns a list of OAuthToken documents.

## Query parameters

- `authProviderIds` string[]
- `partyIds` string[]
- `isValid` boolean
- `minCreatedDateTime` string, date-time
- `maxCreatedDateTime` string, date-time
- `minLastModifiedDateTime` string, date-time
- `maxLastModifiedDateTime` string, date-time
- `maxPageSize` integer
- `skipToken` string
- `api-version` string, required

## Response `200`

Success

- OAuthTokenListResponse — Paged response contains list of requested objects and a URL link to get the next set of results.
  - `value` OAuthToken[], required — List of requested objects.
    - `partyId` string, required — Party ID for this OAuth config.
    - `authProviderId` string, required — ID of the OAuth provider resource containing app information.
    - `isValid` boolean — An optional flag indicating whether the token is a valid or expired (Default value: true).
    - `eTag` string — The ETag value to implement optimistic concurrency.
    - `createdDateTime` string, date-time — Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
    - `modifiedDateTime` string, date-time — Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
  - `skipToken` string — Token used in retrieving the next page. If null, there are no additional pages.
  - `nextLink` string — Continuation link (absolute URI) to the next page of results in the list.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/azure/apis/agrifood-agfoodplatform.md) · [All operations](https://skmtc.net/azure/apis/agrifood-agfoodplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/agrifood-agfoodplatform/revisions/33cf1de6e0c4/schema)
