---
title: "Bot Ingest Route"
method: POST
path: "/api/v1/bot/ingest"
tags: ["bot"]
---

# Bot Ingest Route

`POST /api/v1/bot/ingest`

Channel-memory ingestion. Stores messages ONLY for channels connected to a
workspace (same channel-scoping rule as /answer): an unconnected channel stores
nothing and returns connected=false so the bot can stop sending for a while.

Also the reply-trigger signal: bot_thread=true means at least one ingested
human message replies/threads onto a bot-authored message, so the bot process
should follow up via /answer (whose own rate limit throttles replies).

## Query parameters

- `provider` string, required
- `platform_user_id` string, required
- `channel_id` string, required

## Request body

- BotIngestRequest
  - `messages` BotIngestMessage[], required
    - `platform_message_id` string, required
    - `thread_id` string, nullable
    - `referenced_message_id` string, nullable
    - `author_id` string, required
    - `author_name` string, nullable
    - `is_bot` boolean
    - `is_self` boolean
    - `text` string, required
    - `sent_at` string, date-time, nullable

## Response `200`

Successful Response

- EnvelopeBotIngestResult
  - `data` BotIngestResult, required
    - `stored` integer
    - `connected` boolean
    - `bot_thread` boolean
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `6bd3ca9033ae` — 2 info
  - the `meta` response's property default value changed from `{"request_id":"","timestamp":"2026-09-01T18:59:27.102736"}` to `{"request_id":"","timestamp":"2026-09-02T16:58:28.431377"}` for the status `200`
  - the `timestamp` response's property default value changed from `2026-09-01T18:59:27.102736` to `2026-09-02T16:58:28.431377` for the status `200`

[Change history](https://skmtc.dev/minro/apis/minro-cs-platform/changes/api/v1/bot/ingest/post.md)

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/6bd3ca9033ae/schema)
