List notifications
Read your notifications, optionally by type.
GET https://cotlet.dev/api/v1/anilist/notifications
read
Returns newest first, with type, the user who caused it and the activity or thread it points to. The unread count resets only if mark_read is true. It changes nothing else.
Parameters
| Name | Type | Description |
|---|---|---|
| type string | string | One of ACTIVITY_REPLY, ACTIVITY_MENTION, ACTIVITY_MESSAGE, FOLLOWING, AIRING, ACTIVITY_LIKE, THREAD_COMMENT_MENTION. Leave out for all. |
| mark_read boolean | boolean | Reset the unread count when reading. Defaults to false. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/anilist/notifications \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("anilist", "list_notifications") const result = await cotlet.call('anilist', 'list_notifications'); cotlet call anilist list_notifications Example response
{
"unread": 14,
"items": [
{
"type": "ACTIVITY_REPLY",
"user": "friend42",
"activity_id": 912345678,
"text": "Same, the music!"
},
{
"type": "FOLLOWING",
"user": "newfan7"
}
],
"next_cursor": null
}