---
title: "POST /api/internal/sessions"
method: POST
path: "/api/internal/sessions"
tags: ["Sessions", "Internal"]
---

# POST /api/internal/sessions

`POST /api/internal/sessions`

## Request body

- object
  - `botId` string, required
  - `sessionKey` string, required
  - `title` string, required
  - `channelType` string
  - `channelId` string
  - `status` 'active' | 'ended'
  - `messageCount` integer
  - `lastMessageAt` string
  - `metadata` object

## Response `201`

Created or updated session

- object
  - `id` string, required
  - `botId` string, required
  - `sessionKey` string, required
  - `channelType` string, nullable, required
  - `channelId` string, nullable, required
  - `title` string, required
  - `status` string, required
  - `messageCount` number, required
  - `lastMessageAt` string, nullable, required
  - `metadata` object, nullable, required
  - `createdAt` string, required
  - `updatedAt` string, required

---

[API](https://skmtc.net/nexu-io/apis/nexu-controller-api.md) · [All operations](https://skmtc.net/nexu-io/apis/nexu-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nexu-io/nexu-controller-api/revisions/ee3237405da6/schema)
