Notifications

Get pending notifications for user

get
Authorizations
Query parameters
limitinteger · max: 50OptionalDefault: 50
offsetnumberOptionalDefault: 0
Responses
200

Successful response

application/json
get
GET /api/v2/notifications/me HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "values": [
    {
      "type": "SIMPLE",
      "data": {
        "title": "text",
        "body": "text"
      },
      "id": 1,
      "date": "text"
    }
  ],
  "total": 1,
  "limit": 1,
  "offset": 1
}

Get notifications stats for user

get
Authorizations
Responses
200

Successful response

application/json
get
GET /api/v2/notifications/stats/me HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "unreadCount": 1
}

Mark notifications as read for user

post
Authorizations
Body
notificationIdsnumber[]Required
Responses
200

Successful response

application/json
post
POST /api/v2/notifications/me/mark-as-read HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "notificationIds": [
    1
  ]
}
{
  "read": 1
}