Developer Layer

Stableyard provides comprehensive tools for wallets, apps, SaaS platforms, fintechs, and games to integrate stablecoin payments.

API Categories

Quick Start

1. Get API Key

Contact us for API access:

2. Register a User

curl -X POST https://api.stableyard.fi/sdk/v1/register \
  -H "x-sdk-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "partnerId": "your_partner_id",
    "username": "alice",
    "addresses": ["0x..."]
  }'

3. Create Vault

curl -X POST https://api.stableyard.fi/sdk/v1/create-vault \
  -H "x-sdk-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "user_abc123"
  }'

4. Accept Payment

curl -X POST https://api.stableyard.fi/sdk/v1/quote \
  -H "x-sdk-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "payer_user_id",
    "partnerId": "your_partner_id",
    "amount": "100.00",
    "destinationPaymentAddress": "merchant@stableyard"
  }'

Integration Flow

API Reference

Account Endpoints

EndpointMethodDescription
/sdk/v1/registerPOSTCreate Money Account
/sdk/v1/get-userGETGet user by ID or username
/sdk/v1/check-usernameGETCheck username availability
/sdk/v1/resolveGETResolve payment address

Vault Endpoints

EndpointMethodDescription
/sdk/v1/create-vaultPOSTDeploy Safe vault
/sdk/v1/get-balancePOSTGet single chain balance
/sdk/v1/get-balancesGETGet all chain balances

Payment Endpoints

EndpointMethodDescription
/sdk/v1/quotePOSTCreate payment quote
/sdk/v1/settlePOSTExecute settlement
/sdk/v1/get-deposit-addressPOSTGet deposit address

KYC Endpoints

EndpointMethodDescription
/sdk/v1/is-kyc-doneGETCheck KYC status
/sdk/v1/get-kyc-linkGETGet KYC verification link

Universal Deposit Addresses

Generate chain-specific deposit addresses that route to user’s Money Account:
curl -X POST https://api.stableyard.fi/sdk/v1/generate \
  -H "x-sdk-key: YOUR_API_KEY" \
  -d '{
    "userId": "user_abc123",
    "chainId": 8453
  }'
Deposits are automatically:
  • Detected by watchers
  • Swapped if needed
  • Credited to user balance

Webhook Events

EventDescription
payment.createdPayment order created
payment.pendingAwaiting confirmation
payment.completedPayment settled
payment.failedPayment failed
account.createdMoney Account registered
vault.createdVault deployed
kyc.completedKYC verified

SDKs

LanguageStatus
TypeScript/JavaScriptAvailable
PythonComing Soon
GoComing Soon

Security

  • All API calls require x-sdk-key header
  • Webhook signatures should be verified
  • Vaults are non-custodial
  • Policy engine enforces transaction rules
Full API documentation: See SDK & API Reference