---
title: "Create a new upload session"
method: POST
path: "/api/v1/upload/create-session"
tags: ["Upload"]
---

# Create a new upload session

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

Creates a dedicated upload session and returns an ``upload_session_id``.  The frontend must call this **before** connecting to the SSE stream and before submitting the file via ``POST /upload/process``.  This mirrors the ``POST /create-session`` pattern used for chat sessions.

## Response `200`

Successful Response

- unknown

---

[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)
