posthog.com icon indicating copy to clipboard operation
posthog.com copied to clipboard

Rate limit docs

Open rcmarron opened this issue 2 years ago • 4 comments

Changes

We're adding some rate limits to the API, this PR documents them

Checklist

rcmarron avatar Sep 26 '22 21:09 rcmarron

@rcmarron Could we clarify how exactly we enforce these (per personal key / per org / per IP/requester)?

camerondeleone avatar Sep 27 '22 15:09 camerondeleone

@rcmarron Could we clarify how exactly we enforce these (per personal key / per org / per IP/requester)?

Really good point - just updated the docs to reflect that it's on a per-team basis (and updated the code to be the same)

rcmarron avatar Sep 27 '22 16:09 rcmarron

Another random thought I'll drop here - would probably be good in the API docs themselves to explicitly call out what the rate limit is per-endpoint, because people on cloud shouldn't really need to know what hits clickhouse vs postgres (maybe one for you @pjhul )

camerondeleone avatar Sep 28 '22 12:09 camerondeleone

@pauldambra I'm getting these errors locally after hitting the @me endpoint changing settings a handful of times. I don't think we should enforce these limits that hard when you're using the interface (ie not through an api token)

timgl avatar Oct 03 '22 19:10 timgl