Notifications
Authorizations
Query parameters
limitinteger · max: 50OptionalDefault:
50offsetnumberOptionalDefault:
0Responses
200
Successful response
application/json
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/meGET /api/v2/notifications/me HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"values": [
{
"type": "SIMPLE",
"hydrated": null
},
{
"id": 1,
"date": "text"
},
{
"type": "SIMPLE",
"data": {
"title": "text",
"body": "text"
}
}
],
"total": 1,
"limit": 1,
"offset": 1
}Authorizations
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/stats/meGET /api/v2/notifications/stats/me HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"unreadCount": 1
}Authorizations
Body
notificationIdsnumber[]Required
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
post
/notifications/me/mark-as-readPOST /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
}Authorizations
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/settingsGET /api/v2/notifications/me/settings HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"SIMPLE": {
"listDisabled": true,
"pushDisabled": true
},
"VOUCH": {
"listDisabled": true,
"pushDisabled": true
},
"VOUCH_INCREASED": {
"listDisabled": true,
"pushDisabled": true
},
"UNVOUCH": {
"listDisabled": true,
"pushDisabled": true
},
"REVIEW": {
"listDisabled": true,
"pushDisabled": true
},
"INVITATION_ACCEPTED": {
"listDisabled": true,
"pushDisabled": true
},
"REPLY": {
"listDisabled": true,
"pushDisabled": true
},
"SLASH_CREATE": {
"listDisabled": true,
"pushDisabled": true
},
"SLASH_COMPLETE": {
"listDisabled": true,
"pushDisabled": true
},
"SLASH_COMPLETE_SUBSCRIBED": {
"listDisabled": true,
"pushDisabled": true
},
"CONTRIBUTION_STREAK_ENDING": {
"listDisabled": true,
"pushDisabled": true
},
"BROKER_POST_EXPIRING": {
"listDisabled": true,
"pushDisabled": true
},
"BROKER_POST_EXPIRED": {
"listDisabled": true,
"pushDisabled": true
}
}Authorizations
Body
Responses
200
Successful response
application/json
Responseany
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/settingsPUT /api/v2/notifications/me/settings HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 778
{
"settings": {
"SIMPLE": {
"listDisabled": true,
"pushDisabled": true
},
"VOUCH": {
"listDisabled": true,
"pushDisabled": true
},
"VOUCH_INCREASED": {
"listDisabled": true,
"pushDisabled": true
},
"UNVOUCH": {
"listDisabled": true,
"pushDisabled": true
},
"REVIEW": {
"listDisabled": true,
"pushDisabled": true
},
"INVITATION_ACCEPTED": {
"listDisabled": true,
"pushDisabled": true
},
"REPLY": {
"listDisabled": true,
"pushDisabled": true
},
"SLASH_CREATE": {
"listDisabled": true,
"pushDisabled": true
},
"SLASH_COMPLETE": {
"listDisabled": true,
"pushDisabled": true
},
"SLASH_COMPLETE_SUBSCRIBED": {
"listDisabled": true,
"pushDisabled": true
},
"CONTRIBUTION_STREAK_ENDING": {
"listDisabled": true,
"pushDisabled": true
},
"BROKER_POST_EXPIRING": {
"listDisabled": true,
"pushDisabled": true
},
"BROKER_POST_EXPIRED": {
"listDisabled": true,
"pushDisabled": true
}
}
}No content
Last updated