API keys and AI agents (MCP)
Connect your business account to Claude or other AI agents: D-OneCash exposes your panel as an MCP server (Model Context Protocol), the standard used by the leading agents. Your agent reads your operation with your real data; the important decisions still go through your team.
Available on the Growth and Enterprise plans. API keys are managed from Integrations in the panel.
Create an API key
- Open the panel ā Integrations ā API keys for AI agents (MCP) section.
- Enter a name that identifies the agent (e.g. āTreasury agentā).
- Choose the keyās role and click Create key.
The key is shown only once when created ā save it right then, it cannot be retrieved again (D-OneCash only stores a hash). Limit: 5 active keys per company. Only administrators can create and revoke them.
Connect your agent
The endpoint is https://app.d-onecash.com/api/mcp (HTTP transport). In Claude Code:
claude mcp add --transport http d1c https://app.d-onecash.com/api/mcp --header "Authorization: Bearer YOUR_API_KEY"
In other MCP-compatible clients, point them at that same endpoint and send the key in the Authorization: Bearer header.
Key roles
| Role | What it allows |
|---|---|
| Read-only | Query balance, activity, reports, employees and payroll status. |
| Finance | Same as read-only; once writes are enabled, it will also be able to propose payments and payroll. |
What your agent can query
- Company balance and treasury.
- Activity (transfer history).
- Payroll status (executed batches and scheduled runs).
- Employees and their verification status.
- Pending approvals.
Security by design
- The agent never moves money. Any payment it proposes goes to the Approvals queue and a person on your team decides in the panel (dual control).
- Instant revocation: any key can be revoked immediately from Integrations.
- Audit: key creation and revocation are recorded in the panelās audit log.
Updated about 1 month ago