---
title: "Create a new Ask Caspr session"
method: POST
path: "/api/v1/ask-caspr/create-session"
tags: ["Ask Caspr"]
---

# Create a new Ask Caspr session

`POST /api/v1/ask-caspr/create-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/ask-caspr/create-session`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Creates a new session for Ask Caspr chat with a specific report section or subsection.

## Request body

- SrcResourcesRoutersAskCasprApiCreateSessionRequest
  - `report_id` string, required
  - `section_id` string, required
  - `subsection_id` string, nullable

## Response `200`

Successful Response

- CreateSessionResponse
  - `success` boolean, required
  - `session_id` string, nullable
  - `error` string, nullable

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server 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)
