---
title: "View As Exit"
method: POST
path: "/api/auth/view-as/exit"
tags: ["auth"]
---

# View As Exit

`POST /api/auth/view-as/exit`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/auth/view-as/exit`
- Auth: none declared

Restores the real session. A no-op, not an error, when called by an
ordinary (non-view-as) session -- `real_principal_id` is None there, so
this just re-mints that principal's own token; "make sure I am on my
own session" should never itself fail because it already was.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
