RevenueCat API

Integrate with RevenueCat to manage cross-platform subscriptions. Sync your App Store products to RevenueCat and manage offerings.

Check if RevenueCat is configured and connected for a project. Returns apps and products.

GET /revenuecat/status

Authentication

Requires API key with Authorization: Bearer <api_key> header

URL Parameters

NameTypeRequiredDescription
projectIdstringYesThe project ID

Response Example

{
"configured": true,
"connected": true,
"apps": [
{
"id": "app_abc123",
"name": "My App (iOS)",
"type": "app_store",
"bundle_id": "com.example.myapp"
}
],
"products": [
{
"id": "prod_xyz",
"store_identifier": "com.app.premium_monthly",
"type": "subscription",
"display_name": "Premium Monthly"
}
]
}

Code Examples

curl "https://api.appstorecopilot.com/v1/revenuecat/status?projectId=proj_123" \
-H "Authorization: Bearer $ASC_API_KEY"

Create a new app in RevenueCat. Automatically uses your App Store Connect credentials.

POST /revenuecat/apps

Authentication

Requires API key with Authorization: Bearer <api_key> header

Request Body

NameTypeRequiredDescription
projectIdstringYesThe project ID
namestringYesApp name (e.g., "My App (iOS)")
typestringYesapp_store for iOS, play_store for Android
bundleIdstringNoiOS bundle identifier (required for app_store type)
packageNamestringNoAndroid package name (required for play_store type)

Response Example

{
"success": true,
"app": {
"id": "app_abc123",
"name": "My App (iOS)",
"type": "app_store",
"bundle_id": "com.example.myapp",
"created_at": "2024-01-15T10:30:00Z"
}
}

Code Examples

curl -X POST "https://api.appstorecopilot.com/v1/revenuecat/apps" \
-H "Authorization: Bearer $ASC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projectId": "proj_123",
"name": "My App (iOS)",
"type": "app_store",
"bundleId": "com.example.myapp"
}'

Sync your in-app purchases and subscriptions from App Store Copilot to RevenueCat.

POST /revenuecat/sync

Authentication

Requires API key with Authorization: Bearer <api_key> header

Request Body

NameTypeRequiredDescription
projectIdstringYesThe project ID
appIdstringYesRevenueCat app ID to sync products to
productIdsstring[]NoSpecific product IDs to sync (all if not specified)

Response Example

{
"success": true,
"created": ["com.app.premium_monthly", "com.app.premium_annual"],
"skipped": ["com.app.coins_100"],
"errors": [],
"summary": {
"total": 3,
"created": 2,
"skipped": 1,
"errors": 0
}
}

Code Examples

curl -X POST "https://api.appstorecopilot.com/v1/revenuecat/sync" \
-H "Authorization: Bearer $ASC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projectId": "proj_123",
"appId": "app_abc123"
}'

Test the RevenueCat API connection with provided credentials.

POST /revenuecat/test

Authentication

Requires API key with Authorization: Bearer <api_key> header

Request Body

NameTypeRequiredDescription
secretKeystringYesRevenueCat Secret API Key
projectIdstringYesRevenueCat Project ID

Response Example

{
"success": true,
"message": "Connection successful",
"appsCount": 2,
"productsCount": 5
}

Configuration

To use RevenueCat integration, add your credentials in Project Settings:

  1. Go to your project's Settings page
  2. Scroll to the "RevenueCat" section
  3. Enter your RevenueCat Secret API Key (starts with sk_)
  4. Enter your RevenueCat Project ID (starts with proj)
  5. Click "Test Connection" to verify
  6. Save your settings