---
title: "Send a chat message"
method: POST
path: "/teams/{slug}/chat/sessions/{session_id}/messages"
tags: ["Teams"]
---

# Send a chat message

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

## 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/{session_id}/messages`
- Auth: HTTP bearer

Runs one assistant turn for the chat session and streams the reply as an AI SDK UI message stream.

## Path parameters

- `slug` string, required
- `session_id` string, uuid, required

## Request body

- union
  - object
    - `page_context` object, required
      - `pathname` string, required
      - `campaign_id` string, uuid
      - `article_id` string, uuid
      - `order_id` string, uuid
    - `client_tools` object[]
      - `name` 'add_to_cart' | 'remove_from_cart' | 'view_cart' | 'go_to_checkout' | 'create_order' | 'navigate_to' | 'create_campaign' | 'presscart_action' | 'upload_files' | 'run_plan', required
      - `input_schema` object, required
    - `message` object, required
      - `id` string, required
      - `content` string, required
      - `attachments` object[]
        - `file_id` string, uuid, required
  - object
    - `page_context` object, required
      - `pathname` string, required
      - `campaign_id` string, uuid
      - `article_id` string, uuid
      - `order_id` string, uuid
    - `client_tools` object[]
      - `name` 'add_to_cart' | 'remove_from_cart' | 'view_cart' | 'go_to_checkout' | 'create_order' | 'navigate_to' | 'create_campaign' | 'presscart_action' | 'upload_files' | 'run_plan', required
      - `input_schema` object, required
    - `tool_results` object[], required
      - `tool_call_id` string, required
      - `result` object, required
      - `claim_id` string, uuid

## Response `200`

AI SDK UI message stream (text/event-stream)

## Other responses

- `400`: Malformed request body
- `403`: Insufficient permissions for the chat session
- `404`: Chat session not found
- `409`: TURN_IN_PROGRESS includes Retry-After seconds; MESSAGE_SUPERSEDED does not require a retry delay
- `429`: Rate limit exceeded
- `503`: The assistant is not available

---

[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)
