Notifications
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitinteger · max: 50OptionalDefault:
50offsetinteger · max: 2147483647OptionalDefault:
0Responses
200
Successful response
application/json
totalnumberRequired
limitnumberRequired
offsetnumberRequired
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
get/notifications/me
GET /api/v2/notifications/me HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"values": [
{
"type": "text",
"hydrated": null,
"id": 1,
"date": "text",
"data": {
"title": "text",
"body": "text"
}
}
],
"total": 1,
"limit": 1,
"offset": 1
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Successful response
application/json
unreadCountnumberRequired
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
get/notifications/stats/me
GET /api/v2/notifications/stats/me HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"unreadCount": 1
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Successful response
application/json
readnumberRequired
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post/notifications/me/mark-as-read
POST /api/v2/notifications/me/mark-as-read HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"read": 1
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Successful response
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
get/notifications/me/settings
GET /api/v2/notifications/me/settings HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": {
"listDisabled": true,
"pushDisabled": true
}
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200
Successful response
application/json
anyOptional
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
put/notifications/me/settings
PUT /api/v2/notifications/me/settings HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"settings": {
"ANY_ADDITIONAL_PROPERTY": {
"listDisabled": true,
"pushDisabled": true
}
}
}No content
Last updated