/api/v1/me/analytics/ai/askAsk your analytics (AI)
Answers a question about your own analytics with Claude Haiku 5.5, which picks from a fixed set of queries that Markdrop runs on the documents you own (totals, top links, a link's numbers, referrers, channels, devices, countries, views by day, period comparisons, file versions). Streams server-sent events: status (what it's checking), delta (answer text; reset: true clears what was shown), then done with answer and links (only analytics pages the queries returned); or limit, or error. The same question the same day is answered from the copy kept (cached: true) unless fresh is true. Counts towards your AI limits.
Guide: Insights and Ask
Code samples and Try itRequest body
#application/json, required
questionstringRequired1–500 characters.
rangestringOne of
7d,30d,90d,all. One of7d,30d,90d,all.freshbooleanDefault
false.
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.