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

Parameters: list_notifications
NameTypeDescription
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
curl https://cotlet.dev/api/v1/anilist/notifications \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("anilist", "list_notifications")
Node.js
const result = await cotlet.call('anilist', 'list_notifications');
CLI
cotlet call anilist list_notifications

Example response

JSON

{
  "unread": 14,
  "items": [
    {
      "type": "ACTIVITY_REPLY",
      "user": "friend42",
      "activity_id": 912345678,
      "text": "Same, the music!"
    },
    {
      "type": "FOLLOWING",
      "user": "newfan7"
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.