Skip to content

Tell a place it uses an old version

POST
/api/v1/insights/notices
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.

Media typeapplication/json
object
referrer

The host that still loads them, as Insights names it

string
>= 1 characters <= 253 characters
client

Or the agent’s key name, for an agent that said no referrer

string
>= 1 characters <= 200 characters
assets
required

The replaced versions it loads

Array<string>
>= 1 items <= 50 items
emails

Who else to tell: whoever looks after a site this server doesn’t know

Array<string>
<= 20 items
Examplegenerated
{
"referrer": "example",
"client": "example",
"assets": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"emails": [
"hello@example.com"
]
}

Who it reached, and what it told about

Media typeapplication/json
object
data
required
object
emailed
required

How many people it reached

integer
>= -9007199254740991 <= 9007199254740991
notified
required

The versions told about now; those told before are left out

Array<object>
object
asset
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
at
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
by
required
string
Examplegenerated
{
"data": {
"emailed": 1,
"notified": [
{
"asset": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"at": "2026-04-15T12:00:00Z",
"by": "example"
}
]
}
}

An error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}