Notifications
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
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
Bearer b7r_live_.... A key with the notifications area. X-B7R-Key works too; send one, never both.
ar for Arabic error titles; anything else gives English. Codes never change.
Query
One of all, updates, designs.
1 to 200.
Answer
Child fields
Child fields
Child fields
UTC, ISO 8601 with milliseconds and Z.
What is unread now, as the bell counts it.
Child fields
Errors
| HTTP | Code | Retry |
|---|---|---|
| 400 | invalid_request | No |
| 401 | unauthorized | No |
| 403 | area_forbidden | No |
| 403 | account_inactive | No |
| 403 | connection_disabled | No |
| 403 | https_required | No |
| 429 | rate_limited | Yes |
| 500 | internal_error | Yes |
| 502 | upstream_unavailable | Yes |
| 503 | api_unavailable | Yes |
| 503 | request_expired | Yes |
| 503 | service_unavailable | Yes |
| 504 | upstream_timeout | Yes |
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(){
"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
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
Bearer b7r_live_.... A key with the notifications area. X-B7R-Key works too; send one, never both.
A new value per operation (up to 255 letters, digits, ., _, : or -; a UUID works), the same value on its retries. See Safe retries.
application/json, when the request has a body.
ar for Arabic error titles; anything else gives English. Codes never change.
Body
1 to 50 items.
Always true.
Answer
How many were unread and are read now.
Errors
| HTTP | Code | Retry |
|---|---|---|
| 400 | invalid_request | No |
| 400 | idempotency_key_required | No |
| 401 | unauthorized | No |
| 403 | area_forbidden | No |
| 403 | account_inactive | No |
| 403 | connection_disabled | No |
| 403 | https_required | No |
| 409 | idempotency_mismatch | No |
| 409 | idempotency_in_flight | Yes |
| 413 | request_too_large | No |
| 415 | unsupported_media_type | No |
| 429 | rate_limited | Yes |
| 500 | internal_error | Yes |
| 502 | upstream_unavailable | Yes |
| 503 | api_unavailable | Yes |
| 503 | request_expired | Yes |
| 503 | service_unavailable | Yes |
| 504 | upstream_timeout | Yes |
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(){
"marked": 1
}