Early access · launching soon. Request access

Early access

Early access · launching soon
Product
IntelligenceEarly access. Designed and in development. No results yet. See what's left on the roadmap.
Developers
Resources
Request access

A person reads every request.

Developers · REST API

Push notification REST API

Create, schedule, read, list and cancel messages from your own server, and estimate an audience before you send. One API key per app. Messages you create here appear in the dashboard exactly like messages your team writes there.

Base: https://<your-api-host>/api/v1JSON over HTTPSAuthorization: Bearer <ORICATO_API_KEY>

Last updated · Ask the docs, or a person

basehttps://<your-api-host>/api/v1

  • GET/api/v1/meThe project and key you're authenticated as.
  • POST/api/v1/messagesCreate a message and schedule it, or save it as a draft.
  • GET/api/v1/messagesList messages, newest first, filtered by status.
  • GET/api/v1/messages/{message_id}Read one message, with totals and progress.
  • POST/api/v1/messages/{message_id}/cancelCancel a message that hasn't finished.
  • POST/api/v1/audience/estimateCount who a filter would reach, before you send.

01 #keys

Address and keys

Your base URL is your account's API address plus /api/v1. Create a key per app under Project settings › API keys. The key decides the project, so REST paths never carry a project ID.

  • Send it as Authorization: Bearer <ORICATO_API_KEY>. Key <ORICATO_API_KEY> and Basic <ORICATO_API_KEY> (the raw key, not base64) work too.
  • The secret is 44 characters. It is shown once, stored only as a hash, and can be revoked at once.
  • Each key has a daily quota of messages it may create, 500 by default, adjustable from 1 to 100,000.
  • Keys can never override the daily limit per person.

Keep keys on your servers. Never put one in an app or a web page.

Fig. 01A key, shown once Sample data. Illustrative numbers, not from a real app.

New API key

Name
Scheduler
Prefix
AbC12xYz9Q1d
Quota
500 messages a day
AbC12xYz9Q1d••••••••••••••••••••••••••••••••

You won't see this key again.

The New API key result in the dashboard: name Scheduler, prefix AbC12xYz9Q1d, quota 500 messages a day, the full secret in a field with a Copy button, and the line “You won't see this key again.”

02 #endpoints

Endpoints

Method and pathWhat it does
GET /api/v1/meThe project and key you're authenticated as.
POST /api/v1/messagesCreate a message and schedule it, or save it as a draft.
GET /api/v1/messagesList messages, newest first, filtered by status.
GET /api/v1/messages/{message_id}Read one message, with totals and progress.
POST /api/v1/messages/{message_id}/cancelCancel a message that hasn't finished.
POST /api/v1/audience/estimateCount who a filter would reach, before you send.

The OneSignal-compatible endpoints live under the same base URL: /api/v1/notifications.

03 #create

Create a message

Send a message object. With "draft": false, the default, it is checked and scheduled at once. Add an Idempotency-Key header so a retry never sends twice.

The response is 201 with the full message. Repeat the same request with the same key and you get 200 and the original message, not a second send.

stridewell:// works only after you add it under Project settings › Allowed link schemes.

Fig. 02Request and response Sample data. Illustrative numbers, not from a real app.

Request

cURL

POST /api/v1/messages

curl https://<your-api-host>/api/v1/messages \
  -H "Authorization: Bearer <ORICATO_API_KEY>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: weekly-summary-2027-01-10" \
  -d '{
    "name": "Weekly summary",
    "content": {
      "default_language": "en",
      "translations": [
        { "language": "en", "title": "Your week", "body": "Three workouts done. See your progress." },
        { "language": "es", "title": "Tu semana", "body": "Tres entrenamientos completados. Mira tu progreso." },
        { "language": "de", "title": "Deine Woche", "body": "Drei Workouts geschafft. Sieh dir deinen Fortschritt an." },
        { "language": "ja", "title": "今週のまとめ", "body": "ワークアウトを3回達成。進捗を見てみましょう。" }
      ],
      "launch_url": "stridewell://progress"
    },
    "audience": { "last_active_within_days": 30 },
    "schedule": { "mode": "local_time", "local_time": "18:30", "start_date": "2027-01-10" }
  }'

