PeerTube
  1. My Notifications
PeerTube
  • Abuses
    • List abuses
      GET
    • Report an abuse
      POST
    • Delete an abuse
      DELETE
    • Update an abuse
      PUT
    • List messages of an abuse
      GET
    • Add message to an abuse
      POST
    • Delete an abuse message
      DELETE
    • List my abuses
      GET
  • Accounts
    • List accounts
      GET
    • Get an account
      GET
    • List ratings of an account
      GET
    • List videos of an account
      GET
  • Video Channels
    • List video channels of an account
      GET
    • List video channels
      GET
    • Create a video channel
      POST
    • Delete a video channel
      DELETE
    • Get a video channel
      GET
    • Update a video channel
      PUT
    • Delete channel avatar
      DELETE
    • Update channel avatar
      POST
    • Delete channel banner
      DELETE
    • Update channel banner
      POST
  • Config
    • Get instance public configuration
    • Get instance "About" information
    • Delete instance runtime configuration
    • Get instance runtime configuration
    • Set instance runtime configuration
  • Homepage
    • Get instance custom homepage
    • Set instance custom homepage
  • Feeds
    • List videos of subscriptions tied to a token
    • List comments on videos
    • List videos
  • Job
    • List instance jobs
  • Session
    • Login prerequisite
    • Logout
    • Login
  • Plugins
    • List plugins
    • List available plugins
    • Install a plugin
    • Uninstall a plugin
    • Update a plugin
    • Get a plugin
    • Get a plugin's public settings
    • Get a plugin's registered settings
    • Set a plugin's settings
  • Search
    • Search channels
    • Search playlists
    • Search videos
  • Account Blocks
    • List account blocks
    • Block an account
    • Unblock an account by its handle
  • Server Blocks
    • List server blocks
    • Block a server
    • Unblock a server by its domain
  • Instance Follows
    • List instances following the server
    • Remove or reject a follower to your server
    • Accept a pending follower to your server
    • Reject a pending follower to your server
    • List instances followed by the server
    • Follow a list of actors (PeerTube instance, channel or account)
    • Unfollow an actor (PeerTube instance, channel or account)
  • Video Mirroring
    • List videos being mirrored
    • Mirror a video
    • Delete a mirror done on a video
  • Instance Redundancy
    • Update a server redundancy policy
  • Users
    • List users
    • Create a user
    • Resend user verification link
    • Register a user
    • Delete a user
    • Get a user
    • Update a user
    • Verify a user
  • My User
    • Get my user information
    • Update my user information
    • Delete my avatar
    • Update my user avatar
    • Get my user used quota
    • Get videos of my user
    • Get rate of my user for a video
  • My History
    • List watched videos history
    • Clear video history
  • My Notifications
    • Update my notification settings
      PUT
    • List my notifications
      GET
    • Mark notifications as read by their id
      POST
    • Mark all my notification as read
      POST
  • My Subscriptions
    • Get my user subscriptions
    • Add subscription to my user
    • Get if subscriptions exist for my user
    • List videos of subscriptions of my user
    • Delete subscription of my user
    • Get subscription of my user
  • Video Playlists
    • Check video exists in my playlists
    • List video playlists
    • Create a video playlist
    • List available playlist privacy policies
    • Delete a video playlist
    • Get a video playlist
    • Update a video playlist
    • Reorder a playlist
    • Delete an element from a playlist
    • Update a playlist element
  • Videos
    • Get video imports of my user
    • List videos of a playlist
    • Add a video in a playlist
  • Video
    • List videos of a video channel
    • List videos
    • List available video categories
    • Import a video
    • List available video languages
    • List available video licences
    • List available video privacy policies
    • Upload a video
    • Cancel the resumable upload of a video, deleting any data uploaded so far
    • Initialize the resumable upload of a video
    • Send chunk for the resumable upload of a video
    • Delete a video
    • Get a video
    • Update a video
    • Get complete video description
    • Add a view to a video
    • Set watching progress of a video
  • Video Blocks
    • List video blocks
    • Unblock a video by its id
    • Block a video
  • Live Videos
    • Create a live
    • Get information about a live
    • Update information about a live
  • Video Ownership Change
    • List video ownership changes
    • Accept ownership change request
    • Refuse ownership change request
    • Request ownership change
  • Video Captions
    • List captions of a video
    • Delete a video caption
    • Add or replace a video caption
  • Video Comments
    • List threads of a video
    • Create a thread
    • Get a thread
    • Delete a comment or a reply
    • Reply to a thread of a video
  • Video Rates
    • Like/dislike a video
  1. My Notifications

