Skip to content

Agent panels and chat

List chat messages

The latest chat messages, oldest first, with the panels each answer made.

GET/v1/monitors/{monitor_id}/agent/chat

Send your API key as Authorization: Bearer. See Authentication. How each option works: Monitors.

Path parameter

monitor_idstring
The ID of a monitor that has an agent.

Query parameter

limitintegerdefault 2001 to 200
How many messages to return.

Response

200

messages[]object[]
The latest messages, oldest first.
messages[].rolestring
Who wrote it: you or the agent.
messages[].textstring
The text of the message.
messages[].panel_ids[]string[]
The panels its answer made.

Errors

StatusCodeWhen
401unauthorizedThe API key is missing or not valid.
403forbiddenThe API key cannot read monitors (a GET) or change them (the other methods).
404not_foundThe monitor is not in your key's project, or it has no agent.
422invalid_requestA parameter or the body is not valid. error.param names it.
429rate_limitedYour key or account sent too many requests. Wait for the seconds in Retry-After, then try again.

What each error means and what to do: Errors.

Was this page helpful?