Response · 201

JSON

Sample data

{
  "id": "0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10",
  "status": "scheduled",
  "source": "api",
  "created_by": { "label": "Scheduler" },
  "audience_estimate": 41206,
  "schedule": {
    "mode": "local_time",
    "local_time": "18:30",
    "start_date": "2027-01-10"
  }
}

04 #schedule

When it sends

ModeMeaning
nowAs soon as it's created.
at_time + send_atOne moment for everyone, up to 365 days ahead.
local_time + local_time + start_dateAt that local time on that calendar date, in every subscriber's own time zone. A Friday message arrives on Friday everywhere.
local_time + local_time + starts_atAt the first occurrence of that local time at or after the given instant, in each person's zone. This is OneSignal's "timezone" delivery.

With start_date, people whose local time has already passed when you schedule get it at their next local time, or not at all with "missed_zones": "skip". A local-time message is split into groups of time zones that reach the hour together, about 40 for a whole-world audience, including half-hour zones and daylight saving time.

How local-time sending works

Fig. 03One local time, many send times Sample data. Illustrative numbers, not from a real app.

local_time 18:30start_date 2027-01-10each tick is one time-zone group, on a UTC clock

  1. 1 Auckland UTC+13 05:30 UTC · Jan 10
  2. 2 Tokyo · Seoul UTC+9 09:30 UTC · Jan 10
  3. 3 Mumbai · Delhi UTC+5:30 · +5:30, its own group 13:00 UTC · Jan 10
  4. 4 Berlin · Paris UTC+1 17:30 UTC · Jan 10
  5. 5 London UTC±0 18:30 UTC · Jan 10
  6. 6 São Paulo UTC−3 21:30 UTC · Jan 10
  7. 7 New York UTC−5 23:30 UTC · Jan 10
  8. 8 Mexico City UTC−6 00:30 UTC · Jan 11
  9. 9 San Francisco UTC−8 02:30 UTC · Jan 11

An 18:30 local-time message for 2027-01-10 fires once per time-zone group. In UTC: Auckland at 05:30 UTC · Jan 10; Tokyo and Seoul at 09:30 UTC · Jan 10; Mumbai and Delhi at 13:00 UTC · Jan 10; Berlin and Paris at 17:30 UTC · Jan 10; London at 18:30 UTC · Jan 10; São Paulo at 21:30 UTC · Jan 10; New York at 23:30 UTC · Jan 10; Mexico City at 00:30 UTC · Jan 11; San Francisco at 02:30 UTC · Jan 11.

05 #audience

Who gets it

All filters are optional and combine with AND. An empty audience means everyone subscribed on the message's platforms.

FieldRule
include_countries / exclude_countriesISO 3166 alpha-2 codes.
include_languages / exclude_languagesLanguage codes, normalized by the server.
app_version_min / app_version_maxInclusive. Subscribers without an app version never match a version filter.
last_active_within_daysUsed the app in the last N days.
inactive_for_more_than_daysHaven't used it for more than N days.
first_seen_within_daysNew in the last N days, for onboarding.
tagsUp to 20, each eq, neq, exists or not_exists.
engagement_levelsAny of champion, active, light, sleeping, new, computed nightly.
external_user_ids or subscription_idsUp to 10,000, one of the two per message.
test_onlyOnly devices you marked as test devices.

06 #content

What's in a message

FieldRule
content.default_languageRequired; must have a translation.
content.translations[]1 to 60, one per language: title, subtitle (iOS), body (required, up to 2,000 characters).
content.image_urlAn HTTPS image.
content.launch_urlWhere a tap leads: https, http, or an app scheme you allowed.
content.additional_dataUp to 50 string pairs for your app.
category_idOne of your project's categories, for reports.
android.*Channel, small icon, accent color, sound, priority, visibility, group.
ios.*Sound, badge (none, set, increase), interruption level (passive, active, time-sensitive, critical), thread.
ttl_seconds0 to 28 days. Default 4 hours for local-time messages, 1 day otherwise.
collapse_keyA newer message with the same key replaces the older one.

