internal
Daemons
Provision a daemon, or re-provision an existing one
Creates a daemon record on the server before the daemon is installed, mints an API key bound to it 1:1, and returns ready-to-run install artifacts.
When daemon_id is supplied the existing record is reused instead of creating a new one — this both re-issues install artifacts after install config changes and gives a legacy daemon (one with no bound key) a pathway to a dedicated key without losing its host, discovery jobs, or history.
Returns the daemon record and an API key that must be configured on the daemon.
post/api/v1/daemons/provision
Request body
Response
Daemon provisioned successfully
Example response
{
"data": {
"daemon": {
"url": "https://daemon.example.com:60073",
"version": "0.17.7"
}
},
"meta": {
"api_version": 1,
"server_version": "0.17.7"
}
}