Report liveness, machine name, tools and versions. Answers with the supported protocol range and the agents assigned to THIS Runner. A Runner below the minimum protocol gets 426 with the one command that updates it.
POST
/api/v1/runner/v1/heartbeat
const url = 'https://example.com/api/v1/runner/v1/heartbeat';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"machine_name":"example","tools":[{"id":"example","name":"example","installed":true,"version":"example","logged_in":true,"capabilities":{"additionalProperty":"example"}}],"runner_version":"example","protocol_version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/runner/v1/heartbeat \ --header 'Content-Type: application/json' \ --data '{ "machine_name": "example", "tools": [ { "id": "example", "name": "example", "installed": true, "version": "example", "logged_in": true, "capabilities": { "additionalProperty": "example" } } ], "runner_version": "example", "protocol_version": 1 }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
machine_name
required
string
tools
required
Array<object>
object
id
required
string
name
string
installed
required
boolean
version
string
logged_in
boolean
capabilities
object
key
additional properties
runner_version
required
string
protocol_version
required
integer
Examplegenerated
{ "machine_name": "example", "tools": [ { "id": "example", "name": "example", "installed": true, "version": "example", "logged_in": true, "capabilities": { "additionalProperty": "example" } } ], "runner_version": "example", "protocol_version": 1}