---
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

## 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

## Changes

- **2026-07-24** `5caa2f4d1afb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/oauth-authorizations/:id/refresh/post.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
