{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Account Blocklist API", "version": "8.1.0" }, "items": [ { "info": { "name": "Account Blocklist", "type": "folder" }, "items": [ { "info": { "name": "Get block status of accounts/hosts", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/blocklist/status", "params": [ { "name": "accounts", "value": "goofy@example.com,donald@example.com", "type": "query", "description": "Check if these accounts are blocked" }, { "name": "hosts", "value": "example.com", "type": "query", "description": "Check if these hosts are blocked" } ] }, "docs": "Get block status of accounts/hosts" }, { "info": { "name": "List accounts blocked by my account", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/users/me/blocklist/accounts", "params": [ { "name": "start", "value": "", "type": "query", "description": "Offset used to paginate results" }, { "name": "count", "value": "", "type": "query", "description": "Number of items to return" }, { "name": "sort", "value": "", "type": "query", "description": "Sort column" }, { "name": "search", "value": "", "type": "query", "description": "Search query string" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get the list of accounts that the authenticated user has blocked" }, { "info": { "name": "Block an account by my account", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/me/blocklist/accounts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Add an account to the authenticated user's blocklist" }, { "info": { "name": "Unblock an account by my account", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/users/me/blocklist/accounts/:accountName", "params": [ { "name": "accountName", "value": "", "type": "path", "description": "Account name to unblock (format: name@host)" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Remove an account from the authenticated user's blocklist" }, { "info": { "name": "List servers blocked by my account", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/users/me/blocklist/servers", "params": [ { "name": "start", "value": "", "type": "query", "description": "Offset used to paginate results" }, { "name": "count", "value": "", "type": "query", "description": "Number of items to return" }, { "name": "sort", "value": "", "type": "query", "description": "Sort column" }, { "name": "search", "value": "", "type": "query", "description": "Search query string" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get the list of servers that the authenticated user has blocked" }, { "info": { "name": "Block a server by my account", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/me/blocklist/servers", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Add a server to the authenticated user's blocklist" }, { "info": { "name": "Unblock a server by my account", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/users/me/blocklist/servers/:host", "params": [ { "name": "host", "value": "", "type": "path", "description": "Server host to unblock" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Remove a server from the authenticated user's blocklist" } ] } ], "bundled": true }