---
title: "End the current view session (audit only)."
method: DELETE
path: "/api/v1/admin/impersonation"
tags: ["Admin"]
---

# End the current view session (audit only).

`DELETE /api/v1/admin/impersonation`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/admin/impersonation`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Stateless: the token stays valid until its TTL (documented spec<br/>behavior); the client drops it and per-write audits keep integrity.<br/>An EXPIRED but authentic token is still accepted here so a view that<br/>outlived the TTL can close its `impersonation_ended` trail (the swap<br/>itself never accepts an expired token). Tampered tokens 403.

## Response `200`

OK

- OkResponse
  - `ok` boolean, required

## Other responses

- `403`: Forbidden
- `422`: Unprocessable Entity

---

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