---
title: "Get OAuth config status"
method: GET
path: "/api/oauth/config/{id}/status"
tags: ["OAuth"]
---

# Get OAuth config status

`GET /api/oauth/config/{id}/status`

Retrieves the current status of an OAuth configuration.
Shows whether the OAuth flow is pending, authorized, or failed,
and includes token expiration and scopes if authorized.

## Path parameters

- `id` string, required

## Response `200`

OAuth config status retrieved successfully

- OAuthConfigStatus — Status of an OAuth configuration
  - `id` string — OAuth config ID
  - `status` 'pending' | 'authorized' | 'failed' — Current status of the OAuth flow: - pending: User has not yet authorized - authorized: User authorized and token is stored - failed: Authorization failed
  - `created_at` string, date-time — When this OAuth config was created
  - `expires_at` string, date-time — When this OAuth config expires (becomes invalid if not completed)
  - `token_id` string — ID of the associated OAuth token (only present if status is authorized)
  - `token_expires_at` string, date-time — When the OAuth access token expires (only present if status is authorized)
  - `token_scopes` string[] — Scopes granted in the OAuth token (only present if status is authorized)

## Other responses

- `404` — OAuth config not found
- `500` — Internal server error

---

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