Перейти к основному содержанию
GET
/
v1
/
notifications
cURL
curl --request GET \
  --url https://api.example.com/v1/notifications/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "body": "<string>",
      "user": 123,
      "content_type": "<string>",
      "object_id": 1073741823,
      "created_at": "2023-11-07T05:31:56Z",
      "readed": false,
      "archived": false,
      "extra": "<unknown>"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры запроса

archived
boolean
content_type
string[]

Несколько значений могут быть разделены запятыми.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

readed
boolean

A search term.

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"