---
title: "Leave an admin impersonation session"
method: POST
path: "/users/me/impersonation/end"
tags: ["Users"]
---

# Leave an admin impersonation session

`POST /users/me/impersonation/end`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/users/me/impersonation/end`
- Auth: HTTP bearer

Only meaningful from a session an Atako operator opened as the user (back-office hijack): closes it and journals the exit. Any other session answers 404.

## Response `200`

- object
  - `ok` boolean, required

## Other responses

- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `404`: NOT_IMPERSONATING

---

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