SeleID

SelePush Notifications

SelePush Notifications

Early access. The API and console work today. Delivery to physical devices is still being verified, so test with your own devices before you rely on it.

Plans are provisional. The allowances and prices below are our starting numbers and will be re-measured against real usage. We will say so on the pricing page before anything changes.

What it is

SelePush Notifications registers the devices of your app's users and sends them notifications from your server, with one HTTPS call that can reach thousands of devices. Your app, your Firebase project: you bring your own Firebase key, and notifications go from SelePush straight to Google's Firebase Cloud Messaging with no middleman account in between. Every project's devices and sends are isolated from every other project.

  • Android today. Delivery to Android through Firebase Cloud Messaging. iOS (Apple's notification service) is planned and is not part of this version.
  • Safe to retry. Each send carries an idempotency key, so a retried request never notifies people twice.
  • Plan limits that stop. When your monthly allowance is used, sends are refused with 429 quota_exceeded. There is no surprise bill.
  • Tokens that clean themselves up. A device token that Firebase reports as no longer registered is removed automatically.

Quickstart

  1. In the developer console open SelePush Notifications and create an app (for example my-app).
  2. In Firebase open Project settings, Service accounts, and choose “Generate new private key”. Upload that file to your app in the console. It is checked with Google, stored encrypted and never shown again. Never put it inside your mobile app.
  3. Create a live API key with the write scope in the developer console. Keep it on your server only; never ship it in a mobile app.
  4. When a person signs in on a device, send that device's Firebase token to your server and register it.
  5. When something happens, send a notification to one or more of your own user IDs.

curl

export KEY=ssk_live_xxxxxxxxxxxxxxxxxxxxxxxx
export HOST=https://push.seleid.dev
export APP=my-app

# 1. Register a device for one of your users (the user ID is your own opaque ID)
curl -X POST "$HOST/v1/apps/$APP/tokens" -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"userId":"user_123","platform":"android","token":"<firebase device token>"}'

# 2. Send a notification to that user's devices
curl -X POST "$HOST/v1/apps/$APP/send" -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1042-shipped" \
  -d '{"userIds":["user_123"],"notification":{"title":"Order shipped","body":"It is on its way","data":{"orderId":"1042"}}}'

TypeScript

const host = 'https://push.seleid.dev';
const headers = { Authorization: `Bearer ${process.env.SELEPUSH_KEY}`, 'Content-Type': 'application/json' };

await fetch(`${host}/v1/apps/my-app/tokens`, { method: 'POST', headers, body: JSON.stringify({ userId: 'user_123', platform: 'android', token: deviceToken }) });

const res = await fetch(`${host}/v1/apps/my-app/send`, {
  method: 'POST',
  headers: { ...headers, 'Idempotency-Key': 'order-1042-shipped' },
  body: JSON.stringify({ userIds: ['user_123'], notification: { title: 'Order shipped', body: 'It is on its way', data: { orderId: '1042' } } }),
});
const { id, recipients } = await res.json(); // 202: accepted for delivery

Authentication

Send Authorization: Bearer <key>. A key belongs to one project and has scopes: read (look up a send, usage), write (register and remove devices, send) and admin, which includes both. Only live keys work; test keys and suspended projects are refused. We store only a hash of each key. Your project and app come from the key and the URL only: a request that names a project in its body is refused.

Endpoints

Method and pathScopeWhat it does
POST /v1/apps/{app}/tokenswriteRegister a device: {"userId","platform":"android","token"}. Answers 201 with the device id only. Registering the same token again moves it to the new user in that app.
DELETE /v1/apps/{app}/tokens/{id}writeRemove a device. 404 when it does not exist.
POST /v1/apps/{app}/sendwriteSend to the devices of up to 100 of your users: {"userIds":[...],"notification":{"title","body","data"}}. Needs an Idempotency-Key header. Answers 202 with {"id","recipients"} once the send is safely stored.
GET /v1/apps/{app}/sends/{id}readThe stored send: its id and recipient count. This is not a delivery receipt.
GET /v1/usagereadThis month's reserved attempts, provider acceptances and failures. Not metered.

One send reaches at most 5,000 devices; a notification is at most 3,500 bytes. data values must be strings. Reusing an idempotency key with the same request returns the original result; with a different request it answers 409 idempotency_conflict.

What "sent" means

A 202 means SelePush Notifications stored your send and will deliver it, retrying temporary failures up to four times. "Accepted" means Google's Firebase Cloud Messaging accepted the message; it does not prove the device displayed it, and a device that is off or has notifications disabled shows nothing. There are no per-device receipts or open tracking in this version.

Limits and your data

  • Up to 5 apps and 100,000 registered devices in a project. Registering past the device limit answers 429 device_limit_reached.
  • About 600 requests a minute for each project; above that requests answer 429 rate_limited. Wait a minute and retry.
  • We keep your user IDs and device tokens until you remove them or Firebase reports a token as no longer registered.
  • The text of a notification is kept with its send record for 30 days, then deleted. An idempotency key is remembered for the same time. Monthly usage totals are kept.
  • Do not put secrets or sensitive personal information in a notification: it passes through Google and can appear on a locked screen. You are responsible for having your users’ permission to notify them.

Plans and pricing

Provisional. Every allowance is a hard monthly stop. One attempt is one device a notification is sent to, counted when the send is accepted, including devices later removed and attempts that fail or are retried. You pay us nothing for Firebase: you use your own Firebase project and Google does not charge for Cloud Messaging.

PlanPriceMonthly allowance
Free$01M notification attempts a month, hard stop
Starter$10 a month50M notification attempts a month, hard stop
Pro$25 a month150M notification attempts a month, hard stop
EnterpriseContact salesHigher allowances, agreed in writing

Everyone starts on Free, and paid plans open when billing does. Segments, scheduling, delivery analytics and an overage rate are not part of this version.

Errors

Errors are JSON: {"error":{"code":"..."}}. Codes: invalid_api_key (401), insufficient_scope (403), tenant_disabled_or_wrong_environment (403), app_disabled (403), not_found (404), invalid_token and invalid_notification (400), idempotency_key_required (400), idempotency_conflict (409), firebase_key_missing (409, upload the app’s key first), device_limit_reached (429), audience_too_large and body_too_large (413), quota_exceeded (429), selepush_disabled and service_unavailable (503).

Last updated 2026-11-12Suggest an editReport a problem with this page