Skip to main content

Authentication and Rate Limits

Authentication

  • To authenticate API requests, a user needs to provide a valid and active credential (token).
  • Create a new API token in the dashboard with the required permissions for the specific actions you intend to perform.

Creating a Token:

  1. Navigate to the Accounting software dashboard at https://dashboard.accounting.sh.
  2. In the dashboard, go to the Credentials section.
  3. Create a new API token, specifying the necessary permissions required for your intended API actions.
  4. Store the generated token securely. Best practice is to store it in an environment variable to prevent inadvertent exposure.
export ACCOUNTING_API_TOKEN="your_generated_token"

Rate Limits

The current rate limit for API requests is set at 3 requests per 180 seconds. If you requires a higher rate limit, please contact us via email at [email protected].

Permissions:

Explore the following list of permissions along with a quick description of their functionalities:

PermissionDescription
allFull access to all features and functionalities.
list.invoicesView a list of invoices.
add.invoiceCreate a new invoice.
view.invoiceView details of a specific invoice.
edit.invoiceEdit existing invoice details.
add.invoice.paymentAdd a payment to an invoice.
edit.invoice.revenuesEdit revenues associated with an invoice.
list.revenuesView a list of revenues.
add.revenueAdd a new revenue entry.
view.revenueView details of a specific revenue entry.
edit.revenueEdit existing revenue details.
list.contactsView a list of contacts.
add.contactAdd a new contact.
view.contactView details of a specific contact.
edit.contactEdit existing contact details.
delete.contactDelete a contact.
list.companiesInternal Use Only - View a list of companies.
add.companyInternal Use Only - Add a new company.
view.companyView details of a specific company.
edit.companyEdit existing company details.
list.company.settingsView a list of company settings.
view.company.settingsView details of a specific company setting.
edit.company.settingsEdit existing company setting details.
list.paymentsView a list of payments.
add.paymentAdd a new payment.
view.paymentView details of a specific payment.
edit.paymentEdit existing payment details.
delete.paymentDelete a payment.
list.billsView a list of bills.
add.billAdd a new bill.
view.billView details of a specific bill.
edit.billEdit existing bill details.
delete.billDelete a bill.
list.categoriesView a list of categories.
add.categoryAdd a new category.
edit.categoryEdit existing category details.
view.categoryView details of a specific category.
delete.categoryDelete a category.
list.accountsView a list of accounts.
add.accountAdd a new account.
view.accountView details of a specific account.
edit.accountEdit existing account details.
delete.accountDelete an account.
list.transfersView a list of transfers.
add.transferAdd a new transfer.
view.transferView details of a specific transfer.
edit.transferEdit existing transfer details.
delete.transferDelete a transfer.
list.tagsView a list of tags.
add.tagAdd a new tag.
view.tagView details of a specific tag.
edit.tagEdit existing tag details.
delete.tagDelete a tag.
list.documentsView a list of documents.
add.documentAdd a new document.
view.documentView details of a specific document.
edit.documentEdit existing document details.
delete.documentDelete a document.
process.documentProcess a document using the AI assistant.
list.webhooksView a list of webhooks.
add.webhookAdd a new webhook.
view.webhookView details of a specific webhook.
edit.webhookEdit existing webhook details.
delete.webhookDelete a webhook.
list.credentialsView a list of credentials.
add.credentialAdd a new credential.
view.credentialView details of a specific credential.
edit.credentialEdit existing credential details.
delete.credentialDelete a credential.
list.quotesView a list of quotes.
add.quoteAdd a new quote.
view.quoteView details of a specific quote.
edit.quoteEdit existing quote details.
list.receiptsView a list of receipts.
add.receiptAdd a new receipt.
view.receiptView details of a specific receipt.
edit.receiptEdit existing receipt details.
view.currency.ratesView currency exchange rates.
view.tax.ratesView tax rates.
vat.listView a list of Value Added Tax ID (VAT ID) entries.
vat.addAdd a new VAT ID entry.
vat.viewView details of a specific VAT ID entry.
vat.editEdit existing VAT ID entry details.
vat.deleteDelete a VAT ID entry.
regenerate.invoiceRegenerate an invoice.
regenerate.receiptRegenerate a receipt.
regenerate.quoteRegenerate a quote.
company.deleteInternal Use Only - Delete a company.
invoice.deleteDelete an invoice.
quote.deleteDelete a quote.
receipt.deleteDelete a receipt.
revenue.deleteDelete a revenue entry.
transaction.listView a list of transactions.
transaction.addAdd a new transaction.
transaction.viewView details of a specific transaction.
transaction.editEdit existing transaction details.
transaction.deleteDelete a transaction.
stats.viewView statistics.
log.viewView logs.
exportRequest a new export.
attachment.listView a list of attachments.
attachment.addAdd a new attachment.
attachment.viewView details of a specific attachment.
attachment.editEdit existing attachment details.
attachment.deleteDelete an attachment.
account.connections.listView a list of account connections.
account.connections.deleteDelete an account connection.
account.connections.banksView a list of bank account connections.
searchPerform a search.
expense_report.listView a list of expense reports.
expense_report.addAdd a new expense report.
expense_report.viewView details of a specific expense report.
expense_report.editEdit existing expense report details.
expense_report.deleteDelete an expense report.
expense_report.limited_to_selfLimit expense reports to the user.
expense_report.view.accountView expense reports related to a specific account.
expense_report.view.userView expense reports related to a specific user.
expense_report.edit.accountEdit expense reports related to a specific account.
accounting_code.listView a list of accounting codes.
accounting_code.addAdd a new accounting code.
accounting_code.viewView details of a specific accounting code.
accounting_code.editEdit existing accounting code details.
accounting_code.deleteDelete an accounting code.
transaction_code.listView a list of transaction codes.
transaction_code.addAdd a new transaction code.
transaction_code.viewView details of a specific transaction code.
transaction_code.editEdit existing transaction code details.
transaction_code.deleteDelete a transaction code.
oauth_config.listView a list of OAuth configurations.
oauth_config.addAdd a new OAuth configuration.
oauth_config.viewView details of a specific OAuth configuration.
oauth_config.editEdit existing OAuth configuration details.
oauth_config.deleteDelete an OAuth configuration.

Customize permissions based on your specific needs, ensuring that your API token has the necessary access rights for the actions you plan to execute.