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_id- The ID of a monitor that has an agent.
Query parameter
limit- How many messages to return.
Response
200
messages[]- The latest messages, oldest first.
messages[].role- Who wrote it: you or the agent.
messages[].text- The text of the message.
messages[].panel_ids[]- The panels its answer made.
Errors
| Status | Code | When |
|---|---|---|
401 | unauthorized | The API key is missing or not valid. |
403 | forbidden | The API key cannot read monitors (a GET) or change them (the other methods). |
404 | not_found | The monitor is not in your key's project, or it has no agent. |
422 | invalid_request | A parameter or the body is not valid. error.param names it. |
429 | rate_limited | Your 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.