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 · Moving from OneSignal

The OneSignal-compatible API endpoint

If your server sends through OneSignal's REST API today, it can send through Oricato with three changes: the address, the key and the app ID. POST /api/v1/notifications accepts the create-notification fields most schedulers use and answers in OneSignal's shapes, so the code that reads responses doesn't change either.

This moves your sending. Your apps still need the Oricato SDK to register devices, which they get in their next release.

Fig. 01The whole change on your server
Removed: POST https://onesignal.com/api/v1/notificationsAdded: POST https://<your-api-host>/api/v1/notificationsRemoved: Authorization: Basic <ONESIGNAL_REST_API_KEY>Added: Authorization: Bearer <ORICATO_API_KEY>Removed: "app_id": "<ONESIGNAL_APP_ID>"Added: "app_id": "<ORICATO_PROJECT_ID>"

Three changed lines: the OneSignal address becomes your Oricato account's address, the OneSignal REST API key becomes an Oricato API key, and the OneSignal app ID becomes your Oricato project ID.

01

Three endpoints

Method and pathWhat it does
POST /api/v1/notificationsCreate and schedule a notification.
GET /api/v1/notifications/{id}?app_id=…Read its delivery numbers, in OneSignal's shape.
DELETE /api/v1/notifications/{id}?app_id=…Cancel it if it hasn't been sent.

02 #auth

Keys and app ID

Use an Oricato API key where your OneSignal REST API key was. Every form your scheduler may send works: Authorization: Key <ORICATO_API_KEY>, Basic <ORICATO_API_KEY> or Bearer <ORICATO_API_KEY>, with the raw key, not base64. app_id is your Oricato project ID and must belong to the key.

One key per app. Create it under Project settings › API keys; it's shown once.

03 #fields

What carries over

These fields are mapped exactly. Anything else is ignored and named in the response's warnings, so nothing disappears silently.

FieldTypeIn Oricato
app_iduuidRequired. Your Oricato project ID; must match the key.
headings{lang: text}Titles per language.
contents{lang: text}Required. The text per language. Codes are normalized: pt-BR becomes pt, zh-Hans becomes zh-hans.
subtitle{lang: text}iOS subtitles per language.
namestringThe message name your team sees, up to 200 characters.
included_segmentsstring[]All, Subscribed Users, Total Subscriptions, Active Users, Engaged Users, Test Users. See #segments.
include_subscription_idsstring[]Oricato subscription IDs. Also accepted as include_player_ids.
include_external_user_idsstring[]Your own user IDs. Also accepted as include_aliases.external_id.
filtersobject[]Country, language and tag filters. See #filters.
send_afterstringWhen to start. See #send-after. Absent means now.
delayed_optionstringtimezone sends at each person's local time, with delivery_time_of_day.
delivery_time_of_daystring9:00AM, 9:00 AM, 09:00, 21:45 or 9AM.
dataobjectExtra data for your app. Values that aren't text become JSON text (3 becomes "3").
url / app_urlstringWhere a tap leads; app_url wins. The scheme must be https, http or an app scheme you allowed.
big_picturestringThe image. ios_attachments is used when there's no big_picture.
android_channel_idstringUsed if that channel exists in the project; otherwise ignored with a warning.
priorityint7 or more means high priority on Android.
ttlsecondsUp to 28 days. Defaults: 4 hours for timezone sends, 24 hours otherwise.
isAndroid / isIosboolfalse leaves that platform out.
small_iconstringAn Android drawable name.
ios_soundstringThe iOS sound.
ios_badgeType / ios_badgeCountstring / intNone, SetTo or Increase.
collapse_idstringA newer message with the same ID replaces the older one.
idempotency_key / external_idstringA repeat within 30 days returns the first message instead of sending twice.

Default language: your project's default if it's in contents, else English if present, else the first key in sorted order.

04 #segments

How segments map

OneSignal segmentIn Oricato
All · Subscribed Users · Total SubscriptionsEveryone subscribed: notifications allowed, switched on in the app, not uninstalled.
Active UsersPeople who used the app in the last 7 days.
Engaged UsersPeople who used the app in the last day.
Test UsersOnly the devices you marked as test devices. Combined with anything else, it's refused.

One targeting method per request, as at OneSignal: segments, filters, or one ID list. Any other segment name is refused with "Segment '…' is not supported". Build that audience with filters or in the dashboard instead.

05 #filters

Filters, mapped only when exact

Entries combine with AND, and {"operator": "OR"} splits them into groups, as at OneSignal. Oricato accepts a filter list only when it can express it exactly. It never guesses.

  • Supported fields: country and language with = and !=; tag with =, !=, exists and not_exists, compared as text.
  • OR groups work when they differ in exactly one = condition on the same country or language field, for example "country is US OR country is MX OR country is ES", plus shared conditions.
  • Refused, with a plain error: other fields such as last_session or app_version, > and < on tags, and OR across different fields.
  • Up to 200 entries per request.

Accepted

JSON
"filters": [
  { "field": "country", "relation": "=", "value": "US" },
  { "operator": "OR" },
  { "field": "country", "relation": "=", "value": "MX" },
  { "operator": "OR" },
  { "field": "country", "relation": "=", "value": "ES" }
]

06 #send-after

send_after formats

