openintegration200+ connectors

Create department in Alegra

Accounting API · write, waits for approval · 100% field coverage

Your agent can create department in Alegra through Apideck's Accounting API, the same call it makes for every Accounting app. It changes data in the customer's Alegra account, so it stops with the exact request until a person approves it. Apideck adds the customer's Alegra credentials, so no token ever reaches the agent.

Paste into Claude Code, Cursor or any coding agent.

The call

POST https://unify.apideck.com/accounting/departments

Headers: x-apideck-service-id: alegra, plus your app id and the customer's consumer id. Apideck MCP tool: accounting-departments-add. Agent operation id: unified.accounting.departmentsAdd.

Body fields

FieldTypeDescription
parent_idstringA unique identifier for an object.
display_idstringId to be displayed.
namestringThe name of the department.
statusstringBased on the status some functionality is enabled or disabled.
subsidiariesarray
codestringThe code of the department.
row_versionstringA binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is m

More for departments in Alegra

list_departmentsget_departmentupdate_departmentdelete_department

Create department in other Accounting apps

The same call works for each of these; only the service id changes.

CampfireIntuit Enterprise SuiteQuickBooksSage Intacct RESTWafeq