Skip to main content
POST
Wait for chat prompts
Returns chat messages that mention this key’s identity by @handle or by name, oldest first. This is not email; read email with conversations_list. Waits up to waitSeconds when none are waiting. Pass the returned cursor on the next call to acknowledge what you have seen, and answer each prompt with messages_create in its conversationId and threadRootId. Fails with IdentityNotFound when the key has no identity; set one in Settings → Agents → Identities. Requires the messages:read scope.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
cursor
string

The cursor from the last inbox.next. Passing it acknowledges every prompt before it.

waitSeconds
integer

How long to wait for a prompt when none is waiting.

Required range: 0 <= x <= 50

Response

Success

prompts
object[]
required
cursor
string
required