{ "opencollection": "1.0.0", "info": { "name": "Pixelfed REST Accounts Lists API", "version": "1.1" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Lists", "type": "folder" }, "items": [ { "info": { "name": "Get lists", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}/api/v1/lists", "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Returns the authenticated account's lists." }, { "info": { "name": "Create a list", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}/api/v1/lists", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create a list" }, { "info": { "name": "Get a list", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}/api/v1/lists/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get a list" }, { "info": { "name": "Update a list", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}/api/v1/lists/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update a list" }, { "info": { "name": "Delete a list", "type": "http" }, "http": { "method": "DELETE", "url": "https://{instance}/api/v1/lists/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete a list" }, { "info": { "name": "Get accounts in list", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}/api/v1/lists/:id/accounts", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results to return (default 20, max 80)" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get accounts in list" }, { "info": { "name": "Add accounts to list", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}/api/v1/lists/:id/accounts", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Add accounts to list" }, { "info": { "name": "Remove accounts from list", "type": "http" }, "http": { "method": "DELETE", "url": "https://{instance}/api/v1/lists/:id/accounts", "params": [ { "name": "id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://{instance}/oauth/authorize", "accessTokenUrl": "https://{instance}/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Remove accounts from list" } ] } ], "bundled": true }