Developer documentation

RevenueCat webhook handling and troubleshooting

Understand Spinning Falcon’s incoming RevenueCat webhook, Authorization checks, event processing and practical troubleshooting steps.

Incoming webhook contract

The workspace webhook accepts POST with a JSON RevenueCat event envelope and the workspaceId query parameter. The webhook secret configured for the workspace is checked against the Authorization bearer value. Use the exact URL and secret from setup.

This is an inbound RevenueCat integration, not a public outbound webhook product. There is no public outbound signing, replay or configurable outbound retry service.

POST YOUR_FUNCTIONS_BASE_URL/revenuecatWorkspaceWebhook?workspaceId=YOUR_WORKSPACE_ID
Authorization: Bearer YOUR_WEBHOOK_SECRET
Content-Type: application/json

{
  "event": {
    "id": "YOUR_TEST_EVENT_ID",
    "type": "BILLING_ISSUE",
    "app_user_id": "YOUR_TEST_USER_ID",
    "product_id": "YOUR_PRODUCT_ID"
  }
}

What happens after receipt

The runtime workspace handler records the incoming event, updates integration status and customer information, normalises the event type and evaluates matching active flows. Audience conditions and lifecycle rules determine which message steps are eligible.

Flow execution uses an event identity claim to prevent repeating the same flow for a duplicate event. This is not a blanket exactly-once guarantee across ingestion, metrics and every downstream provider. Verify repeated-delivery behaviour with a controlled test before relying on it for a high-volume workflow.

The legacy onboarding endpoint only records events and syncs customer data. Use the workspace runtime endpoint when you need flow execution.

Response codes

Use the response status and the workspace logs together. A successful HTTP response is not proof that every message was delivered.

  1. 200: processing completed, or activity was paused by a workspace allowance. Check the JSON body for paused: true and its message; paused activity does not execute a flow.
  2. 400: the workspace ID is missing.
  3. 401: the supplied webhook secret does not match the configured secret.
  4. 404: the workspace integration was not found.
  5. 405: the request method is not POST.
  6. 500: webhook processing failed; inspect the event and execution logs before retrying.

Troubleshoot a missing message

Start at receipt and follow the event through the flow. Repeatedly sending the same test event can be misleading because runtime execution is deduplicated.

  1. Confirm the workspace ID, endpoint and Authorization secret.
  2. Check the latest event time and raw/normalised type in Integrations.
  3. Check Billing & usage for a paused allowance, especially the Free tracked-user or app limit.
  4. Confirm the flow is active and the trigger matches the normalised event.
  5. Review audience conditions, rule branches and skipped-step reasons.
  6. Confirm the selected email template, push app/token or in-app placement exists.
  7. For in-app delivery, open the app and evaluate the relevant placement.
  8. Remove wait-dependent paths: runtime wait scheduling is not enabled.

Prepare your first growth workflow.

Start with your RevenueCat connection and one tested messaging channel.

Start free