Notifications

Send an in-app notification to a user who has authorized your app. The notification appears under their bell icon.

POST /api/oauth/notify

Request

fetch("https://omegacases.com/api/oauth/notify", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    token: "user_token_here",
    title: "Your order shipped",
    body:  "Your item is on its way!"
  })
})

Success response

{ "ok": true }

Error responses

{ "error": "Invalid or revoked token" }        // 401
{ "error": "Token does not have notify scope" } // 403

How it appears

TitlePrefixed with app name: "MyApp: Your order shipped"
BodyYour body text, shown in full
LinkNo link — notification is display-only
UnreadShows as unread until the user opens notifications

You can also send notifications directly from the Developer Dashboard → Notify tab without writing any code.

Live
No rolls yet