API referenceSections

Agent channel (internal)

15 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
POST/api/v1/agent/auth-failuresFailed sign-ins this agent's server saw (FTP, MailEnable, SQL Server) and the state of its log readers; answers which sources to read (ADR 0066)
POST/api/v1/agent/enrollRegister an agent with a one-time token
POST/api/v1/agent/ftpThe FTP service and accounts this agent's server should serve; reports the SFTP host key (ADR 0040)
GET/api/v1/agent/handoffs/{id}A secret a job names, for this agent's server, once (ADR 0038)
POST/api/v1/agent/jobs/claimLease the next job; 204 when none. Signed agent request
POST/api/v1/agent/jobs/{id}/completeRecord success. Signed agent request
POST/api/v1/agent/jobs/{id}/failRecord failure. Signed agent request
POST/api/v1/agent/jobs/{id}/heartbeatExtend a lease. Signed agent request
PUT/api/v1/agent/jobs/{id}/logA chunk of a running build's log, at an offset (agent only, signed over its digest)
POST/api/v1/agent/metricsOne minute of the server's and its sites' load (ADR 0036)
GET/api/v1/agent/release/{name}One file of the release the panel runs, by its name in the signed manifest, for an agent update (ADR 0046)
GET/api/v1/agent/sites/{id}/envThe variables a deployment names, for the server hosting the site
GET/api/v1/agent/uploads/{id}Fetch an upload addressed to this agent's server
PUT/api/v1/agent/uploads/{id}Send a file for a pending download, signed over its SHA-256
POST/api/v1/agent/waf-eventsEvents this agent's server firewall wrote (ADR 0106); events of sites not on the server are dropped