---
title: "Impersonate"
method: POST
path: "/api/v1/superuser/impersonate"
tags: ["main", "superuser"]
---

# Impersonate

`POST /api/v1/superuser/impersonate`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/superuser/impersonate`
- Auth: none declared

Impersonate a user as a super-admin.
Internally, Stack Auth requires the **provider user ID** (a UUID-ish string)
to create an impersonation session.

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- ImpersonateRequest: Request payload for superadmin impersonation. ``provider_user_id``, ``user_id``, or ``email`` may be supplied. If more than one is provided, ``provider_user_id`` takes precedence, followed by ``user_id`` and then ``email``.
  - `provider_user_id` string, nullable
  - `user_id` integer, nullable
  - `email` string, nullable

## Response `200`

Successful Response

- ImpersonateResponse
  - `refresh_token` string, required
  - `access_token` string, required

## Other responses

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

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/superuser/impersonate/post.md)

---

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