List my notifications

Live Test Server (live data - latest nightly version)
https://peertube2.cpy.re/api/v1
Live Test Server (live data - latest nightly version)
https://peertube2.cpy.re/api/v1
GET
/users/me/notifications
My Notifications
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://peertube2.cpy.re/api/v1/users/me/notifications'
Response Response Example
{
    "data": [
        {
            "account": {
                "avatar": {
                    "path": "string"
                },
                "displayName": "string",
                "host": "example.com",
                "id": 42,
                "name": "string"
            },
            "actorFollow": {
                "follower": {
                    "avatar": {
                        "path": "string"
                    },
                    "displayName": "string",
                    "host": "example.com",
                    "id": 42,
                    "name": "string"
                },
                "following": {
                    "displayName": "string",
                    "host": "example.com",
                    "name": "string",
                    "type": "account"
                },
                "id": 42,
                "state": "pending"
            },
            "comment": {
                "account": {
                    "avatar": {
                        "path": "string"
                    },
                    "displayName": "string",
                    "host": "example.com",
                    "id": 42,
                    "name": "string"
                },
                "id": 42,
                "threadId": 0,
                "video": {
                    "id": {},
                    "name": {},
                    "uuid": {}
                }
            },
            "createdAt": "2019-08-24T14:15:22Z",
            "id": 42,
            "read": true,
            "type": 0,
            "updatedAt": "2019-08-24T14:15:22Z",
            "video": {
                "id": {},
                "name": {},
                "uuid": {},
                "channel": {
                    "avatar": {
                        "path": "string"
                    },
                    "displayName": "string",
                    "host": "example.com",
                    "id": 42,
                    "name": "string"
                }
            },
            "videoAbuse": {
                "id": 42,
                "video": {
                    "id": {},
                    "name": {},
                    "uuid": {}
                }
            },
            "videoBlacklist": {
                "id": 42,
                "video": {
                    "id": {},
                    "name": {},
                    "uuid": {}
                }
            },
            "videoImport": {
                "id": 42,
                "magnetUri": {},
                "targetUri": "http://example.com",
                "torrentName": "string",
                "video": {
                    "id": {},
                    "name": {},
                    "uuid": {}
                }
            }
        }
    ],
    "total": 1
}

Request

Query Params
unread
string 
optional
only list unread notifications
start
integer 
optional
Offset used to paginate results
count
integer 
optional
Number of items to return
sort
string 
optional
Sort column

Responses

🟢200successful operation
application/json
Body
data
array[object (Notification) {12}] 
optional
<= 100 items
account
null  | allOf {1} 
optional
actorFollow
object  | null 
optional
comment
object  | null 
optional
createdAt
string <date-time>
optional
id
integer 
optional
>= 1
Example:
42
read
boolean 
optional
type
integer 
optional
Notification type, following the UserNotificationType enum:
1 NEW_VIDEO_FROM_SUBSCRIPTION
2 NEW_COMMENT_ON_MY_VIDEO
3 NEW_ABUSE_FOR_MODERATORS
4 BLACKLIST_ON_MY_VIDEO
5 UNBLACKLIST_ON_MY_VIDEO
6 MY_VIDEO_PUBLISHED
7 MY_VIDEO_IMPORT_SUCCESS
8 MY_VIDEO_IMPORT_ERROR
9 NEW_USER_REGISTRATION
10 NEW_FOLLOW
11 COMMENT_MENTION
12 VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
13 NEW_INSTANCE_FOLLOWER
14 AUTO_INSTANCE_FOLLOWING
updatedAt
string <date-time>
optional
video
null  | allOf {2} 
optional
videoAbuse
object  | null 
optional
videoBlacklist
object  | null 
optional
videoImport
object  | null 
optional
total
integer 
optional
Example:
1
Modified at 2022-09-10 22:29:50
Previous
Update my notification settings
Next
Mark notifications as read by their id
Built with