---
title: "Refresh OAuth token"
method: POST
path: "/workspaces/{id}/config/refresh-oauth"
tags: ["config"]
---

# Refresh OAuth token

`POST /workspaces/{id}/config/refresh-oauth`

## Path parameters

- `id` string, required

## Request body

- ProtoConfigRefreshOAuthRequest
  - `provider_id` string
  - `scope` 0 | 1

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/charmbracelet/apis/crush-api.md) · [All operations](https://skmtc.dev/charmbracelet/apis/crush-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/charmbracelet/crush-api/revisions/81bee9ef86c6/schema)
