List OAuth Grants
Changed onLists the authenticated user's own OAuth grants: one per app they have authorized, per account they authorized it for. You cannot read another user's grants. Requires a user session: an API key or an OAuth token is refused, so an app can never enumerate the other apps a user has authorized.
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/users/me/oauth_grants
- Auth: HTTP bearer
Query parameters
Only return grants for this app, prefixed app_. An app the user has never authorized returns an empty list.
Number of results to return from the start of the range.
Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.
Number of results to return from the end of the range.
Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.
The field to sort grants by.
Sort direction.
Response
oauth grants listed
Example response
{
"data": [
{
"account_id": "biz_xxxxxxxxxxxxxx",
"app_id": "app_xxxxxxxxxxxxxx",
"authorized_at": "2026-01-01T12:00:00.000Z",
"created_at": "2026-01-01T12:00:00.000Z",
"id": "oag_xxxxxxxxxxxxxx",
"redirect_url": "https://Booking.Shinetime.example:8443/oauth/Callback/",
"revoked_at": "2026-01-01T12:00:00.000Z",
"scopes": [
"email"
]
}
],
"page_info": {
"start_cursor": "WyJjdXJzb3IiLDFd"
}
}Changes
- breaking
for the
queryrequest parameterfirst, default value20was added - warning
for the
queryrequest parameterfirst, the max was set to100.00 - warning
for the
queryrequest parameterlast, the max was set to100.00
- breaking
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info