Accounts API
Accounts API
Read your Vezmo accounts from your own systems: accounts and balances, transactions, monthly statements and events. With send with approval, your systems can also add recipients and ask for payments, and a person in your business approves each one in the dashboard. No key can approve anything, send money on its own, raise a cap, or change keys, the team or webhook endpoints.
Vezmo switches the Accounts API on per business. Until it is on, every call answers 403 api_access_not_enabled; ask from Settings › Developers › Accounts API in the dashboard.
Endpoints
POST /oauth/token— swap a key for a 15-minute access token (below).- Accounts and balances:
GET /accounts,GET /accounts/{id},GET /balances(accounts.read). - Transactions:
GET /transactions,GET /transactions/{id}(transactions.read). - Statements:
GET /statements,GET /statements/{id}as JSON, CSV or PDF (statements.read). - Events and webhooks:
GET /events,GET /events/{id}(events.read), and signed webhooks. - Sandbox:
POST /simulations/…with a test key.
Send with approval (once Vezmo switches it on for your business):
- Your key:
GET /me— its type, permissions, expiry and what its caps leave today. - Recipients:
GET /recipient-requirements,GET /recipients,POST /recipients,PATCHandDELETE /recipients/{id}(recipients.read,recipients.write). - FX rates:
GET /fx/rates(fx.read). - Quotes:
POST /quotes(quotes.write),GET /quotes/{id}. - Transfer requests:
POST /transfer-requests,…/{id}/cancel(transfers.request),GET /transfer-requests. - Approvals:
GET /approvals— read only. - Transfers:
GET /transfers(transfers.read). - Idempotency and retries: the
Idempotency-Keyheader.
Base URL: https://api.vezmo.com/api/v1, for test and live keys alike. The key decides the data. The OpenAPI 3 description of these routes is at https://api.vezmo.com/api/v1/openapi.json, for code generators and API tools.
Access tokens
POST /oauth/token is the OAuth 2.0 client-credentials grant (RFC 6749), so any OAuth library works. Authenticate with the key ID and secret one way: HTTP Basic (client_secret_basic), or client_id and client_secret in the body (client_secret_post). The body is form-encoded or JSON. Each endpoint needs its Accounts API permission on the key (a key holding only them has an ID like vzm_live_ro_… or vzm_test_ro_…).
curl -X POST https://api.vezmo.com/api/v1/oauth/token \
-u "$VEZMO_KEY_ID:$VEZMO_SECRET" \
-d grant_type=client_credentialsAn optional scope (space-separated) narrows the token to some of the key's permissions; the token can then use only those, and only while the key still holds them.
curl -X POST https://api.vezmo.com/api/v1/oauth/token \
-H "Content-Type: application/json" \
-d '{
"grant_type": "client_credentials",
"client_id": "vzm_live_ro_4Hq9ZbT1mK2xPv7d",
"client_secret": "'"$VEZMO_SECRET"'",
"scope": "accounts.read transactions.read"
}'{
"access_token": "eyJhbGciOiJFUzI1NiIs…",
"token_type": "Bearer",
"expires_in": 900,
"scope": "accounts.read transactions.read"
}- The token lasts 15 minutes (
expires_in: 900). There is no refresh token: ask again. The key's status, IP limits and your business's access are checked again on every call, so revoking a key stops it at once. - A secret found in public code (GitHub secret scanning): a live key is revoked at once and its tokens end; a test key can no longer run simulations (
403 key_leaked) and still reads test data until you revoke it. Every admin of your business is told. - 10 tokens a minute per key. Failed exchanges: 5 a minute per IP address (a correct secret always gets through).
- Answers are OAuth's own shape. Errors:
invalid_request,unsupported_grant_type,invalid_client(401, withWWW-Authenticate),invalid_scope, andunauthorized_clientwithcodeip_not_allowedorbusiness_api_paused. AlwaysCache-Control: no-store.
{
"error": "invalid_client",
"error_description": "The key ID or secret is wrong, or the key is switched off, revoked or expired."
}// Node 18+: one token, reused until a minute before it ends.
let cached = { token: null, until: 0 };
export async function accessToken() {
if (cached.token && Date.now() < cached.until) return cached.token;
const res = await fetch("https://api.vezmo.com/api/v1/oauth/token", {
method: "POST",
headers: {
Authorization: "Basic " + Buffer.from(`${process.env.VEZMO_KEY_ID}:${process.env.VEZMO_SECRET}`).toString("base64"),
"Content-Type": "application/x-www-form-urlencoded",
},
body: "grant_type=client_credentials",
});
if (!res.ok) throw new Error(`Token refused: ${res.status} ${await res.text()}`);
const body = await res.json();
cached = { token: body.access_token, until: Date.now() + (body.expires_in - 60) * 1000 };
return cached.token;
}Your first call
curl https://api.vezmo.com/api/v1/balances \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Vezmo-Version: 2026-11-14"Versions
Vezmo-Version: 2026-11-14 is the only version today. Your business is pinned to the newest version at its first call; calls without the header use the pin, and a header overrides it for that call only. Every answer echoes Vezmo-Version. An unknown version is 400 validation_failed with field: "Vezmo-Version".
Conventions
- Envelope:
{ success, data, meta, requestId, timestamp }; errors{ success: false, errors, requestId }, each error{ code, message, field?, help }. - Money: integers in the currency's smallest unit with an ISO currency (
125000+USD= US$1,250.00). - Times: RFC 3339, UTC. Time filters must carry a zone, like
2026-10-01T00:00:00Z. - Ids:
acct_,txn_,stmt_,evt_,inc_,tr_, and with send with approvalrcp_,trq_,apr_,quo_. Another business's id answers404, also inside a body (recipientId). - Bodies: a field an endpoint doesn't take is
400 validation_failed(“Not a field of this endpoint: status.”), never ignored. - Masking: account numbers show the last 4 (
••••1234). Payer names are shown. - Filters: a parameter an endpoint doesn't take is
400 unsupported_filter, never ignored. - Caching: every answer is
Cache-Control: no-store.
Send with approval
Your systems, or an AI agent you run, prepare payments; a person approves them. Vezmo switches it on per business, after the Accounts API. Until then its routes answer 404 “No such endpoint.”, its permissions are available: false in the key form, and a write answers 403 api_access_not_enabled “Sending with approval isn't switched on for this business. Contact Vezmo support.”
- Add a recipient with
POST /recipients. It waits aspending_approval. - A person approves it in Accounts › Approvals, one at a time, with an emailed code and a passkey or authenticator app. Then it waits its usual time before it can be paid (
usableFrom). - Ask for a payment with
POST /transfer-requests. It waits aspending_approval. - A person approves it, up to 50 at once, against our own record of each recipient and a fresh price. Only then is the transfer made, exactly as a payment sent from the dashboard.
- Follow it with
GET /transfersor thetransfer.*events.
There is no approve endpoint, and there never will be: approvals happen only in the dashboard, never by email link and never with a key. Amounts of USD 5,000 or more can't be requested by API yet. Every cap is on Transfer requests.
Keys for sending with approval
- Read and write key (
vzm_live_rq_…,vzm_test_rq_…): any key with an Accounts write permission (recipients.write,quotes.write,transfers.request). It holds Accounts API permissions only: mixing them with VezmoPay permissions is400 scopes_cant_mix. - AI agent key (
vzm_live_ag_…,vzm_test_ag_…), for an AI agent. It can hold onlyaccounts.read,transactions.read,statements.read,events.read,recipients.read,recipients.write,fx.read,quotes.write,transfers.readandtransfers.request(anything else is400 scope_not_allowed_for_key_type). Its recipients and requests expire after 24 hours, its caps are lower, and the person approving sees “Requested by an AI agent”. It can only stop recipients still waiting for approval and cancel its own requests (403 key_type_not_allowed). - Expiry: a live key made with any Accounts API permission always expires: 180 days unless you choose a date, and at most 365 days ahead (
400 expiry_too_long). A key made before this rule keeps the expiry it has until you change it. - Unused keys (not on yet): once we switch this rule on, write permissions unused for 60 days will be removed (the key keeps reading) and a key unused for 90 days will be revoked. When it is on, every key admin will be emailed 7 days before either, and no key changes before 12 January 2027.
- The person responsible for the key must still be allowed to send money (for quotes and requests) or to manage recipients (for recipients). If not, writes answer
403 key_owner_cannot_senduntil an admin takes the key over in Settings › Developers. A person on a security hold makes their keys' writes answer423 security_hold. - Caps on the key: set lower caps when you create it, and lower them later. They can never be raised (
400 limits_only_lower): more room means a new key. - A key that stops withdraws what it asked for: switched off, revoked or deleted, its transfer requests and recipients still waiting for approval are canceled. A key that loses
transfers.requestorrecipients.writewithdraws those it asked for.
Pagination
Lists are newest first. limit takes 1–100 (default 25). When meta.hasMore is true, pass meta.nextCursor as startingAfter. A cursor from another list or business is 400 validation_failed (field: "startingAfter").
curl "https://api.vezmo.com/api/v1/transactions?limit=50&startingAfter=txn_cm3k9q2xv0001" \
-H "Authorization: Bearer $ACCESS_TOKEN"
# meta: { "hasMore": true, "nextCursor": "txn_cm3k9p7aa00ff" }Errors
{
"success": false,
"errors": [
{
"code": "insufficient_scope",
"message": "This API key doesn't have the statements.read permission.",
"scopes": ["statements.read"],
"help": "https://user.vezmo.com/docs/v1/errors#insufficient_scope"
}
],
"requestId": "1b1f55e8-b214-48a9-92f1-d6aad8f7a312"
}Every code is explained on Errors, and each error's help links straight to it.
Rate limits
- Every answer carries
RateLimit-Limit,RateLimit-Remaining,RateLimit-ResetandRequest-Id. A429addsRetry-AfterandVezmo-RateLimit-Reason. - Your key's own per-second limit applies, as on the rest of the API.
- Statements: 30 a minute per key, and 60 new statements a minute per business (each server enforcing its share; a month already made is free).
- Send with approval:
POST /recipients1 a second per key;DELETE /recipients/{id}1 a second and 30 a minute per key;POST /quotes30 a minute per key;POST /transfer-requests5 a second and 300 a minute per key (a test key: 2 a second); simulations 5 a second and 60 a minute per key.