---
title: "Unlink Provider"
method: POST
path: "/api/v1/me/account/unlink-provider"
tags: ["account-erasure", "account-linking"]
---

# Unlink Provider

`POST /api/v1/me/account/unlink-provider`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/me/account/unlink-provider`
- Auth: none declared

Detach a sign-in provider (a linked OAuth identity) from the current account.

Returns ``{"status": "ok"}`` on success. The service guards the
invariants and raises, which the global ``memory_cloud_exception_handler``
maps to HTTP:

    - 404 (NotFoundException): the provider is not linked to this account.
    - 409 (ConflictError): removing it would leave zero sign-in methods.

On success the owner is emailed a security notice (Issue #1752).

## Headers

- `authorization` string, nullable

## Request body

- UnlinkProviderRequest: Body for POST /me/account/unlink-provider.
  - `provider` 'google' | 'github', required

## Response `200`

Successful Response

- UnlinkProviderResponse: Returned by POST /me/account/unlink-provider on success.
  - `status` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
