{ "opencollection": "1.0.0", "info": { "name": "Channel Accounts API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Accounts", "type": "folder" }, "items": [ { "info": { "name": "List Accounts", "type": "http" }, "http": { "method": "GET", "url": "https://api2.frontapp.com/accounts", "params": [ { "name": "limit", "value": "", "type": "query", "description": "Max number of results per [page](https://dev.frontapp.com/docs/pagination)" }, { "name": "page_token", "value": "", "type": "query", "description": "Token to use to request the [next page](https://dev.frontapp.com/docs/pagination)" }, { "name": "sort_by", "value": "", "type": "query", "description": "Field used to sort the accounts. Either `created_at` or `updated_at`." }, { "name": "sort_order", "value": "", "type": "query", "description": "Order by which results should be sorted" } ] }, "docs": "List the accounts of the company.\n\nRequired scope: `accounts:read`" }, { "info": { "name": "Create account", "type": "http" }, "http": { "method": "POST", "url": "https://api2.frontapp.com/accounts", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new account.\n\nRequired scope: `accounts:write`" }, { "info": { "name": "Fetch an account", "type": "http" }, "http": { "method": "GET", "url": "https://api2.frontapp.com/accounts/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1)." } ] }, "docs": "Fetches an account\n\nRequired scope: `accounts:read`" }, { "info": { "name": "Update account", "type": "http" }, "http": { "method": "PATCH", "url": "https://api2.frontapp.com/accounts/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1)." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an account.\n\nRequired scope: `accounts:write`" }, { "info": { "name": "Delete an account", "type": "http" }, "http": { "method": "DELETE", "url": "https://api2.frontapp.com/accounts/:account_id", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1)." } ] }, "docs": "Deletes an account\n\nRequired scope: `accounts:delete`" }, { "info": { "name": "List account contacts", "type": "http" }, "http": { "method": "GET", "url": "https://api2.frontapp.com/accounts/:account_id/contacts", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1)." }, { "name": "page_token", "value": "", "type": "query", "description": "Token to use to request the [next page](https://dev.frontapp.com/docs/pagination)" }, { "name": "limit", "value": "", "type": "query", "description": "Max number of results per [page](https://dev.frontapp.com/docs/pagination)" }, { "name": "sort_by", "value": "", "type": "query", "description": "Field used to sort the contacts. Either `created_at` or `updated_at`." }, { "name": "sort_order", "value": "", "type": "query", "description": "Order by which results should be sorted" } ] }, "docs": "Lists the contacts associated with an Account\n\nRequired scope: `contacts:read`" }, { "info": { "name": "Add contact to Account", "type": "http" }, "http": { "method": "POST", "url": "https://api2.frontapp.com/accounts/:account_id/contacts", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1)." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Adds a list of contacts to an Account\n\nRequired scope: `accounts:write`" }, { "info": { "name": "Remove contact from Account", "type": "http" }, "http": { "method": "DELETE", "url": "https://api2.frontapp.com/accounts/:account_id/contacts", "params": [ { "name": "account_id", "value": "", "type": "path", "description": "The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1)." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Removes a list of contacts from an Account\n\nRequired scope: `accounts:write`" } ] } ], "bundled": true }