The first format that matches wins. A time without a zone is refused. A time in the past sends now, as at OneSignal.

  • RFC 3339: 2027-01-04T08:00:00-05:00 or …Z
  • 2027-01-04 08:00:00 GMT-0500
  • 2027-01-04 08:00:00 UTC
  • 2027-01-04 08:00:00 -0500
  • JavaScript Date.toString(): Mon Jan 04 2027 08:00:00 GMT-0500 (Eastern Standard Time)
  • Mon Jan 4 2027 08:00:00 GMT-0500

With delayed_option: "timezone", send_after is when the local-time window opens: each person gets the message at the first delivery_time_of_day at or after it, in their own time zone.

07 #example

A morning lesson at each person's 8:00 AM

CURL

cURL
curl https://<your-api-host>/api/v1/notifications \
  -H "Authorization: Bearer <ORICATO_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "app_id": "<ORICATO_PROJECT_ID>",
    "name": "Morning lesson",
    "included_segments": ["Subscribed Users"],
    "headings": { "en": "Good morning", "es": "Buenos días", "pt-BR": "Bom dia", "fr": "Bonjour" },
    "contents": {
      "en": "Your five-minute lesson is ready.",
      "es": "Tu lección de cinco minutos está lista.",
      "pt-BR": "Sua lição de cinco minutos está pronta.",
      "fr": "Votre leçon de cinq minutes est prête."
    },
    "send_after": "2027-01-04 00:00:00 GMT-0500",
    "delayed_option": "timezone",
    "delivery_time_of_day": "8:00AM",
    "data": { "type": "daily_lesson" },
    "idempotency_key": "morning-lesson-2027-01-04"
  }'

Response · 200

JSON

Sample data

{ "id": "0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10", "recipients": 17877, "external_id": null }

recipients is the audience counted when the message was created. warnings appears only when something in your request was ignored.

08 #responses

OneSignal's response shapes

StatusBody
200{ "id", "recipients", "external_id" }, plus warnings when something was ignored.
400{ "errors": ["…"] }, one plain sentence per problem, for example "Segment 'VIP' is not supported".
403A missing or wrong key, as at OneSignal.
429{ "errors": ["API rate limit exceeded"] } with Retry-After.
500 / 503{ "errors": ["Internal server error"] }.

09 #view

Read the numbers, or cancel

GET /api/v1/notifications/{id} returns the delivery numbers your scheduler already parses, with times in Unix seconds and a split by platform. received counts devices that confirmed delivery. DELETE cancels a message that hasn't been sent.

GET · 200

JSON

Sample data

{
  "id": "0192f0c4-3b7e-7a51-9b1e-2d6f4f0e8a10",
  "app_id": "0192e1aa-1111-7c22-8d33-445566778899",
  "successful": 17877, "failed": 134, "errored": 0, "converted": 1203,
  "remaining": 0, "received": 15210, "canceled": false,
  "platform_delivery_stats": {
    "android": { "successful": 15002, "failed": 100, "converted": 1000 },
    "ios": { "successful": 2875, "failed": 34, "converted": 203 }
  }
}

DELETE answers {"success": true}, or 400 with "Notification has already been sent".

10 #rules

Two rules to know before you switch

  • A daily limit per person. No one gets more than the app's daily limit on one local day, five by default. A send that would break it is refused with the country, the date and the limit, for example "Daily limit reached: people in Germany would get 6 notifications on 2027-01-04 (limit 5)".
  • A daily quota per key. Each API key creates at most its quota of messages per UTC day, 500 by default. A scheduler that plans a month ahead with 3 to 5 daily slots creates 90 to 150 messages per app (3 to 5 × 30 days), and you can raise the quota per key.

11 #not-supported

What it refuses or ignores

FieldWhat happens
delayed_option: "last-active"Refused. Today Oricato sends at a local hour you choose. Learning when each person is active is part of Oricato Intelligence (early access), and for most apps it starts as a tested time per slot.
Other segment namesRefused with "Segment … is not supported".
Other filter fields or relationsRefused, never guessed.
Fields for other channels, such as web_urlIgnored and listed in warnings. This endpoint maps mobile push fields.
Any other fieldIgnored and listed in warnings.

12

What the endpoint can't do for you

  • It doesn't register devices. Phones register through the Oricato SDK. Until an app version with the SDK reaches a phone, that phone only gets OneSignal pushes.
  • OneSignal player IDs don't carry over by default. Devices get Oricato subscription IDs when they register. Target by your own external_user_id where you can. History import, part of Oricato Intelligence (early access), is designed to keep imported OneSignal subscription IDs so lists of player IDs keep matching.
  • It isn't a full copy of OneSignal's API. It covers creating, reading and canceling notifications with the fields above.

Where OneSignal is still the better choice

Questions

Questions engineers ask

Is it fully compatible with OneSignal's API?

No. It accepts the create-notification fields most schedulers use, listed above. Anything it can't do exactly is refused with a plain error.

Can I test without touching real users?

Yes. Mark your phone as a test device and send with "included_segments": ["Test Users"].

Can I move one app at a time?

Yes. Each app has its own project and key, so you switch one scheduler config at a time.

Do retries send twice?

Not if you set idempotency_key or external_id. A repeat within 30 days returns the first message.

How do I go back?

Point the scheduler at OneSignal's address, key and app ID again, and cancel the Oricato messages that haven't started. It works for as long as the OneSignal SDK is still in your apps.

Early access · launching soon

Send us one request you make today. We'll show you what changes.

Founding teams get a person who maps their OneSignal requests and writes their migration plan, free. They also get early access and a founding discount.

Get a migration plan

A person reads every request. Please don't paste API keys into the form.

Or get the monthly newsletter