API reference / Analytics
List chart notes
The period's notes on the analytics chart, oldest first. They are what people and teammates wrote, and the commits that Troopy synced from the repo of the site. kind keeps only notes or only commits.
/api/v1/analytics/notesOther ways to call it
troopy analytics notes listtroopy_list_analytics_notesQuery parameters
periodenum<string>now is the last 10 minutes. 7d and 30d end today. 3m, 6m and 12m are whole months that end with this month. week starts on Monday. custom needs from and to
nowtodayyesterday24h7d30d3m6m12mweekmonthyearallcustom
Default "30d"
fromstringYYYY-MM-DD, in the workspace's time zone
date
tostringYYYY-MM-DD. The period includes this day
date
kindenum<string>allnotescommitsmentions
Default "all"
Response
200 · application/jsondata*array<object>6 properties
id*stringA 24-character id
text*stringat*stringISO 8601 date and time
author*object2 properties
type*enum<string>personagentapigithubxreddit
name*stringcommit*object | nullA commit that Troopy synced from GitHub. null for a note that someone wrote
6 properties
sha*stringrepo*stringbranch*stringurl*stringadditions*integerdeletions*integermention*object | nullFor a post on X or Reddit that named the site. null for the other notes
5 properties
platform*enum<string>xreddit
url*stringwhere*string | nullThe subreddit, for Reddit
score*integerLikes on X, upvotes on Reddit
comments*integer