---
title: "Create a new temporary session"
method: POST
path: "/api/v1/create-temp-session"
tags: ["Chat"]
---

# Create a new temporary session

`POST /api/v1/create-temp-session`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/create-temp-session`
- Auth: none declared

Create a new temporary session

## Request body

- CreateTempSessionRequest
  - `chat_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
