Skip to content

App Management

A todoke “app” is the management unit for Push notifications. One app corresponds to one service (website). Each app has its own independent VAPID key pair, subscribers, and API keys.

  1. Log in to the dashboard and click “Create New App”
  2. Enter an app name and click “Create”

A P-256 VAPID key pair is automatically generated upon creation. The private key is encrypted with AES-GCM and stored server-side, so only the public key is shown in the dashboard.

Use the value displayed in “VAPID Public Key” on the app detail screen in your frontend Service Worker implementation.

// Frontend: specify as applicationServerKey for Push subscription
const subscription = await registration.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: "BNfhTEO47qSR...", // value shown in the dashboard
});

The following statistics are available on the app detail screen. To retrieve them directly from the API, call GET /api/v1/apps/:id/stats (with a full scope key or a dashboard session).

ItemResponse field nameDescription
Active SubscribersactiveSubscribersNumber of currently valid Push subscriptions
Total SenttotalSentTotal number of notifications sent since app creation
FailedtotalFailedNumber of failed notifications (invalid subscriptions, errors, etc.)
This Month’s SendsmonthlySentNumber of sends in the current month (counted against plan limit)

The Free plan allows creating up to 1 app. Attempting to create a new app once the limit is reached returns 403 PLAN_LIMIT_EXCEEDED (with upgrade_url).

Deleting an app cascades to remove all associated API keys, subscribers, monthly usage, and notification logs.

See Error Codes and Limits for error code details.