Agent webhook events

Events

agent.connected An agent has connected to the API
agent.lost An agent has been marked as lost. This happens when Buildkite stops receiving pings from the agent
agent.disconnected An agent has disconnected. This happens when the agent shuts down and disconnects from the API
agent.stopping An agent is stopping. This happens when an agent is instructed to stop from the API. It first transitions to stopping and finishes any current jobs
agent.stopped An agent has stopped. This happens when an agent is instructed to stop from the API. It can be graceful or forceful

Request body data

agent The Agent this notification relates to
sender The user who created the webhook

Example request body:

{
  "event": "agent.connected",
  "agent": {
    "...": "..."
  },
  "sender": {
    "id": "8a7693f8-dbae-4783-9137-84090fce9045",
    "name": "Some Person"
  }
}