B7RDevelopers
ReferenceNotifications
Reference / Notifications

Notifications

View .md

Ids, names and times in the examples are samples. Read the real values from the API.

With updates on, each notification this list shows also sends inbox.notification_created, naming it by notification_id, so you need not poll the list.

List notifications

GET/v1/notifications

filter: all (the default), updates or designs. At most limit (1 to 50, 30 by default) a page; pass next_cursor as cursor for the next one, and follow it until it is null: a page can be shorter than limit. Each notification comes in both languages. A What’s New post shows while it is published.

Ticket conversations are not in this list; unread counts them with the rest, as the bell does.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the notifications area. X-B7R-Key works too; send one, never both.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Query

filterstring

One of all, updates, designs.

limitstring
cursorstring

1 to 200.

Answer

dataarray of objectrequired
Child fields
idstring (uuid)required
kindstringrequired
titleobjectrequired
Child fields
arstringrequired
enstringrequired
messageobjectrequired
Child fields
arstringrequired
enstringrequired
order_idstring (uuid) or nullrequired
post_idstring (uuid) or nullrequired
readbooleanrequired
created_atstringrequired

UTC, ISO 8601 with milliseconds and Z.

next_cursorstring or nullrequired
unreadobjectrequired

What is unread now, as the bell counts it.

Child fields
totalintegerrequired
ticketsintegerrequired
designsintegerrequired
updatesintegerrequired

Errors

Request
curl https://api.b7r.app/v1/notifications \
  -H "Authorization: Bearer $B7R_API_KEY"
const res = await fetch("https://api.b7r.app/v1/notifications", {
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.b7r.app/v1/notifications",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "data": [
    {
      "id": "8e9f0a1b-2c3d-4e4f-9a5b-6c7d8e9f0a1b",
      "kind": "order_status_changed",
      "title": {
        "ar": "تغيّرت حالة الطلب",
        "en": "Order status changed"
      },
      "message": {
        "ar": "الطلب B00000001042 قيد الإنتاج.",
        "en": "Order B00000001042 is in production."
      },
      "order_id": "9f0a1b2c-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
      "post_id": null,
      "read": false,
      "created_at": "2026-11-26T10:00:00.000Z"
    }
  ],
  "next_cursor": null,
  "unread": {
    "total": 3,
    "tickets": 1,
    "designs": 0,
    "updates": 2
  }
}

Mark notifications read

POST/v1/notifications/read

Send ids (at most 50) or all: true, one of the two. marked is how many were unread and are read now: a second call marks none.

Headers

Authorizationstringrequired

Bearer b7r_live_.... A key with the notifications area. X-B7R-Key works too; send one, never both.

Idempotency-Keystringrequired

A new value per operation (up to 255 letters, digits, ., _, : or -; a UUID works), the same value on its retries. See Safe retries.

Content-Typestringrequired

application/json, when the request has a body.

Accept-Languagestring

ar for Arabic error titles; anything else gives English. Codes never change.

Body

idsarray of string (uuid)

1 to 50 items.

allconstant

Always true.

Answer

markedintegerrequired

How many were unread and are read now.

Errors

Request
curl -X POST https://api.b7r.app/v1/notifications/read \
  -H "Authorization: Bearer $B7R_API_KEY" \
  -H "Idempotency-Key: $(uuidgen 2>/dev/null || node -e 'console.log(crypto.randomUUID())')" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "8e9f0a1b-2c3d-4e4f-9a5b-6c7d8e9f0a1b"
    ]
  }'
const res = await fetch("https://api.b7r.app/v1/notifications/read", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.B7R_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "ids": [
      "8e9f0a1b-2c3d-4e4f-9a5b-6c7d8e9f0a1b"
    ]
  }),
});
const data = await res.json();
import os, requests, uuid

res = requests.post(
    "https://api.b7r.app/v1/notifications/read",
    headers={
        "Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "ids": [
            "8e9f0a1b-2c3d-4e4f-9a5b-6c7d8e9f0a1b"
        ]
    },
    timeout=30,
)
data = res.json()
200 OK
{
  "marked": 1
}

Titles and headings of every page. llms-full.txt holds the full text.