---
title: "Mint Session For Desktop"
method: POST
path: "/api/auth/session/for-desktop"
tags: ["auth"]
---

# Mint Session For Desktop

`POST /api/auth/session/for-desktop`

## Request

- Base URL: `https://api.zugabot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.zugabot.ai/api/auth/session/for-desktop`
- Auth: none declared

Mint a fresh SuperTokens session for a user already authed on the web.

When ZugaClaw / ZugaGamer launch `zugabot.ai/login?redirect=<proto>://...`
and the user is already signed in on the web, LoginView calls this with
the existing Bearer token. We issue a fresh {access, refresh} pair so the
desktop app has what it needs — no re-entering credentials.

Requires a valid Bearer token; the minted pair is bound to the same user.

## Response `200`

Successful Response

- RefreshResponse
  - `token` string, required
  - `refresh_token` string, required

---

[API](https://skmtc.dev/zugabot/apis/spiritus.md) · [All operations](https://skmtc.dev/zugabot/apis/spiritus/llms.txt) · [OpenAPI document](https://skmtc.dev/zugabot/apis/spiritus/revisions/f20ef4524415?raw)
