Agent panels and chat
Send a chat message
Ask the agent a question, or ask it to change something. The response has the ID of the job that answers.
POST/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.
Request body
message- Your question, or the change to make.
panel_id- Ask about this panel. See List panels.
Response
202The agent answers in a job. Read the answer with List chat messages.
job_id- The ID of the job that answers. See Get a job.
message_id- The ID of your message.
Errors
| Status | Code | When |
|---|---|---|
400 | invalid_request | The message is blank. |
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, its agent or the panel is not in your key's project. |
409 | monitor_ended | The monitor has ended. What the agent found stays readable, but nothing can change. |
409 | budget_exhausted | Today's budget for this monitor is spent. It resets at midnight UTC. |
409 | job_in_progress | The agent is still working on the last request. Try again when it finishes. |
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.