revenuecat/ai-toolkit/rc-revenuecat-api-quick-reference
Claude Code and agent skill by revenuecat/ai-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Use this skill as a quick reference for the RevenueCat Android SDK 11.x and REST API. Covers SDK init, common Purchases calls, CustomerInfo / Offerings access patterns, and the most used REST endpoints.
Install
npx vskill@latest install revenuecat/ai-toolkit/rc-revenuecat-api-quick-referenceSKILL.md
The same SKILL.md was published earlier as revenuecat/ai-toolkit/rc-revenuecat-api-quick-reference.
RevenueCat API Quick Reference
Phase 0: Intent
Use this skill when you need a fast lookup of a RevenueCat API surface while writing Android code or server logic. Typical questions you answer from here:
- Which builder option controls a given
Purchases.configurebehavior? - What is the return type and signature of
awaitPurchase,awaitOfferings,awaitCustomerInfo,awaitRestore,awaitLogIn,awaitLogOut? - How do I read offering, package, product, entitlement fields?
- Which
PurchasesErrorCodeshould I branch on? - Which listener callback do I register for customer info updates?
Do not use this skill as a deep tutorial. Reach for the feature-specific skills (purchase flow, configuring the SDK, error handling, subscription states) when you need step-by-step guidance or design rationale.
Phase 1: Locate
Decide SDK surface vs REST surface before you search the tables.
Route to the SDK (client side, Android app code):
- Code runs inside the Android app, in an
Activity,ViewModel, or background worker bundled with your app. - You need to launch a purchase, restore purchases, read cached
CustomerInfo, fetchOfferings, identify or log out a user, or listen for updates. - You want entitlement gating in the UI.
Route to the REST API (server side):
- Code runs on your backend, in a webhook handler, in an admin tool, or in a scheduled job.
- You need to grant or revoke a promotional entitlement, override a subscription, look up a subscriber from another service, refund, or deliver events to another system.
- You are integrating with a system that cannot embed the SDK.
The tables in this skill cover the Android SDK 11.x surface from appendix A (the same calls compile against 10.27.1), plus a short REST endpoint index. For full REST paths, authentication, and payloads, see the full appendix on revenuecat.com together with the backend and webhooks skills, and treat this file as the SDK index.
Phase 2: Reference Tables
SDK Initialization
Core Operations (Coroutine)
Offerings Structure
Entitlements
Error Handling
Listeners
Most Used REST Endpoints
All with Authorization: Bearer <secret key> from your backend only, never the client.
| Endpoint | Use | |
|---|---|---|
GET /v1/subscribers/{app_user_id} | Read a subscriber | |
POST /v1/subscribers/{app_user_id}/entitlements/{entitlement_id}/promotional | Grant promotional access (end_time_ms) | |
POST /v1/subscribers/{app_user_id}/entitlements/{entitlement_id}/revoke_promotionals | Revoke promotional access | |
POST /v1/subscribers/{app_user_id}/attributes | Set subscriber attributes | |
POST /v1/subscribers/{app_user_id}/subscriptions/{product_identifier}/defer | Defer a Google Play subscription | |
POST /v1/subscribers/{app_user_id}/subscriptions/{product_identifier}/revoke | Refund and revoke a Google Play subscription | |
POST /v1/subscribers/{app_user_id}/transactions/{store_transaction_identifier}/refund | Refund and revoke a Google Play purchase (subscription or one time, last 365 days) |
See rc-backend and rc-webhooks for request and response payloads.
Phase 3: Typical Snippets
Gate a feature on an entitlement.
Buy the monthly package from the current offering.
Handle cancel vs real failure.
Force a fresh CustomerInfo fetch after a server side grant.
Log in an identified user and detect first login.
React to background entitlement changes.
References
- Related skills in this repo: rc-configuring-the-sdk, rc-purchase-flow, rc-error-handling, rc-subscription-states, rc-backend, rc-webhooks.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrevenuecat-play-billing/skills/rc-revenuecat-api-quick-reference/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 9
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/revenuecat/ai-toolkit/rc-revenuecat-api-quick-reference)