---
title: "Create session"
method: POST
path: "/session"
tags: ["session"]
---

# Create session

`POST /session`

Create a new session under a space

## Request body

- HandlerCreateSessionReq
  - `configs` object
  - `space_id` string, uuid

## Response `201`

Created

- object
  - `code` integer
  - `data` ModelSession
    - `configs` object
    - `created_at` string
    - `id` string
    - `project_id` string
    - `space_id` string
    - `updated_at` string
  - `error` string
  - `msg` string

## Changes

- **2025-11-12** `a1c1bcb0e2ee` — 2 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `409`

[Change history](https://skmtc.dev/memodb-io/apis/acontext-api/changes/session/post.md)

---

[API](https://skmtc.dev/memodb-io/apis/acontext-api.md) · [All operations](https://skmtc.dev/memodb-io/apis/acontext-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memodb-io/acontext-api/revisions/a1c1bcb0e2ee/schema)
