---
title: "Force-refresh the access token for an MCP server"
method: POST
path: "/api/mcp-oauth/{mcpServerId}/refresh"
tags: ["MCP OAuth"]
---

# Force-refresh the access token for an MCP server

`POST /api/mcp-oauth/{mcpServerId}/refresh`

## Path parameters

- `mcpServerId` string, required

## Request body

- object
  - `userId` string

## Response `200`

Refreshed token

## Other responses

- `404` — No token for this MCP server
- `500` — Refresh failed

---

[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.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
