Skip to content

Fetch due certificate checks

GET
/api/v1/certificate-agent/tasks
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.

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

25
Media typeapplication/json
object
data
Array<object>
object
uuid
string
name
string
host
string
port
integer
protocol
string
sni
string
nullable
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."
}