action cpy_get_api_v1_users_me_notifications { label: "List my notifications" provider: cpy method: GET path: "/api/v1/users/me/notifications" encoding: json input: { type: "object" properties: { unread: { type: "boolean" } } additionalProperties: false } output: { properties: { data: { type: "array" items: { properties: { account: { type: "object" } actorFollow: { type: "object" properties: { follower: { properties: { avatars: { type: "array" items: { properties: { createdAt: { type: "string" format: "date-time" } path: { type: "string" } updatedAt: { type: "string" format: "date-time" } width: { type: "integer" } } } } displayName: { type: "string" } host: { type: "string" format: "hostname" } id: { type: "integer" } name: { type: "string" } } } following: { type: "object" properties: { displayName: { type: "string" } host: { type: "string" format: "hostname" } name: { type: "string" } type: { type: "string" enum: ["account", "channel", "instance"] } } } id: { type: "object" additionalProperties: true } state: { type: "string" enum: ["pending", "accepted"] } } } comment: { type: "object" properties: { account: { type: "object" additionalProperties: true } id: { type: "object" additionalProperties: true } threadId: { type: "integer" } video: { properties: { id: { description: "object id for the video" type: "object" } name: { type: "string" description: "title of the video" } uuid: { description: "universal identifier for the video, that can be used across instances" type: "object" } } } } } createdAt: { type: "string" format: "date-time" } id: { type: "object" additionalProperties: true } read: { type: "boolean" } type: { type: "integer" description: "Notification type, following the `UserNotificationType` enum:\n- `1` NEW_VIDEO_FROM_SUBSCRIPTION\n- `2` NEW_COMMENT_ON_MY_VIDEO\n- `3` NEW_ABUSE_FOR_MODERATORS\n- `4` BLACKLIST_ON_MY_VIDEO\n- `5` UNBLACKLIST_ON_MY_VIDEO\n- `6` MY_VIDEO_PUBLISHED\n- `7` MY_VIDEO_IMPORT_SUCCESS\n- `8` MY_VIDEO_IMPORT_ERROR\n- `9` NEW_USER_REGISTRATION\n- `10` NEW_FOLLOW\n- `11` COMMENT_MENTION\n- `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS\n- `13` NEW_INSTANCE_FOLLOWER\n- `14` AUTO_INSTANCE_FOLLOWING\n- `15` ABUSE_STATE_CHANGE\n- `16` ABUSE_NEW_MESSAGE\n- `17` NEW_PLUGIN_VERSION\n- `18` NEW_PEERTUBE_VERSION\n" } updatedAt: { type: "string" format: "date-time" } video: { type: "object" } videoAbuse: { type: "object" properties: { id: { type: "object" additionalProperties: true } video: { type: "object" } } } videoBlacklist: { type: "object" properties: { id: { type: "object" additionalProperties: true } video: { type: "object" } } } videoImport: { type: "object" properties: { id: { type: "object" additionalProperties: true } magnetUri: { type: "string" format: "uri" description: "magnet URI allowing to resolve the import's source video" } targetUri: { type: "string" format: "uri" } torrentName: { type: "string" } video: { type: "object" additionalProperties: true } } } } } } total: { type: "integer" } } } }