---
title: "Create a chat session"
method: POST
path: "/teams/{slug}/chat/sessions"
tags: ["Teams"]
---

# Create a chat session

`POST /teams/{slug}/chat/sessions`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/teams/{slug}/chat/sessions`
- Auth: HTTP bearer

Archives the profile's active chat session and creates a fresh one for the assistant.

## Path parameters

- `slug` string, required

## Request body

- object
  - `profile_id` string, uuid, required

## Response `201`

Chat session created successfully

- ChatSession
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `team_id` string, uuid, required
  - `profile_id` string, uuid, required
  - `title` string, nullable, required
  - `last_message_at` union, required
    - string, nullable
    - string
    - unknown
  - `created_at` union, required
    - string, nullable
    - string
    - unknown
  - `updated_at` union, required
    - string, nullable
    - string
    - unknown
  - `deleted_at` union, required
    - string, nullable
    - string
    - unknown

## Other responses

- `400`: Malformed request body
- `403`: Insufficient permissions for the profile
- `404`: Profile not found
- `409`: A reply is still streaming in the active chat session
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
