---
title: "Mint a Sandwich session cookie from a Firebase ID token"
method: POST
path: "/api/auth/session"
tags: ["Auth"]
---

# Mint a Sandwich session cookie from a Firebase ID token

`POST /api/auth/session`

## Request

- Base URL: `https://www.joinsandwich.com`
- URL: `https://www.joinsandwich.com/api/auth/session`
- Auth: none declared

## Request body

- object
  - `idToken` string, required

## Response `200`

Session minted or token refresh required

- object

## Other responses

- `400`: Structured JSON error with code, message, and resolution hint
- `401`: Structured JSON error with code, message, and resolution hint
- `500`: Structured JSON error with code, message, and resolution hint

---

[API](https://skmtc.dev/joinsandwich/apis/sandwich-public-api.md) · [All operations](https://skmtc.dev/joinsandwich/apis/sandwich-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/joinsandwich/apis/sandwich-public-api/revisions/6464c8d2ca48?raw)
