Tell a place it uses an old version
const url = 'http://localhost:3000/api/v1/insights/notices';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"referrer":"example","client":"example","assets":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"emails":["hello@example.com"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/insights/notices \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "referrer": "example", "client": "example", "assets": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "emails": [ "hello@example.com" ] }'Email whoever answers for a place in Insights’ stale list (a host, or an agent’s key name) where the current versions are, at /c/ links that keep following them. It reaches the people this server knows answer for it (a site of this project’s admins, the person who connected the agent) and emails. Each version and place is told once: a second time is a 409. A 422 says why when nobody could be emailed.
Scope: write.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The host that still loads them, as Insights names it
Or the agent’s key name, for an agent that said no referrer
The replaced versions it loads
Who else to tell: whoever looks after a site this server doesn’t know
Examplegenerated
{ "referrer": "example", "client": "example", "assets": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "emails": [ "hello@example.com" ]}Responses
Section titled “Responses”Who it reached, and what it told about
object
object
How many people it reached
The versions told about now; those told before are left out
object
Examplegenerated
{ "data": { "emailed": 1, "notified": [ { "asset": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "at": "2026-04-15T12:00:00Z", "by": "example" } ] }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}