docs: add subscription status endpoint to API documentation#151
docs: add subscription status endpoint to API documentation#151ahmednahima0-beep wants to merge 1 commit intorecoupable:mainfrom
Conversation
- Updated the OpenAPI specification to include a new endpoint `/api/subscription/status` for checking the active pro subscription status of an account. - Added detailed descriptions for request parameters, response schemas, and error handling for various scenarios (200, 400, 401, 403). - Updated navigation in `docs.json` to include the new endpoint in the Subscriptions group.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 28 minutes and 44 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
/api/subscription/statusfor checking the active pro subscription status of an account.docs.jsonto include the new endpoint in the Subscriptions group.Summary by cubic
Added API docs for a new endpoint that returns whether an account has an active pro subscription. This adds
GET /api/subscription/statusto the OpenAPI spec and navigation.GET /api/subscription/statusto OpenAPI; returns{ isPro: boolean }by checking direct and org-level subscriptions.accountIdquery param, authentication (apiKeyAuthorbearerAuth), and responses for 200/400/401/403.api-reference/subscriptions/status.mdxand updateddocs.jsonto list the endpoint under Subscriptions.Written for commit 2158fd9. Summary will update on new commits.