Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Card account Open your card account

Open your card account

Opens your business's one card account, which backs every card you issue. Send `type` `card`, `currency` `USD` and your business's own customer ID, which is the `customer_id` on your account whose `category` is `main`. The API refuses an end customer's ID and a second card account. The account starts `pending`. Wait for the `account.activated` webhook, or read the account until it is `active`, before you activate cards with it.

POSThttps://api.gravv.xyz/v1/accountsTry it
Api-Key

Opens your business's one card account, which backs every card you issue. Send type card, currency USD and your business's own customer ID, which is the customer_id on your account whose category is main. The API refuses an end customer's ID and a second card account. The account starts pending. Wait for the account.activated webhook, or read the account until it is active, before you activate cards with it.

POST /v1/accounts opens card accounts only at lead_bank and cross_river_bank, in USD. Leave bank out and Gravv tries lead_bank first, then cross_river_bank. Gravv sets category itself: main for your business's own customer. v1 reads your business's KYC from its customer record and takes no KYC data in the body.

This is the only use of POST /v1/accounts that Gravv documents. Open every other account, for any bank, currency or country, with POST /v2/accounts. Every error is HTTP 400, for example:

•
failed to create internal account: card accounts cannot be created for this customer — this account type is reserved for the tenant: you sent an end customer's ID.
•
failed to create internal account: card account already exists for customer (account_id: <id>): use that card account. A deleted, frozen or failed card account does not count.
•
failed to create internal account: kyc validation failed: no KYC information found for the customer: your business's basic KYC is not completed.
•
failed to create internal account: account issuance for the requested currency USD and network <network> is not supported: a bank other than lead_bank or cross_river_bank.
•
missing idempotency key in request headers: send an Idempotency-Key.

Headers

NameDescription
Idempotency-Key:stringRequired
Required for POST requests. The key is 1 to 255 printable ASCII characters. A retry with the same key and body within 24 hours returns the first response, including a 400. After you fix a failed request, send a new key.

Body parameters

NameDescription
currency:stringRequired

Always USD

Possible values: USD

type:stringRequired

Always card

Possible values: card

label:stringRequired
Label for the account
customer_id:stringRequired
Your business's own customer ID. It is the customer_id on your account whose category is main.
blockchain_network:stringRequired

Network of the account's wallet, in lower case

Possible values: polygon, ethereum, solana, stellar, avalanche_c_chain

bank:string

Bank that holds the card account. Leave it out and Gravv tries lead_bank first, then cross_river_bank. Any other value is refused.

Possible values: lead_bank, cross_river_bank

Response

Returns 200 OK. Account created

NameDescription
data:objectRequired
An internal account. The API leaves out empty fields. It also returns accounts opened with /v2/accounts, without their v2-only fields.
Show 27 child attributesobject
error:nullRequired

Errors

StatusMeaning
200Account created
400The request failed. These account routes return every error as HTTP 400, including not found. Read the error message for the cause.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/accounts' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: create-account-ops-1' \
--header 'Content-Type: application/json' \
--data '{
"currency": "USD",
"type": "card",
"label": "cards",
"customer_id": "550e8400-e29b-41d4-a716-446655440178",
"blockchain_network": "polygon",
"bank": "cross_river_bank"
}'
Responseapplication/json
200400OK
{
"data": {
"id": "6f1c2b8e-9a43-4f0e-8d35-2b7f0f6c1a90",
"label": "cards",
"date_created": "2026-10-13T09:12:44Z",
"wallet_address": "0x25a4c9853e761753ae18d6871731e305b8b0b2a4",
"blockchain_network": "polygon",
"type": "card",
"customer_id": "550e8400-e29b-41d4-a716-446655440178",
"capabilities": [
"transfer",
"receive",
"remittance"
],
"currency": "USD",
"tenant_name": "Acme Payments",
"tenant_id": "b8b2f7f4-3c2a-4f3e-9d61-0c5a7d1e2f33",
"status": "pending",
"category": "main"
},
"error": null
}