---
title: "Impersonate User Admin"
method: POST
path: "/v1/auth/impersonate/user/admin"
tags: ["authentication"]
---

# Impersonate User Admin

`POST /v1/auth/impersonate/user/admin`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/auth/impersonate/user/admin`
- Auth: none declared

Impersonate a user for admins.

Accepts EITHER admin Firebase auth (salesmorph-admin) or legacy
x-admin-api-key (Appsmith / cron). Returns a Firebase custom token the
admin tool can hand to console.linktodm.com/impersonate?custom_token=...

## Headers

- `x-admin-api-key` string, nullable

## Request body

- ImpersonateUserPayload: Impersonate User Payload.
  - `firebase_uid` string, required

## Response `200`

Successful Response

- TokenSchema: Access token.
  - `access_token` string, required
  - `token_type` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