Each person gets the translation for their language. If there isn't one, Traditional and Simplified Chinese stand in for each other, and then the default language is used. Every translation must fit the platform's size limit, which the server checks before anything is sent.

The android.* and ios.* rows are the mobile push options. Everything above them is shared by every channel.

07 #channels

One message, three channels

A message you create here can go to mobile push, web push and email. The translations, the audience and the schedule are shared, so a 6:30 PM local-time message reaches a phone, a browser and an inbox at the same local hour, in the same language. Each channel renders the content in its own form.

  • Web push. Browsers register through the web SDK, the way phones register through the mobile SDKs, and their numbers appear in the same message report.
  • Email. Email goes only to addresses your server added, through this API or a CSV import, and only to addresses that haven't unsubscribed, bounced or complained. It is sent from your authenticated sending domain, with one-click unsubscribe headers on every message.
  • Addresses are personal data. Add them only from your server, with a key that never leaves it. The SDKs never collect an address.

Email from your serverWeb push SDK

08 #read

Read, list and cancel

  • GET /api/v1/messages/{id} returns the message with its totals and progress. Another project's message answers 404.
  • GET /api/v1/messages?status=scheduled&limit=50 lists messages newest first, with a next_cursor.
  • POST /api/v1/messages/{id}/cancel stops a message that is scheduled or still sending. Pending time-zone groups are canceled at once; a batch already in flight finishes its current attempt. Anything else answers 409 invalid_state.

09 #estimate

Estimate an audience

Send platforms and an audience and get a count before you schedule anything. Countries, languages and platforms are answered from live counters; other filters run a database count.

cURL
curl https://<your-api-host>/api/v1/audience/estimate \
  -H "Authorization: Bearer <ORICATO_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{ "platforms": ["android", "ios"], "audience": { "include_countries": ["US", "MX", "ES"] } }'

10 #errors

Errors that name the field

Every error has the same envelope: a machine code, a plain-English message you can show an admin, details, and a request ID for support.

JSON
{
  "error": {
    "code": "validation_failed",
    "message": "Some fields need your attention.",
    "details": {
      "fields": [
        { "field": "content.translations[1].body", "code": "required", "message": "Body is required." }
      ]
    },
    "request_id": "0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10"
  }
}
Status and codeWhat to do
400 validation_failedFix the fields listed in details.fields.
401 unauthorizedThe key is missing, wrong or revoked.
403 project_archivedThe key's app was archived.
409 daily_cap_exceededSomeone would get more than the daily limit on one local day. Details name the cap, the date and the time zones.
409 credentials_missing / credentials_invalidUpload a working Firebase key first.
409 idempotency_conflictYou reused an idempotency key with a different body.
422 payload_too_largeA translation builds a push over 4,000 bytes on Android or 3,800 on iOS.
429 rate_limited / key_quota_exceededWait for Retry-After, or raise the key's daily quota.
503 service_unavailableRetry after Retry-After.

11 #pagination

Pagination and retrying safely

  • Lists take limit (1 to 200, default 50) and an opaque cursor. next_cursor is null on the last page. A cursor used with different filters is refused.
  • Idempotency-Key takes 1 to 128 printable characters. For 30 days, the same key with the same body returns the original message; a different body answers 409.

12 #limits

Limits

LimitValue
Requests per key20 a second, bursts of 40
Creates per key5 a second, bursts of 20
Messages per key per day (UTC)500 by default, 1 to 100,000
Failed key attempts per network30 a minute, then 429
Request body1 MiB
Translations per message60
Payload per translation4,000 bytes on Android, 3,800 on iOS
Time to live0 to 2,419,200 seconds (28 days)
Tags in an audience20
IDs in one audience10,000

Early access · launching soon

Point your scheduler at your own account.

Request access and we'll set up your dedicated account with you. If your scheduler calls OneSignal today, founding teams get free help pointing it here, and every founding team gets early access and a founding discount.

We use this to reply, plan your invitation and set up your account. Privacy Policy

A person reads every request.

Or get the monthly newsletter