List Notifications
GET
/v1/notifications
const url = 'https://api.cloud.agentums.ru/v1/notifications?unread=false&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.cloud.agentums.ru/v1/notifications?unread=false&limit=50' \ --header 'Authorization: Bearer <token>'Уведомления владельца; unread=true — только непрочитанные.
Push-канала у API нет: клиент забирает уведомления опросом. Ответ несёт счётчик непрочитанных, поэтому бейдж рисуется без второго запроса.
Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Query Parameters
Заголовок раздела «Query Parameters»unread
Unread
boolean
limit
Limit
integer
Responses
Заголовок раздела «Responses»Successful Response
Media typeapplication/json
NotificationList
object
items
required
unread
Unread
integer
Example
{ "items": [ { "body": "", "payload": {} } ], "unread": 0}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}