---
title: "Create an episode"
method: POST
path: "/api/episodes"
tags: ["Episodes"]
---

# Create an episode

`POST /api/episodes`

## Request

- Base URL: `https://api.memcore.global-soft.ro`
- URL: `https://api.memcore.global-soft.ro/api/episodes`
- Auth: one of:
  - API key in cookie `authjs.session-token`
  - HTTP bearer

## Request body

- CreateEpisode
  - `title` string, required
  - `content` string, required
  - `messages` unknown[]
    - unknown
  - `source` string
  - `summary` string
  - `metadata` object
  - `tags` string[]
  - `scope_id` string, required

## Response `201`

Episode created

- EpisodeResponse
  - `id` string
  - `scope_id` string
  - `scopeId` string
  - `title` string
  - `content` string
  - `messages` unknown[], nullable
    - unknown
  - `source` string, nullable
  - `summary` string, nullable
  - `metadata` object, nullable
  - `tags` string[], nullable
  - `created_at` string, date-time
  - `createdAt` string, date-time
  - `updated_at` string, date-time
  - `updatedAt` string, date-time
  - `archivedAt` string, date-time, nullable
  - `archiveKey` string, nullable
  - `linkedMemories` object[], nullable
    - `id` string
    - `content` string
    - `createdAt` string, date-time

## Other responses

- `422`: Validation failed

---

[API](https://skmtc.dev/kognite/apis/memcore-api.md) · [All operations](https://skmtc.dev/kognite/apis/memcore-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kognite/apis/memcore-api/revisions/73e03a22eec8?raw)
