{ "opencollection": "1.0.0", "info": { "name": "Mention Accounts API", "version": "1.21" }, "items": [ { "info": { "name": "Accounts", "type": "folder" }, "items": [ { "info": { "name": "Create an account", "type": "http" }, "http": { "method": "POST", "url": "https://api.mention.net/api/accounts", "params": [], "headers": [ { "name": "Authorization", "value": "Bearer {{access_token}}" }, { "name": "Accept-Version", "value": "{{apiVersion}}" }, { "name": "Content-Type", "value": "application/json" } ], "body": { "type": "json", "data": { "name": "John Smith", "email": "j.smith@nasa.com", "password": "REDACTED_EXAMPLE_PASSWORD", "language_code": "en" } } }, "docs": "Creates a new Mention account. The password must be at least 6 characters long and mix letters and figures. The optional client property records the name of the application registering the user." }, { "info": { "name": "Fetch my account", "type": "http" }, "http": { "method": "GET", "url": "https://api.mention.net/api/accounts/me", "params": [], "headers": [ { "name": "Authorization", "value": "Bearer {{access_token}}" }, { "name": "Accept-Version", "value": "{{apiVersion}}" } ] }, "docs": "Fetches all account details for the account that owns the access token used on the request. This is the standard way to resolve the account_id required by every other endpoint." }, { "info": { "name": "Fetch an account", "type": "http" }, "http": { "method": "GET", "url": "https://api.mention.net/api/accounts/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path" } ], "headers": [ { "name": "Authorization", "value": "Bearer {{access_token}}" }, { "name": "Accept-Version", "value": "{{apiVersion}}" } ] }, "docs": "Retrieves details for the given account. An access token cannot read another person's account, even when that account was created through this API." }, { "info": { "name": "Update an account", "type": "http" }, "http": { "method": "PUT", "url": "https://api.mention.net/api/accounts/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path" } ], "headers": [ { "name": "Authorization", "value": "Bearer {{access_token}}" }, { "name": "Accept-Version", "value": "{{apiVersion}}" }, { "name": "Content-Type", "value": "application/json" } ], "body": { "type": "json", "data": { "name": "John Smith", "email": "j.smith@nasa.com" } } }, "docs": "Modifies an existing account. Only the account that owns the access token can be modified. Changing the password requires sending both old_password and new_password rather than password." }, { "info": { "name": "Delete an account", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.mention.net/api/accounts/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path" } ], "headers": [ { "name": "Authorization", "value": "Bearer {{access_token}}" }, { "name": "Accept-Version", "value": "{{apiVersion}}" } ] }, "docs": "Deletes an account. As with GET and PUT, an access token cannot delete another person's account." } ] } ] }