---
title: "End impersonation session"
method: POST
path: "/api/auth/end-impersonate"
tags: ["Auth"]
---

# End impersonation session

`POST /api/auth/end-impersonate`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/auth/end-impersonate`
- Auth: HTTP bearer

End the current impersonation session and return admin's own tokens

## Response `200`

Impersonation session ended

## Other responses

- `400`: Not currently impersonating

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
