---
title: "Start Impersonation"
method: POST
path: "/admin/impersonate/{user_id}"
tags: ["admin"]
---

# Start Impersonation

`POST /admin/impersonate/{user_id}`

Start impersonating a user.

Creates an impersonation session and returns a custom JWT token
that identifies the target user while tracking the admin.

Returns:
    ImpersonationTokenResponse with access token and session info

Raises:
    403: If user is not an admin or trying to impersonate another admin
    404: If target user not found

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- ImpersonationTokenResponse — Response containing the impersonation JWT token.
  - `access_token` string, required
  - `target_user_email` string, required
  - `session_id` string, required

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[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/a8ae8846c411/schema)
