---
title: "Get the access you approved for an app"
method: GET
path: "/v1/me/oauth-consent"
tags: ["Account"]
---

# Get the access you approved for an app

`GET /v1/me/oauth-consent`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/me/oauth-consent`
- Auth: API key in cookie `__Host-better-auth.session_token`

Returns the scopes and teams you already approved for one OAuth client, or null when you have not connected it. The consent page keeps those teams and shows only the access a new request adds.

## Query parameters

- `clientId` string, required: The OAuth client that asks for access.

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `grant` object, nullable, required
      - `id` string, required
      - `scopes` string[], required
      - `teams` union, required
        - 'all'
        - string[]

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
