Skip to content

CP-9334: Document API rate limits and the 429 response - #221

Merged
mattkepple merged 1 commit into
mainfrom
CP-9334-rate-limits
Nov 25, 2026
Merged

mattkepple merged 1 commit into
mainfrom
CP-9334-rate-limits

Conversation

@mattkepple

@mattkepple mattkepple commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Companion to the Rails hotfix for CP-9334: https://github.com/MakerbleDev/makerble/pull/18121.

API v2 now limits calls to 120 a minute per API key, OAuth token or person's token, and 300 a minute across all of one organisation's API keys and connected apps. This adds:

  • a Rate limits section to openapi.yaml's description and to the docs page (server.js, with a sidebar link): the limits, the X-RateLimit-* headers, the 429 body and Retry-After, and how to stay within the limits (space requests out, page with per_page up to 200 and last_synced_datetime);
  • a shared TooManyRequests response, used on GET /stories and GET /stories/{id}, the endpoints from the incident.

npm run check passes. The diff touches only openapi.yaml and the docs page content.

Release timing: the API docs are pre-launch, so this may be merged once reviewed. It's better merged when the Rails hotfix reaches production, so the limits aren't documented before they apply.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F1a5xoeFpaLsRStWALK74R

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xoeFpaLsRStWALK74R
@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 25, 2026 5:37pm UTC

@mattkepple
mattkepple marked this pull request as ready for review November 25, 2026 19:54
@mattkepple
mattkepple merged commit 4ae1b13 into main Nov 25, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — e7a42c1a Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants