Arkloop Developers

Notifications

In-app notifications. All endpoints require Bearer Token authentication.

List Notifications

GET /v1/notifications

Query Parameters

ParameterTypeDescription
unread_onlyboolReturn only unread notifications, default false
typestringFilter by notification type

Response

{
  "data": [
    {
      "id": "...",
      "user_id": "...",
      "org_id": "...",
      "type": "broadcast",
      "title": "System Maintenance Notification",
      "body": "Routine maintenance will be performed tonight at 22:00...",
      "payload": {},
      "read_at": null,
      "created_at": "2024-01-01T00:00:00Z"
    }
  ]
}

Mark All Notifications as Read

PATCH /v1/notifications

Response

{ "ok": true, "count": 5 }

Mark Single Notification as Read

PATCH /v1/notifications/{notification_id}

Response

{ "ok": true }

Admin Broadcast

Admins can send broadcast notifications to all users or specific organizations.

Create Broadcast

POST /v1/admin/notifications/broadcasts

Requires platform_admin permission.

Request Body

FieldTypeRequiredDescription
typestringYesNotification type
titlestringYesTitle
bodystringYesBody content
targetstringYesall or specific org_id
payloadobjectNoAdditional data

Response 202 Accepted

{
  "id": "...",
  "type": "announcement",
  "title": "New Feature Launched",
  "body": "...",
  "target_type": "all",
  "target_id": null,
  "payload": {},
  "status": "pending",
  "sent_count": 0,
  "created_by": "...",
  "created_at": "2024-01-01T00:00:00Z"
}

List Broadcasts

GET /v1/admin/notifications/broadcasts

Query Parameters

ParameterTypeDescription
limitint
cursorstring

Get Broadcast Details

GET /v1/admin/notifications/broadcasts/{broadcast_id}

Delete Broadcast

DELETE /v1/admin/notifications/broadcasts/{broadcast_id}

On this page