---
title: "List OAuth consents."
method: GET
path: "/v1/oauth/consents"
tags: ["oauthManagement"]
---

# List OAuth consents.

`GET /v1/oauth/consents`

Get a list of OAuth consents within the organization. Administrators can list all consents, while others can only list consents that they have authorized.

## Query parameters

- `limit` integer
- `token` string
- `authorizedUser` string
- `clientId` string

## Response `200`

A list of OAuth consents.

- PaginatedListOAuthConsentsResult — List of OAuth consents.
  - `data` OAuthConsent[], required — An array of OAuth consents.
    - `id` string, required — Unique identifier for the consent.
    - `clientId` string, required — The ID of the registered client that was used in granting consent.
    - `clientName` string, required — The name of the registered client that was used in granting consent.
    - `authorizedAt` string, date-time, required — Timestamp when the consent was authorized in UTC in RFC3339 format.
    - `authorizedUser` string, required — Identifier of the user who authorized the consent.
    - `lastUsedAt` string, date-time — Timestamp when the consent was last used to grant an access token in UTC in RFC3339 format. Null if never used.
    - `scopes` string[], required — The scopes that were granted in the consent.
  - `next` string — Next continuation token.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/e4e4c7554890/schema)
