Quickstart
Onboard a business on the Roots sandbox, submit it for review, open its USD account, read it back, and fund it, with curl.
Onboard a business on sandbox, submit it for review, open its USD account, read the account back, and fund it with a simulated deposit.
A business can only clear review once at least one person who controls it has cleared review, so the walk-through onboards that person first.
The Postman collection's Quickstart (sandbox) folder runs this flow end to end with an owner and a director, then adds a counterparty and pays it. See Postman.
Sandbox moves no real money and answers compliance screening instantly. Use test data only.
Before you begin
-
Create an API key in the Client Portal, as described in Authentication. Give it these scopes:
persons:create,persons:read,persons:documents:upload,persons:associations:write,persons:review,accounts:create,accounts:read,transfers:create,transfers:read,fees:read. -
Export your key and the base URL:
export ROOTS_API_KEY="rts_live_..." export ROOTS_BASE_URL="https://api.sandbox.roots.finance" -
Check your billing balance on the Client Portal's Billing page. Uploading a document, submitting a review, and opening an account can each incur a fee, and while your billing balance is below its minimum those requests are refused with
400insufficient_billing_balance. In sandbox, top it up with a simulated deposit into billing (scopetransfers:create; sandbox only):curl --request POST "$ROOTS_BASE_URL/api/v1/sandbox/billing/deposits" \ --header "Authorization: Bearer $ROOTS_API_KEY" \ --header "Content-Type: application/json" \ --data '{"amount_minor": "150000"}'Read the result with
GET /api/v1/billing(scopefees:read). -
Have a PDF, PNG, or JPEG file to upload as test evidence. The steps below call it
sample.pdf.
A tax number can be held by only one person of each type per client; a repeat is a 422 validation error naming tax_number_taken on details.tax_number. Change tax_number in steps 1 and 2 each time you rerun this walk-through.
Every create call needs an Idempotency-Key. Send a new value for each new request, and the same value when you retry that request. See Idempotency.
1. Create the controlling person
Create the individual who owns and directs the business. role: null (or no role at all) marks a person who exists only as part of a business's ownership and control structure.
curl --request POST "$ROOTS_BASE_URL/api/v1/persons" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--header "Content-Type: application/json" \
--data '{
"type": "individual",
"role": null,
"details": {
"first_name": "Olive",
"last_name": "Owner",
"email": "[email protected]",
"date_of_birth": "1985-05-05",
"nationality": "US",
"occupation": "Founder",
"phone": "+15125550101",
"tax_number": "912345678",
"tax_number_country": "US"
},
"mailing_address": {
"line1": "1 Main St",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country": "US"
},
"financial": {
"primary_source_of_funds": "Operating revenue",
"expected_transaction_volume": 20,
"expected_transaction_value": "10k_100k",
"total_assets_value": "100k_1m",
"source_of_funds_description": "Customer receipts"
},
"operational": {
"account_purpose": "Business ownership"
}
}'Save the returned id as OWNER_ID. It starts with person_.
An individual needs an identity document and a proof of address before review:
curl --request POST "$ROOTS_BASE_URL/api/v1/documents" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--form subject_type=person \
--form subject_id="$OWNER_ID" \
--form type=passport \
--form [email protected]
curl --request POST "$ROOTS_BASE_URL/api/v1/documents" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--form subject_type=person \
--form subject_id="$OWNER_ID" \
--form type=utility_bill \
--form [email protected]Submit the person for review:
curl --request POST "$ROOTS_BASE_URL/api/v1/persons/$OWNER_ID/review/submit" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)"An individual's review usually runs inside this call. The response is the person with status active on a cleared review, or inactive with status_detail review_denied on a denied one. If status is still pending, wait for the person.review.completed webhook. If anything is missing, the response is a single 422 with code review_not_ready whose violations array lists every gap.
2. Create the business
curl --request POST "$ROOTS_BASE_URL/api/v1/persons" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--header "Content-Type: application/json" \
--data '{
"type": "business",
"role": "customer",
"external_id": "cust-0042",
"details": {
"business_name": "Acme Widgets LLC",
"email": "[email protected]",
"phone": "+15125550100",
"tax_number": "86-1234567",
"tax_number_country": "US",
"incorporation_number": "TX-0801234567",
"incorporation_date": "2015-06-01",
"incorporation_country": "US",
"incorporation_state": "Texas",
"legal_structure": "LLC",
"business_type": "Professional services",
"business_description": "Wholesale widget reseller"
},
"mailing_address": {
"line1": "1 Main St",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country": "US"
},
"registered_address": {
"line1": "1 Main St",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country": "US"
},
"financial": {
"primary_source_of_funds": "Operating revenue",
"expected_transaction_volume": 20,
"expected_transaction_value": "10k_100k",
"total_assets_value": "100k_1m",
"source_of_funds_description": "Customer receipts"
},
"operational": {
"account_purpose": "Treasury",
"business_jurisdictions": ["US"],
"send_jurisdictions": ["US"],
"receive_jurisdictions": ["US"],
"engages_in_activities": ["Wholesale trade"],
"counterparty_types": ["business"]
},
"regulatory": {
"regulated_status": false
},
"listing": {
"is_publicly_listed": false
}
}'Save the returned id as BUSINESS_ID. Only type and details.business_name are required to create a business; the other fields are required before it can be submitted for review.
3. Link the controlling person
Associate the cleared individual with the business. This person is a director and owns 100% of it.
curl --request POST "$ROOTS_BASE_URL/api/v1/persons/$BUSINESS_ID/associations" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--header "Content-Type: application/json" \
--data '{
"associated_person_id": "'"$OWNER_ID"'",
"roles": ["ultimate_beneficial_owner", "director"],
"ownership_percentage": 100
}'4. Upload the business documents
A business needs documents that meet four requirements: formation, proof of address, proof of source of funds, and proof of operations. Roots works out which requirement a document meets from its type:
for type in articles_of_incorporation utility_bill bank_statement invoice; do
curl --request POST "$ROOTS_BASE_URL/api/v1/documents" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--form subject_type=person \
--form subject_id="$BUSINESS_ID" \
--form type="$type" \
--form [email protected]
done5. Submit the business for review
curl --request POST "$ROOTS_BASE_URL/api/v1/persons/$BUSINESS_ID/review/submit" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)"A business review finishes asynchronously. The response shows it under way:
{
"id": "person_7c1e9a40b2d34f6e8a5b0c9d1e2f3a4b",
"type": "business",
"status": "pending",
"status_detail": "in_review",
"requirements": {
"currently_due": [],
"pending_verification": ["review"],
"errors": []
}
}While the review runs, the business cannot be edited and its associations cannot change; both answer 409. When the outcome is recorded, Roots sends a person.review.completed webhook, and GET /api/v1/persons/{person_id} shows status active on a cleared review, or inactive with status_detail review_denied on a denied one.
6. Open an account
Open the account once the business's status is active. For a person whose review has not cleared, the request is refused with 422 person_review_not_cleared and no account is created.
curl --request POST "$ROOTS_BASE_URL/api/v1/accounts" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--header "Content-Type: application/json" \
--data '{
"person_id": "'"$BUSINESS_ID"'",
"currency": "usd"
}'Save the returned id as ACCOUNT_ID. It starts with acct_. The owner must be a person with role customer; a person_id with no role is a 422.
7. Read the account
curl "$ROOTS_BASE_URL/api/v1/accounts/$ACCOUNT_ID" \
--header "Authorization: Bearer $ROOTS_API_KEY"{
"id": "acct_3f9b2c7d1e4a4b8c9d0e1f2a3b4c5d6e",
"person_id": "person_7c1e9a40b2d34f6e8a5b0c9d1e2f3a4b",
"label": null,
"currency": "usd",
"status": "active",
"status_detail": null,
"capabilities": {
"receive": "active",
"send": "active"
},
"provider_account_id": "200000001234",
"created_at": "2026-08-10T12:00:00+00:00",
"active_at": "2026-08-10T12:00:05+00:00",
"closed_at": null,
"balance": {
"available_minor": "0",
"pending_minor": "0",
"current_minor": "0"
}
}The account opens pending with status_detail provisioning while the bank account is opened, then becomes active. Roots sends account.status.changed when status changes. Only an active account can send or receive a transfer; capabilities shows what it can do. Balances are integer strings in minor units: "125000" is 1,250.00 USD.
8. Fund the account
Once the account is active, simulate an inbound ach deposit. This endpoint exists in sandbox only.
curl --request POST "$ROOTS_BASE_URL/api/v1/sandbox/deposits" \
--header "Authorization: Bearer $ROOTS_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"account_id": "'"$ACCOUNT_ID"'",
"amount_minor": "125000"
}'The response is 202 with the id of the transfer the deposit will be recorded under:
{
"id": "xfer_5d2a8e1f9b3c4d7e8f0a1b2c3d4e5f6a"
}Poll GET /api/v1/transfers/{transfer_id} until the transfer appears and reaches status settled. The account's balance.available_minor then shows the deposited amount. Every call is a new deposit.
Next steps
- Onboard a business covers every review requirement and association role.
- Manage accounts covers freezing, closing, and statements.
- Create transfers moves money out of the account.
- Webhooks and events replaces polling with events.
- Try it in Postman: Roots API — sandbox collection runs this flow and every endpoint. See Postman to set it up.
Updated 1 day ago