---
title: "Force-refresh a single OAuth authorization (never returns token values)"
method: POST
path: "/api/oauth-authorizations/{id}/refresh"
tags: ["Script Connections"]
---

# Force-refresh a single OAuth authorization (never returns token values)

`POST /api/oauth-authorizations/{id}/refresh`

## Path parameters

- `id` string, required

## Response `200`

Refresh result with token status and new expiry

- object
  - `ok` true, required
  - `status` 'active' | 'refresh-failed' | 'expired' | 'revoked', required
  - `expiresAt` string, nullable, required

## Other responses

- `400` — No refresh token stored
- `403` — Only the lead agent can manage OAuth authorizations
- `404` — Authorization not found
- `502` — Provider token endpoint rejected the refresh

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
