Skill: jeiting/revenuecat (version 1.0.3)

--- name: revenuecat description: RevenueCat metrics, customer data, and documentation search. Use when querying subscription analytics, MRR, churn, customers, or RevenueCat docs. license: MIT metadata: { "openclaw": { "emoji": "😻", "requires": { "bins": ["curl"], "env": ["RC_API_KEY"] }, "primaryEnv": "RC_API_KEY", }, } --- # RevenueCat Query RevenueCat metrics and search documentation. ## Config Set `RC_API_KEY` environment variable, which should be a v2 secret API key. ## Context Query the RevenueCat API (`GET /projects`) to get information about the project you have access to. Your RevenueCat API key allows access to a single project. Use the project ID in subsequent API calls. ## API Access ```bash {baseDir}/scripts/rc-api.sh <endpoint> ``` Example: `{baseDir}/scripts/rc-api.sh /projects` to list projects. ## Local API Reference Start with `{baseDir}/references/api-v2.md` for auth, pagination, and common patterns. Then load the domain file you need: | Domain | File | Covers | | ------------------ | ---------------------------------- | -------------------------------------------------------------------------------------------------------- | | Customers | `references/customers.md` | CRUD, attributes, aliases, entitlements, subscriptions, purchases, invoices, virtual currencies, actions | | Subscriptions | `references/subscriptions.md` | List, get, transactions, cancel, refund, management URL | | Products | `references/products.md` | CRUD, create in store, test prices | | Offerings | `references/offerings.md` | Offerings, packages, package products | | Entitlements | `references/entitlements.md` | CRUD, attach/detach products | | Purchases | `references/purchases.md` | List, get, refund, entitlements | | Projects | `references/projects.md` | Projects, apps, API keys, StoreKit config | | Metrics | `references/metrics.md` | Overview metrics, charts, chart options | | Paywalls | `references/paywalls.md` | Paywall creation | | Integrations | `references/integrations.md` | Integrations CRUD | | Virtual Currencies | `references/virtual-currencies.md` | Virtual currencies CRUD | | Error Handling | `references/error-handling.md` | Error handling | | Rate Limits | `references/rate-limits.md` | Rate limits | Only load the reference file relevant to the current task — don't load them all. ## Remote Documentation Search The RevenueCat documentation is available at https://www.revenuecat.com/docs. Use https://www.revenuecat.com/docs/llms.txt and /sitemap.xml as a guide to the content that is available. Add .md to the end of a documentation URL to get the markdown version of the page.

path: scripts/rc-api.sh
content: #!/usr/bin/env bash
# RevenueCat REST API v2 wrapper
# Requires: RC_API_KEY environment variable

set -euo pipefail

if [[ -z "${RC_API_KEY:-}" ]]; then
  echo "Error: RC_API_KEY not set" >&2
  exit 1
fi

if [[ $# -lt 1 ]]; then
  echo "Usage: rc-api.sh <endpoint>" >&2
  echo "Example: rc-api.sh /projects" >&2
  exit 1
fi

ENDPOINT="$1"
BASE_URL="https://api.revenuecat.com/v2"

curl -s -X GET "${BASE_URL}${ENDPOINT}" \
  -H "Authorization: Bearer ${RC_API_KEY}" \
  -H "Content-Type: application/json"


path: references/audit-logs.md
content: # Audit Log

Operations about audit logs.

## Endpoints

### GET /projects/{project_id}/audit_logs

List audit logs

- **Params:** project_id (path, required) — ID of the project (e.g., "proj1ab2c3d4")
- **Query:** starting_after (query, optional) — Cursor for pagination. Returns audit logs after the specified audit log ID, using descending order by audit log ID. (e.g., "log1ab2c3d4e5"), start_date (query, optional) — Start date for the data range (ISO 8601 format) (e.g., "2024-01-01"), end_date (query, optional) — End date for the data range (ISO 8601 format) (e.g., "2024-12-31"), limit (query, optional, default: 20) (e.g., 10)
- **Response:**
  - object: enum: list (required) — String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
  - items: array (required) — Details about each audit log.
  - next_page: string, nullable (required) — URL to access the next page of the project's audit logs. If not present / null, there is no next page. (e.g., "/v2/projects/proj1ab2c3d4/audit_logs?starting_after=log1ab2c3d4e5")
  - url: string (required) — The URL where this list can be accessed. (e.g., "/v2/projects/proj1ab2c3d4/audit_logs")
- **Status:** public


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: suspicious | SkillSpector: suspicious (CRITICAL)