---
title: "Query Channel Inbox Events"
method: POST
path: "/channels/inbox/events/query"
tags: ["Channels"]
---

# Query Channel Inbox Events

`POST /channels/inbox/events/query`

## Request body

- ChannelInboxEventQueryRequest
  - `event` ChannelInboxEventQuery
    - `id` string, uuid, nullable
    - `connection_id` string, uuid, nullable
    - `space_id` string, uuid, nullable
    - `kind` 'message' | 'action' — The two kinds of thing an agent can be addressed by.
    - `origin` 'pulled' | 'pushed' — Who initiated the transfer — and therefore where the row sorts. Declared oldest-first: PULLED rows predate every PUSHED row, so `ORDER BY origin, id` is the log's true sequence.
    - `external_id` string, nullable
  - `windowing` Windowing
    - `newest` string, date-time, nullable
    - `oldest` string, date-time, nullable
    - `next` string, uuid, nullable
    - `limit` integer, nullable
    - `order` 'ascending' | 'descending', nullable
    - `interval` integer, nullable
    - `rate` number, nullable

## Response `200`

Successful Response

- ChannelInboxEventsResponse
  - `count` integer
  - `events` ChannelInboxEvent[]
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `id` string, uuid, nullable
    - `connection_id` string, uuid, required
    - `external_id` string, required
    - `kind` 'message' | 'action', required — The two kinds of thing an agent can be addressed by.
    - `origin` 'pulled' | 'pushed', required — Who initiated the transfer — and therefore where the row sorts. Declared oldest-first: PULLED rows predate every PUSHED row, so `ORDER BY origin, id` is the log's true sequence.
    - `space_id` string, uuid, nullable
    - `sent_at` string, date-time, nullable
    - `status` Status
      - `timestamp` string, date-time
      - `type` string, nullable
      - `code` string, nullable
      - `message` string, nullable
      - `stacktrace` string, nullable
    - `data` ChannelInboxEventData, required
      - `external_locator` object, required
      - `processed` ChannelInboxEventProcessed, required — What core reads. The adapter's normalisation of the platform's payload.
        - `content` object[], required
        - `sender` object, required
        - `sent_at` string, date-time, nullable
        - `message_ref` string, nullable
      - `space_kind` 'private' | 'group' | 'topic'
      - `addressed` boolean, nullable
    - `flags` ChannelInboxEventFlags
      - `is_consumed` boolean

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-25** `ec21cdc5486c` — 5 info
  - added the new optional request property `event/anyOf[subschema #1: ChannelInboxEventQuery]/id`
  - added the optional property `events/items/data/processed/message_ref` to the response with the `200` status
  - added the optional property `events/items/data/processed/sent_at` to the response with the `200` status
  - added the optional property `events/items/flags/is_consumed` to the response with the `200` status
  - …1 more
- **2026-09-24** `a28f1d059149` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/channels/inbox/events/query/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/72f2feba8ccb?raw)
