Fetch due certificate checks
GET
/api/v1/certificate-agent/tasks
const url = 'https://app.hostrepute.com/api/v1/certificate-agent/tasks?limit=25';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.hostrepute.com/api/v1/certificate-agent/tasks?limit=25'Get the certificate checks that are due for this agent, oldest first, and mark the agent online. Each check returned is reserved for this agent for 10 minutes, so it isn’t handed out twice; send its result with POST /api/v1/certificate-agent/tasks/{monitor_uuid}/result. An empty data list means nothing is due.
Authenticate with the agent’s token, Authorization: Bearer hrca_…, not a team API token.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
How many checks to return, from 1 to 100. Defaults to 25.
integer
How many checks to return, from 1 to 100. Defaults to 25.
Example
25Responses
Section titled “Responses”Media typeapplication/json
object
data
Array<object>
object
uuid
string
name
string
host
string
port
integer
protocol
string
sni
string
checks_all_resolved_ips
boolean
warning_thresholds
Array<integer>
last_checked_at
string
Example
{ "data": [ { "uuid": "01a178db-e1fb-708c-b49d-4d2e638817d7", "name": "Intranet", "host": "intranet.example.com", "port": 443, "protocol": "https", "sni": null, "checks_all_resolved_ips": true, "warning_thresholds": [ 60, 30, 14, 7, 1 ], "last_checked_at": "2026-10-25T15:37:18.000000Z" }, { "uuid": "01a178db-e204-7d3b-9a61-0c5e8f2b4d97", "name": "Internal SMTP relay", "host": "relay.corp.example.com", "port": 587, "protocol": "starttls_smtp", "sni": null, "checks_all_resolved_ips": true, "warning_thresholds": [ 60, 30, 14, 7, 1 ], "last_checked_at": null } ]}Missing or invalid agent token
Media typeapplication/json
object
message
string
Example
{ "message": "Invalid certificate agent token."}
