{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Register API", "version": "8.1.0" }, "items": [ { "info": { "name": "Register", "type": "folder" }, "items": [ { "info": { "name": "Resend user verification link", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/ask-send-verify-email", "body": { "type": "json", "data": "{}" } }, "docs": "Resend user verification link" }, { "info": { "name": "Resend verification link to registration request email", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/registrations/ask-send-verify-email", "body": { "type": "json", "data": "{}" } }, "docs": "Resend verification link to registration request email" }, { "info": { "name": "Verify a user", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/:id/verify-email", "params": [ { "name": "id", "value": "", "type": "path", "description": "Entity id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Following a user registration, the new user will receive an email asking to click a link\ncontaining a secret.\nThis endpoint can also be used to verify a new email set in the user account.\n" }, { "info": { "name": "Verify a registration email", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/registrations/:registrationId/verify-email", "params": [ { "name": "registrationId", "value": "", "type": "path", "description": "Registration ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Following a user registration request, the user will receive an email asking to click a link\ncontaining a secret.\n" }, { "info": { "name": "Register a user", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/register", "body": { "type": "json", "data": "{}" } }, "docs": "Signup has to be enabled and signup approval is not required" }, { "info": { "name": "Request registration", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/registrations/request", "body": { "type": "json", "data": "{}" } }, "docs": "Signup has to be enabled and require approval on the instance" }, { "info": { "name": "Accept registration", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/registrations/:registrationId/accept", "params": [ { "name": "registrationId", "value": "", "type": "path", "description": "Registration ID" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Accept registration" }, { "info": { "name": "Reject registration", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/registrations/:registrationId/reject", "params": [ { "name": "registrationId", "value": "", "type": "path", "description": "Registration ID" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Reject registration" }, { "info": { "name": "Delete registration", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/users/registrations/:registrationId", "params": [ { "name": "registrationId", "value": "", "type": "path", "description": "Registration ID" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete the registration entry. It will not remove the user associated with this registration (if any)" }, { "info": { "name": "List registrations", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/users/registrations", "params": [ { "name": "start", "value": "", "type": "query", "description": "Offset used to paginate results" }, { "name": "count", "value": "", "type": "query", "description": "Number of items to return" }, { "name": "search", "value": "", "type": "query" }, { "name": "sort", "value": "", "type": "query" }, { "name": "stateOneOf", "value": "", "type": "query" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List registrations" } ] } ], "bundled": true }