Connect your app
- Register the device using the v2 authentication flow.
- Use the returned
user_idas the Adapty customer user ID. Use the same ID when identifying that user before a purchase or restore. Adapty user identification - Ask the Backapp team for the webhook URL and authorization value for your app and environment. The webhook runs on the assigned webhook host at
/api/webhooks/adapty?app=<app-slug>. Use the app slug from your configuration. - Configure both values in Adapty. Keep the webhook authorization value on the server and in Adapty’s integration settings. Test with a sandbox purchase before enabling production events. Adapty webhook setup · Sandbox testing
Read subscription status
Use the variables from the quickstart.
A user with no subscription record receives false for both boolean access flags, an empty product ID, and null for expiration and renewal. The device registration and token refresh responses include the same subscription summary.
Webhook delivery is asynchronous. If access still appears inactive after a sandbox purchase, check the Adapty delivery log, the app slug, and whether the event’s
customer_user_id matches the v2 UUID. Read /v2/me again after delivery. When testing the full integration, confirm the expected state in /v2/me as well as the webhook HTTP status.
The current image-effects endpoint runs independently of the reported subscription status. Treat subscription status and AI request authorization as separate checks in your integration.