# How the Accounts API keeps your money safe

The Accounts API's security model in plain words, covering the access levels, what every call is checked against, why a person approves every payment and recipient, what that approval binds, limits and duplicates, how keys are made, kept and retired, what happens when a secret leaks, and what no key and no one at Vezmo can do.

Source: https://dev.vezmo.com/docs/developers/accounts-api-security


## Overview

The Accounts API reaches your money, so we built it the way your finance team would want: a key can do only what you
gave it, every payment and every new recipient needs a person in your business, and no key can ever approve, change
your keys or reach your team. This page describes how, so you and your security team can check it.

## Access levels

We switch the Accounts API on business by business, one level at a time.

| Level | What your keys can do | Who switches it on |
| --- | --- | --- |
| Off | Nothing: every Accounts API call is refused. | — |
| Read | Read your accounts, balances, transactions, statements and events. | Our team |
| Send with approval | Also ask for payments and new recipients, which a person in your business approves. | Our team, with a senior administrator's approval |

Sending with approval is switched on for selected businesses.

## Every call is checked

- **Your business and your mode.** A key reads only its own business, and only test or live data, never both. An id
  that isn't yours answers `404`, as if it didn't exist.
- **The permission.** A key holds only the permissions chosen when it was made. They can be removed, never added.
- **The key's state, each time.** A switched-off, revoked or expired key stops at once, because its state is read on
  every call, not cached in the access token. Access tokens last 15 minutes.
- **Masked details.** Account numbers come masked to their last 4 digits. Full details stay in the dashboard.
- **Strict requests.** A field an endpoint doesn't take, or a filter it doesn't know, is refused, never ignored.

## A person approves every payment and recipient

A key can ask; only a person in your business can approve. They do it in the dashboard, with a code we email them and
their passkey or authenticator app.

- **What is approved is what will happen.** The approval binds the exact payments on screen: each recipient as we hold
  it, each amount, fee and rate from a fresh price, and the total. We check it three times: when the person's checks
  start, when they approve, and again inside the step that makes each payment. If anything changes before the money
  moves, the approval no longer matches, nothing is sent and the person is asked to look again. Their checks aren't
  spent on a change found before the approval.
- **Not the key's own person.** When your business has two or more people who can approve, the person behind a key
  can't approve its requests.
- **New recipients wait.** A recipient added by API is approved on its own, then waits before it can be paid, counted
  from the approval. Its bank details can never be edited: new details are a new recipient.
- **Nothing approves by email or by key.** Our emails hold no approve link. There is no approve endpoint.

(Diagram: Three checks. One: when the person's checks start, they are tied to the exact payments: each recipient, amount, fee and rate. Two: when the person approves, every fact is read again; if one changed, nothing is sent and the checks aren't spent. Three: the facts are checked once more inside the step that makes each payment. If anything changed, nothing is sent and the person looks again.)

See [Approve API requests](/docs/developers/accounts-api-approvals).

## Limits and duplicates

- **Limits** on each request, each day, each recipient and the requests waiting at once, with lower ones for agent
  keys. See [Limits for sending with approval](/docs/developers/accounts-api-limits).
- **Retries are safe.** Every payment request, quote and new recipient carries an `Idempotency-Key`, so a retry with
  the same `Idempotency-Key` never makes a second one.
- **Duplicates are flagged.** The person approving sees a flag on a payment of the same amount to the same recipient
  within 24 hours. A request for one is normally refused unless your system says it is a new payment.

## Keys

- **Typed and shown once.** A key ID says whether it is test or live and what it can do (`ro` read-only, `rq` read and
  write, `ag` an AI agent). The secret is shown once and we keep only a fingerprint of it.
- **A responsible person.** Every key has one. If they leave your team, the key stops until someone takes it over. If
  they can no longer send money or manage recipients, the key can no longer ask for either.
- **Live keys expire.** A new live key with Accounts API permissions lasts 180 days unless you choose a date, and never
  more than 365 days. A key made before this rule keeps the expiry it had until you change it.
- **Unused power will lapse.** Once we switch this rule on, write permissions unused for 60 days will be removed from a
  live key with Accounts API permissions, and a key unused for 90 days will be revoked. It isn't on yet. When it is,
  we'll email your key admins 7 days before any key changes, and no key changes before 12 January 2027.
- **Your addresses only, if you want.** A key can be limited to your servers' IP addresses.

See [Keys and permissions for the Accounts API](/docs/developers/accounts-api-keys).

## When a secret leaks

If GitHub finds one of your secrets in public code, it tells us, and we tell every admin of your business. A live key
is revoked at once. We also watch for unusual use, such as a key used from somewhere new.

## What no key can ever do

- Approve anything, its own requests included.
- Send money without a person's approval.
- Make, see, roll or change API keys, or raise a limit.
- Change your team, roles, IP limits or security settings.
- Add or change webhook endpoints.
- Lift a hold, or switch the Accounts API on or off.

## What our team can and can't do

Our team switches access on and off, can revoke a key, and reviews transfers that need a check, as for any
transfer. We can see what waits for your approval. We can never approve it for you.

## Related

- [Accounts API](/docs/developers/accounts-api)
- [Approve API requests](/docs/developers/accounts-api-approvals)
- [AI agents and the Accounts API](/docs/developers/accounts-api-agents)
- [Security & Compliance](/security-compliance)

Vezmo is a financial technology company, not a bank. Banking, stablecoin and card services are provided by regulated
partners.
