Developers
Put escrow inside your own checkout.
The same REST API that powers the Safely app is available to marketplaces and platforms. Create deals, take payment and release funds from your own product.
Bearer tokens
Authenticate with a short-lived access token and refresh it with your refresh token.
JSON everywhere
Every response is
{ success, data, error }, with amounts as decimal strings or integer cents.Status events
Platform partners can receive status changes (funded, shipped, released) as webhooks — set up during onboarding.
Sandbox
Build against a test environment with test card payments before you go live.
Quick start
Create your first escrow
curl -X POST https://safely.kurasika.tech/api/escrow/transactions \
-H "Authorization: Bearer $SAFELY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Toyota Hilux 2019 — 84,000 km",
"description": "Sold as inspected, papers included",
"amount": "18500.00",
"currency": "USD",
"counterparty_email": "seller@example.com",
"counterparty_role": "seller",
"acceptance_window_days": "3",
"who_pays_fees": "split"
}'Reference
Core endpoints
Base URL https://safely.kurasika.tech/api
POST
/auth/loginExchange email and password for an access and refresh tokenPOST
/auth/refreshGet a new access token with a refresh tokenGET
/auth/meThe signed-in userPOST
/escrow/transactionsCreate an escrow transactionGET
/escrow/transactionsList transactions (limit, offset)GET
/escrow/transactions/{id}Fetch one transactionPUT
/escrow/transactions/{id}/statusMove a transaction to its next status (e.g. shipped)POST
/escrow/transactions/{id}/fundFund a transaction with a payment methodPOST
/escrow/transactions/{id}/releaseRelease held funds to the sellerPOST
/escrow/transactions/{id}/refundRefund held funds to the buyerGET
/escrow/transactions/{id}/messagesRead the deal conversationPOST
/escrow/transactions/{id}/messagesPost a message to the dealGET
/escrow/statsTotals for the signed-in userGET
/wallets/{userId}Wallet balances: available, in escrow, pending (cents)Building a marketplace?
We’ll help you design the escrow flow and get your sellers paid safely.