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

  1. Open the panel → Integrations → API keys for AI agents (MCP) section.
  2. Enter a name that identifies the agent (e.g. ā€œTreasury agentā€).
  3. 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

RoleWhat it allows
Read-onlyQuery balance, activity, reports, employees and payroll status.
FinanceSame 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.

Did this page help you?