---
title: "Get Oauth Grants"
method: GET
path: "/admin/oauth/grants"
tags: ["admin_oauth"]
---

# Get Oauth Grants

`GET /admin/oauth/grants`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/admin/oauth/grants`
- Auth: OAuth 2 (password, token URL `api/login`)

## Query parameters

- `user_id` string, nullable

## Response `200`

Successful Response

- OAuthGrantResponse[]
  - `grant_id` string, required
  - `user_id` string, required
  - `client_id` string, required
  - `scopes` string[], required
  - `connected_at` string, date-time, required
  - `last_refreshed_at` string, date-time, required
  - `expires_at` string, date-time, required

## Other responses

- `422`: Validation Error

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-10-14** `1160feeb2038`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/admin/oauth/grants/get.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
