API reference
20 endpoints across payments, Apple in-app purchase, push notifications and daily maintenance. Download the collection, import it into Postman, then paste your access token once and every request inherits it.
Base URL
https://enovo-91ef905e.base44.app
Auth
Create a personal access token on the app's Dashboard → API page, then set the collection's token variable.
Every call is a POST to /functions/<name> with a Bearer token. The Stripe webhook is the exception: Stripe calls it directly and it is verified by signature, not by token.
/functions/createCheckoutStarts a Stripe subscription checkout and returns the hosted URL.
{
"plan": "premium"
}plan is "premium" (monthly) or "clearpass" (yearly).
/functions/createPortalOpens the Stripe customer portal to manage or cancel a subscription.
/functions/syncBillingRe-reads the subscription from Stripe and updates the user record.
Query: session_id (optional)
/functions/initUserTrialGives a brand-new user the 7-day free trial. Does nothing if subscription data exists.
/functions/grantSubscriptioninternalManually puts a user on a paid plan.
{
"targetUserId": "USER_ID"
}/functions/clearUserSubscriptioninternalResets a user's subscription fields back to free.
{
"email": "user@example.com"
}/functions/clearBasicSubscriptioninternalOne-off debugging helper that resets a single hard-coded user.
/functions/stripeWebhooksignatureReceives Stripe events. Called by Stripe, verified by signature — not by token.
{
"id": "evt_...",
"type": "checkout.session.completed"
}The raw body must be unmodified or the signature check fails.
/functions/verifyAppleReceiptValidates an App Store receipt against Apple's servers.
{
"receiptData": "BASE64_RECEIPT",
"transactionId": "1000000123456789"
}/functions/syncAppleSubscriptionMirrors a completed App Store purchase onto the user record.
{
"productId": "plus_enovo_monthly",
"originalTransactionId": "1000000123456789",
"isTrial": true
}/functions/sendPushNotificationSends a push to one user by user id.
{
"target_user_id": "USER_ID",
"title": "Hello",
"message": "Your reminder",
"data": {}
}/functions/sendNotificationSends a push to a user alias with an optional deep link.
{
"userId": "USER_ID",
"title": "Daily check-in",
"message": "How did today go?",
"url": "/DailyReflection",
"data": {
"route": "/DailyReflection"
}
}/functions/scheduleNotificationQueues a push for a future time.
{
"userId": "USER_ID",
"title": "Task reminder",
"message": "Time to start",
"sendAtISO": "2026-11-04T08:00:00.000Z",
"url": "/Schedule",
"data": {
"taskId": "TASK_ID"
}
}/functions/cancelNotificationCancels a queued push.
{
"notificationId": "onesignal-notification-id"
}/functions/testPushNotificationSends a canned test push, useful for checking device setup.
{
"target_user_id": "USER_ID"
}/functions/registerDeviceTokenStores an APNs device token so the device can receive pushes.
{
"deviceToken": "apns-token",
"platform": "ios",
"appVersion": "1.0"
}/functions/checkAllUserNotificationsScans every user's reminders and sends whatever is due. Runs on a schedule.
/functions/dailyResetEnd-of-day rollover: refreshes daily tasks and scores.
/functions/syncLeaderboardRecomputes the 30-day leaderboard entries.
/functions/debugUserDatainternalReturns the current user's raw record for troubleshooting.