---
title: "End Impersonation"
method: POST
path: "/admin/impersonate/end"
tags: ["admin"]
---

# End Impersonation

`POST /admin/impersonate/end`

End the current impersonation session.

Extracts the session ID from the JWT token and marks the session as ended.
Accepts impersonation tokens (where user appears as target) to allow
ending sessions.

Raises:
    401: If no valid credentials provided
    400: If not currently impersonating or session invalid

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found

---

[API](https://skmtc.dev/trytrata/apis/fastapi.md) · [All operations](https://skmtc.dev/trytrata/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trytrata/fastapi/revisions/89fec75ff598/schema)
