Build on CowriePay
A clean REST API, scoped keys, signed webhooks and a sandbox. Go live in 10 to 15 minutes.
Get started
Request a sandbox key
Fill out the form at app.cowriepay.io/get-started. Our team sets up your sandbox workspace within 48 hours.
Build on the Sandbox
Test on TRON Nile, BSC testnet and Ethereum Sepolia. Your sandbox balance is pre-funded with test tokens.
Sign your requests
Every /v2 request is signed with HMAC-SHA256 using your scoped API key.
Go live
Switch the base URL to production and use your live key.
https://api.cowriepay.ioSandbox https://sandbox-api.cowriepay.io- Create a wallet in a single API call
- Get a signed webhook on every deposit and payout
- Test everything free in the Sandbox
curl https://api.cowriepay.io/v2/wallets \
-H "Authorization: Bearer cpk_live_..." \
-d chain=TRON_MAINNET \
-d asset=USDT_TRONWhat you get
REST API and OpenAPI
A predictable REST API with an OpenAPI reference you can generate clients from.
Scoped API keys
Fine-grained keys, separate live and test, least privilege by default.
Signed webhooks
HMAC-signed events with rotation and an overlap window, so you never miss a delivery.
Sandbox
A full testnet environment to build and verify before going live.
Idempotency
Safe retries on write operations with idempotency keys.
Real-time updates
Webhooks and dashboard updates as deposits confirm and payouts settle.
Webhook events
DEPOSIT_DETECTEDDEPOSIT_CONFIRMEDDEPOSIT_SWEPTWITHDRAWAL_PROCESSINGWITHDRAWAL_CONFIRMEDWITHDRAWAL_FAILEDBENEFICIARY_ADDEDPOST /your-endpoint
X-CowriePay-Signature: t=1718700000,v1=9f2c...
{
"event": "DEPOSIT_CONFIRMED",
"data": {
"asset": "USDT",
"chain": "TRON",
"amount": "250.00",
"confirmations": 19,
"status": "CONFIRMED"
}
}