---
title: "Create Session"
method: POST
path: "/v1/sessions"
tags: ["game sessions", "product-api"]
---

# Create Session

`POST /v1/sessions`

## Request

- Base URL: `https://api.myarchivist.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myarchivist.ai/v1/sessions`
- Auth: HTTP bearer

## Headers

- `x-api-key` string, nullable

## Request body

- GameSessionCreate: Schema for creating a new game session
  - `title` string
  - `summary` string, nullable
  - `notes` string, nullable
  - `type` 'audioUpload' | 'playByPost' | 'discordVoice' | 'txtUpload' | 'rawNotes' | 'other'
  - `public` boolean
  - `campaign_id` string, required

## Response `201`

Successful Response

- union
  - GameSessionRead: Schema for reading game session data
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable
    - `id` string, required
    - `title` string
    - `summary` string, nullable
    - `notes` string, nullable
    - `type` 'audioUpload' | 'playByPost' | 'discordVoice' | 'txtUpload' | 'rawNotes' | 'other'
    - `public` boolean
    - `campaign_id` string, required
    - `image` string, nullable
    - `index` integer, nullable
    - `session_date` string, date-time, required
    - `pbp_start_msg_url` string, nullable
    - `pbp_end_msg_url` string, nullable
  - GameSessionSummaryProduct
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable
    - `id` string, required
    - `title` string, required
    - `type` 'audioUpload' | 'playByPost' | 'discordVoice' | 'txtUpload' | 'rawNotes' | 'other', required
    - `session_date` string, date-time, required
    - `campaign_id` string, required
    - `public` boolean, required
    - `summary` string, nullable
    - `image` string, nullable
    - `index` integer, nullable
    - `notes` string, nullable
    - `pbp_start_msg_url` string, nullable
    - `pbp_end_msg_url` string, nullable
    - `pending` boolean
    - `ai_session_review` AiSessionReviewSummary
      - `stage` string, required
      - `review_started_at` string, date-time, nullable
      - `save_started_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myarchivist/apis/archivist-public-api.md) · [All operations](https://skmtc.dev/myarchivist/apis/archivist-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myarchivist/apis/archivist-public-api/revisions/3ea6ca7efc56?raw)
