---
title: "Consume a user impersonation link"
method: POST
path: "/auth/impersonation"
tags: ["Auth"]
---

# Consume a user impersonation link

`POST /auth/impersonation`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/auth/impersonation`
- Auth: none required

Consumes a five-minute, one-use impersonation code and creates a tracked browser session for the target user.

## Request body

- ConsumeUserImpersonationLinkInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `code` string, required: One-use impersonation code from the URL fragment

## Response `200`

OK

- ConsumeUserImpersonationLinkOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `message` string, required

## Other responses

- `400`: Bad Request
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
