Skip to content

Monitor agent

List jobs

The agent's jobs, newest first.

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

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 parameters

kindstringone of compile, tick, chat, shadow_delete
Only jobs of this kind: compile (a plan), tick (a run), chat or shadow_delete.
limitintegerdefault 501 to 200
How many jobs to return.

Response

200

jobs[]object[]
The jobs, newest first, each as Get a job shows it.

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?