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

# Impersonate User

`POST /v1/auth/impersonate/user`

## 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`
- Auth: HTTP bearer

Impersonate a user.
Args:
    user_id (int): User ID.
    session (db, optional): Database session. Defaults to Depends(db).

## 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)
