---
title: "Unlink a connected OAuth identity"
method: POST
path: "/auth/account/identities/unlink"
tags: ["Auth"]
---

# Unlink a connected OAuth identity

`POST /auth/account/identities/unlink`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/auth/account/identities/unlink`
- Auth: API key in cookie `__Host-Http-r402_session`

Hosted browser-session route (cookie + double-submit CSRF + same-origin), freshness-gated (5-min step-up). Removes a linked OAuth identity (provider + provider subject) from the signed-in account and rotates other sessions on the change.

## Request body

- object
  - `provider` string, required
  - `subject` string, required: The provider's subject id (provider_sub) of the identity to unlink.

## Response `200`

{ ok, unlinked }

- object

## Other responses

- `401`: Missing or invalid authentication. Run402-originated JSON bodies use the canonical ErrorEnvelope.

---

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