---
title: "Disconnect an OAuth client"
method: DELETE
path: "/oauth-connections/{clientId}"
tags: ["OAuth connections"]
---

# Disconnect an OAuth client

`DELETE /oauth-connections/{clientId}`

## Request

- Base URL: `https://api.rightmessage.com/v1`
- URL: `https://api.rightmessage.com/v1/oauth-connections/{clientId}`
- Auth: HTTP bearer

Revokes every access and refresh token the authenticated user granted to this MCP client.

Requires an API token with the `write` ability. Tokens created without abilities have `*`, which grants every ability.

## Path parameters

- `clientId` string, required

## Response `204`

No content

- string[]

## Other responses

- `401`: Missing, invalid or revoked API token.
- `404`: Not found
- `429`: Rate limit exceeded: 120 requests per minute for project endpoints, 60 per minute for token and connection endpoints. Retry after the `Retry-After` seconds.

---

[API](https://skmtc.dev/rightmessage/apis/rightmessage-api.md) - [All operations](https://skmtc.dev/rightmessage/apis/rightmessage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rightmessage/apis/rightmessage-api/revisions/adec35e9720c?raw)
