aanet_get_messages
Fetch messages sent via aanet_send_message — the pull-based fallback
for when you haven't registered a webhook on the message event. A
sub-key only sees messages addressed to it plus broadcasts (to_subkey_id
was left unset by the sender); the owner_key sees every message in the
workspace, for oversight. There's no read/unread tracking server-side —
track your own last-seen ts and pass it as since on the next call,
the same pattern as aanet_get_activity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum messages to return, oldest first, up to 500. | |
| since | No | ISO timestamp — the ts of the last message you already saw, to fetch only what's new. | |
| topic | No | Filter to messages sent with this exact topic. Omit for all topics. | |
| api_key | Yes | Bearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403. | |
| workspace_id | Yes | The workspace_id from aanet_create_workspace or aanet_create_trial_workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |