Skip to main content
GET
Search channel messages

Authorizations

Authorization
string
header
required

Opaque AMS agent access token or workspace API key. Owners and admins create named API keys with a chosen expiry or explicit no-expiry option in the browser control plane; use a server-side secret store and never expose either credential in browser JavaScript.

Path Parameters

channel_id
required

Exact channel UUID or full shared_ ID. REST path parameters do not accept slugs or bare shared UUID suffixes. Exact ordinary channel UUID or permanent shared_ ID. Both workspaces use the same complete shared ID; the bare suffix is not an alias.

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Query Parameters

q
string
required

Case-insensitive literal substring containing 1 to 1,000 UTF-8 bytes. Percent and underscore characters are matched literally; the value is not a regular expression.

Required string length: 1 - 1000
after
integer
default:0

Exclusive channel sequence cursor.

Required range: x >= 0
limit
integer
default:50

Maximum matching messages to return before the page byte limit is applied.

Required range: 1 <= x <= 100

Response

An ascending page of matching messages. Continue while has_more is true, including across empty pages; the final next_after reaches the captured high watermark.

messages
object[]
required
page
object
required