---
title: "Query Channel Grants"
method: POST
path: "/channels/grants/query"
tags: ["Channels"]
---

# Query Channel Grants

`POST /channels/grants/query`

## Request body

- ChannelGrantQueryRequest
  - `grant` ChannelGrantQuery
    - `agent_id` string, uuid, nullable
    - `kind` 'private' | 'group' | 'topic'
    - `space_id` string, uuid, 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

- ChannelGrantsResponse
  - `count` integer
  - `grants` ChannelGrant[]
    - `flags` ChannelGrantFlags
      - `is_default` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `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
    - `agent_id` string, uuid, required
    - `effect` 'allow' | 'deny', required
    - `kind` 'private' | 'group' | 'topic'
    - `space_id` string, uuid, nullable
    - `data` ChannelGrantData, required
      - `policy` ChannelPolicy — What one level STATED. Every field optional; None means no opinion.
        - `triggers` ChannelTriggerKind[], nullable
        - `session_scope` 'thread' | 'message'
        - `backfill` boolean, nullable
        - `forwardfill` boolean, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `a28f1d059149` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/channels/grants/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)
