# Revoke a seller's embedded sessions.

> Ends at once every embedded components session of this account: the client secrets not claimed yet stop working, and the sessions already open end (their frames answer `session_expired`, and the loader asks your `fetchClientSecret` for a new secret). Use it when a seller leaves your platform, or when a client secret may have leaked.

`POST https://api.wajub.com/accounts/{id}/embedded_sessions/revoke`

Ends at once every embedded components session of this account: the client secrets not claimed yet stop working, and the sessions already open end (their frames answer `session_expired`, and the loader asks your `fetchClientSecret` for a new secret). Use it when a seller leaves your platform, or when a client secret may have leaked.

The account's own environment: a test key revokes test sessions. Revoking when nothing is open answers `200` with `revoked: 0`. Called with your own secret key, never with `X-Sync`; a restricted key is refused.

## Path parameters

- `id` (string, required): The subaccount `id`.

## Responses

- `200`: OK
- `400`: Direct merchant
- `403`: A restricted key
- `404`: Unknown, or an account of another platform

## Example response (200)

```json
{
  "code": 200,
  "status": "OK",
  "message": "Embedded sessions revoked",
  "revoked": 2
}
```
