List my notifications
Parameters
only list notifications of these types
unreadbooleanqueryonly list unread notifications
startinteger>= 0queryOffset used to paginate results
countinteger[1, 100]15queryNumber of items to return
sortstringquerySort column
Response
successful operation
Response fields application/json
totalinteger1Show child attributes
idid>= 142typeNotificationType12345678910111213141516171819202122232425262728293031323334Notification type. One of the following values:
1NEW_VIDEO_FROM_SUBSCRIPTION2NEW_COMMENT_ON_MY_VIDEO3NEW_ABUSE_FOR_MODERATORS4BLACKLIST_ON_MY_VIDEO5UNBLACKLIST_ON_MY_VIDEO6MY_VIDEO_PUBLISHED7MY_VIDEO_IMPORT_SUCCESS8MY_VIDEO_IMPORT_ERROR9NEW_USER_REGISTRATION10NEW_FOLLOW11COMMENT_MENTION12VIDEO_AUTO_BLACKLIST_FOR_MODERATORS13NEW_INSTANCE_FOLLOWER14AUTO_INSTANCE_FOLLOWING15ABUSE_STATE_CHANGE16ABUSE_NEW_MESSAGE17NEW_PLUGIN_VERSION18NEW_PEERTUBE_VERSION19MY_VIDEO_STUDIO_EDITION_FINISHED20NEW_USER_REGISTRATION_REQUEST21NEW_LIVE_FROM_SUBSCRIPTION22MY_VIDEO_TRANSCRIPTION_GENERATED23INVITED_TO_COLLABORATE_TO_CHANNEL24ACCEPTED_TO_COLLABORATE_TO_CHANNEL25REFUSED_TO_COLLABORATE_TO_CHANNEL26VIDEO_OWNERSHIP_CHANGED_REQUEST27VIDEO_OWNERSHIP_CHANGED_ACCEPTED28VIDEO_OWNERSHIP_CHANGED_REJECTED29CHANNEL_OWNERSHIP_CHANGED_REQUEST30CHANNEL_OWNERSHIP_CHANGED_ACCEPTED31CHANNEL_OWNERSHIP_CHANGED_REJECTED32AUTOMATIC_BLOCKLIST_UPDATE33MY_VIDEO_STUDIO_EDITION_ERROR34MY_VIDEO_DUPLICATION_ERROR
readbooleanvideoVideoInfo & object | nullShow child attributes
uuidUUIDv4universal identifier for the video, that can be used across instances
Show child attributes
9c9de5e8-0a1e-484a-b099-e80766180a6dnamenametitle of the video
What is PeerTube?stateVideoStateConstantrepresents the internal state of the video processing within the PeerTube instance
Show child attributes
idid123456789101112131415The video state:
1: Published2: To transcode3: To import4: Waiting for live stream5: Live ended6: To move to an external storage (object storage...)7: Transcoding failed8: Moving to an external storage failed9: To edit using studio edition feature10: To move to the file system11: Moving to the file system failed12: Import failed13: To duplicate, the files of another video are being copied14: Duplication failed, the files of the other video could not be copied15: The studio edition of a video saved as a new video failed
Same fields as data.video.id
labelstringchannelActorInfoShow child attributes
namestringdisplayNamestringhoststring<hostname>avatarsArray<ActorImage>Show child attributes
pathstring | nulldeprecatedDeprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.
fileUrlstringPeerTube >= 7.1
widthintegerheightintegerPeerTube >= 7.3
createdAtstring<date-time>updatedAtstring<date-time>videoImportobject | nullShow child attributes
videoVideoInfo | nullShow child attributes
uuidUUIDv4universal identifier for the video, that can be used across instances
Show child attributes
9c9de5e8-0a1e-484a-b099-e80766180a6dnamenametitle of the video
What is PeerTube?stateVideoStateConstantrepresents the internal state of the video processing within the PeerTube instance
Show child attributes
idid123456789101112131415The video state:
1: Published2: To transcode3: To import4: Waiting for live stream5: Live ended6: To move to an external storage (object storage...)7: Transcoding failed8: Moving to an external storage failed9: To edit using studio edition feature10: To move to the file system11: Moving to the file system failed12: Import failed13: To duplicate, the files of another video are being copied14: Duplication failed, the files of the other video could not be copied15: The studio edition of a video saved as a new video failed
Same fields as data.video.id
labelstringtorrentNamestring | nullmagnetUrimagnetUri<uri>magnet URI allowing to resolve the import's source video
targetUristring<uri> | nullcommentobject | nullShow child attributes
threadIdintegervideoVideoInfoShow child attributes
uuidUUIDv4universal identifier for the video, that can be used across instances
Show child attributes
9c9de5e8-0a1e-484a-b099-e80766180a6dnamenametitle of the video
What is PeerTube?stateVideoStateConstantrepresents the internal state of the video processing within the PeerTube instance
Show child attributes
idid123456789101112131415The video state:
1: Published2: To transcode3: To import4: Waiting for live stream5: Live ended6: To move to an external storage (object storage...)7: Transcoding failed8: Moving to an external storage failed9: To edit using studio edition feature10: To move to the file system11: Moving to the file system failed12: Import failed13: To duplicate, the files of another video are being copied14: Duplication failed, the files of the other video could not be copied15: The studio edition of a video saved as a new video failed
Same fields as data.video.id
labelstringaccountActorInfoShow child attributes
namestringdisplayNamestringhoststring<hostname>avatarsArray<ActorImage>Show child attributes
pathstring | nulldeprecatedDeprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.
fileUrlstringPeerTube >= 7.1
widthintegerheightintegerPeerTube >= 7.3
createdAtstring<date-time>updatedAtstring<date-time>heldForReviewbooleanvideoAbuseobject | nullShow child attributes
videoVideoInfoShow child attributes
uuidUUIDv4universal identifier for the video, that can be used across instances
Show child attributes
9c9de5e8-0a1e-484a-b099-e80766180a6dnamenametitle of the video
What is PeerTube?stateVideoStateConstantrepresents the internal state of the video processing within the PeerTube instance
Show child attributes
idid123456789101112131415The video state:
1: Published2: To transcode3: To import4: Waiting for live stream5: Live ended6: To move to an external storage (object storage...)7: Transcoding failed8: Moving to an external storage failed9: To edit using studio edition feature10: To move to the file system11: Moving to the file system failed12: Import failed13: To duplicate, the files of another video are being copied14: Duplication failed, the files of the other video could not be copied15: The studio edition of a video saved as a new video failed
Same fields as data.video.id
labelstringvideoBlacklistobject | nullShow child attributes
videoVideoInfoShow child attributes
uuidUUIDv4universal identifier for the video, that can be used across instances
Show child attributes
9c9de5e8-0a1e-484a-b099-e80766180a6dnamenametitle of the video
What is PeerTube?stateVideoStateConstantrepresents the internal state of the video processing within the PeerTube instance
Show child attributes
idid123456789101112131415The video state:
1: Published2: To transcode3: To import4: Waiting for live stream5: Live ended6: To move to an external storage (object storage...)7: Transcoding failed8: Moving to an external storage failed9: To edit using studio edition feature10: To move to the file system11: Moving to the file system failed12: Import failed13: To duplicate, the files of another video are being copied14: Duplication failed, the files of the other video could not be copied15: The studio edition of a video saved as a new video failed
Same fields as data.video.id
labelstringaccountActorInfo | nullShow child attributes
namestringdisplayNamestringhoststring<hostname>avatarsArray<ActorImage>Show child attributes
pathstring | nulldeprecatedDeprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.
fileUrlstringPeerTube >= 7.1
widthintegerheightintegerPeerTube >= 7.3
createdAtstring<date-time>updatedAtstring<date-time>actorFollowobject | nullShow child attributes
followerActorInfoShow child attributes
namestringdisplayNamestringhoststring<hostname>avatarsArray<ActorImage>Show child attributes
pathstring | nulldeprecatedDeprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.
fileUrlstringPeerTube >= 7.1
widthintegerheightintegerPeerTube >= 7.3
createdAtstring<date-time>updatedAtstring<date-time>statestringpendingacceptedfollowingobjectShow child attributes
typestringaccountchannelinstancenamestringdisplayNamestringhoststring<hostname>createdAtstring<date-time>updatedAtstring<date-time>Authorization
OAuth2oauth2Authenticating via OAuth requires the following steps:
- Have an activated account
- Generate an access token for that account at
/api/v1/users/token. - Make requests with the Authorization: Bearer <token> header
- Profit, depending on the role assigned to the account
Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.