const url = ' http://localhost:3000/api/v1/insights ' ;
const options = {method: ' GET ' , headers: {Authorization: ' Bearer <token> ' }} ;
const response = await fetch ( url , options );
const data = await response . json ();
--url http://localhost:3000/api/v1/insights \
--header ' Authorization: Bearer <token> '
What the project’s events say: brand answers per week, release adoption and who still loads a replaced version, the most fetched assets by surface, searches that found nothing, the use-check log (refusals by reason, what was offered and whether it was taken), delivery traffic and portal page views. Events never hold an IP address, a person’s name or a full URL, and never leave this server.
Scope: write.
Media type application/json
object object How far back the lists go
integer
>= -9007199254740991 <= 9007199254740991
How many weeks the weekly charts have, oldest first, quiet weeks at zero
integer
>= -9007199254740991 <= 9007199254740991
Brand answers per week, by who got them: files served, BrandHub files read, uses checked, searches that found something
Array<object>
object The Monday (UTC) the week starts, YYYY-MM-DD
string
integer
>= -9007199254740991 <= 9007199254740991
integer
>= -9007199254740991 <= 9007199254740991
integer
>= -9007199254740991 <= 9007199254740991
Fetches per week of a current version, and of one already replaced when it was fetched
Array<object>
object The Monday (UTC) the week starts, YYYY-MM-DD
string
integer
>= -9007199254740991 <= 9007199254740991
integer
>= -9007199254740991 <= 9007199254740991
Still on the old release: replaced versions fetched lately, by referrer and agent, most first
Array<object>
object object 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)$/
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Whether /a/{id} can make a picture of it
boolean
Any of:
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)$/
Any of:
object 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)$/
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Whether /a/{id} can make a picture of it
boolean
Any of:
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)$/
The host that loaded it; null when the request didn’t say
string | null
The agent’s key name that fetched it; null for a person or nobody in particular
string | null
integer
>= -9007199254740991 <= 9007199254740991
The first day it was fetched, within days
string
The last day it was fetched
string
People this server knows answer for the place (a site of this project’s admins, an agent’s person): who a notice reaches unasked
integer
>= -9007199254740991 <= 9007199254740991
Any of:
object 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)))$/
The ten most fetched assets, with their fetches by surface
Array<object>
object object 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)$/
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Whether /a/{id} can make a picture of it
boolean
Any of:
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)$/
integer
>= -9007199254740991 <= 9007199254740991
Fetches through each surface: app, api, mcp, portal, share, hub, link (a signed URL), public
object integer
>= -9007199254740991 <= 9007199254740991
Searches that found nothing, most asked first
Array<object>
object integer
>= -9007199254740991 <= 9007199254740991
The first day it found nothing, within days
string
Any of:
object 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)))$/
The use-check log: check_use and POST /api/v1/check answers
object integer
>= -9007199254740991 <= 9007199254740991
integer
>= -9007199254740991 <= 9007199254740991
Refusals by blocking reason, most first; one refusal can have several
Array<object>
object integer
>= -9007199254740991 <= 9007199254740991
The latest refusals, newest first
Array<object>
object 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)$/
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)))$/
object 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)$/
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Whether /a/{id} can make a picture of it
boolean
Any of:
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)$/
string
Allowed values: app api mcp portal share hub link public
The agent’s key name; null for a person or nobody in particular
string | null
Array<object>
object object 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)$/
Any of:
integer
>= -9007199254740991 <= 9007199254740991
Whether /a/{id} can make a picture of it
boolean
Any of:
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)$/
The same client fetched it, or checked it and was allowed, afterwards
boolean
What /a/{id} served in this project, per day
Array<object>
object integer
>= -9007199254740991 <= 9007199254740991
Portal pages read, most first
Array<object>
object object 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)$/
integer
>= -9007199254740991 <= 9007199254740991
Media type application/json