API reference

Enovo API in Postman.

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.

Import in Postman → File → Import

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.

Payments (Stripe)

POST/functions/createCheckout

Starts a Stripe subscription checkout and returns the hosted URL.

{
  "plan": "premium"
}

plan is "premium" (monthly) or "clearpass" (yearly).

POST/functions/createPortal

Opens the Stripe customer portal to manage or cancel a subscription.

POST/functions/syncBilling

Re-reads the subscription from Stripe and updates the user record.

Query: session_id (optional)

POST/functions/initUserTrial

Gives a brand-new user the 7-day free trial. Does nothing if subscription data exists.

POST/functions/grantSubscriptioninternal

Manually puts a user on a paid plan.

{
  "targetUserId": "USER_ID"
}
POST/functions/clearUserSubscriptioninternal

Resets a user's subscription fields back to free.

{
  "email": "user@example.com"
}
POST/functions/clearBasicSubscriptioninternal

One-off debugging helper that resets a single hard-coded user.

POST/functions/stripeWebhooksignature

Receives 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.

Apple In-App Purchase

POST/functions/verifyAppleReceipt

Validates an App Store receipt against Apple's servers.

{
  "receiptData": "BASE64_RECEIPT",
  "transactionId": "1000000123456789"
}
POST/functions/syncAppleSubscription

Mirrors a completed App Store purchase onto the user record.

{
  "productId": "plus_enovo_monthly",
  "originalTransactionId": "1000000123456789",
  "isTrial": true
}

Push notifications

POST/functions/sendPushNotification

Sends a push to one user by user id.

{
  "target_user_id": "USER_ID",
  "title": "Hello",
  "message": "Your reminder",
  "data": {}
}
POST/functions/sendNotification

Sends 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"
  }
}
POST/functions/scheduleNotification

Queues 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"
  }
}
POST/functions/cancelNotification

Cancels a queued push.

{
  "notificationId": "onesignal-notification-id"
}
POST/functions/testPushNotification

Sends a canned test push, useful for checking device setup.

{
  "target_user_id": "USER_ID"
}
POST/functions/registerDeviceToken

Stores an APNs device token so the device can receive pushes.

{
  "deviceToken": "apns-token",
  "platform": "ios",
  "appVersion": "1.0"
}
POST/functions/checkAllUserNotifications

Scans every user's reminders and sends whatever is due. Runs on a schedule.

App system

POST/functions/dailyReset

End-of-day rollover: refreshes daily tasks and scores.

POST/functions/syncLeaderboard

Recomputes the 30-day leaderboard entries.

POST/functions/debugUserDatainternal

Returns the current user's raw record for troubleshooting.

Enovo · API reference · keep the download out of public repos