/api/v1/me/documents/{slug}/analytics/ai/{kind}Analyse with AI
Claude Haiku 5.5 reads the numbers (and your own content) and returns 3 to 5 findings that point at a section, timestamp, page or version, with rewrites (content), chapters (media) and a verdict with a confidence Markdrop computes (versions). Returns the saved analysis when there is one; send {"refresh": true} to analyse again. Below 20 sessions the model isn't called (state: thin). Counts towards your AI limits: 429 with code: limit and a reason when one is reached.
Guide: AI insights for one link
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.kindstringRequiredOne of
content,media,pages,versions. One ofcontent,media,pages,versions.
Query parameters
#rangestringThe period to count:
7d,30d,90dorall. One of7d,30d,90d,all. One of7d,30d,90d,all. Default"30d".internalintegerFrom 0 to 1. Default
0.verintegerFrom 1 to 100,000.
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.