Skip to main content
The Ramp API exposes the Meld-backed onramp/offramp flow used by Swig wallet integrations.

Auth

Use an API key:
Authorization: Bearer sk_your_api_key

Get options

GET /wallet/api/ramp/options Query parameters:
ParameterTypeDescription
organization_idstringOrganization id
partner_application_idstringOptional partner application id
country_codestringOptional ISO country filter
fiat_currency_codestringOptional fiat currency filter

Quote ramp

POST /wallet/api/ramp/quote
{
  "customer": {
    "organizationId": "org_123",
    "swigUserId": "user_123",
    "customerType": "RAMP_CUSTOMER_TYPE_INDIVIDUAL"
  },
  "wallet": {
    "walletId": "wallet_123",
    "walletAddress": "WalletPublicKey",
    "network": "NETWORK_DEVNET"
  },
  "direction": "RAMP_DIRECTION_ONRAMP",
  "sourceAmount": "100",
  "sourceCurrencyCode": "USD",
  "destinationCurrencyCode": "USDC",
  "countryCode": "US",
  "paymentMethodType": "RAMP_PAYMENT_METHOD_TYPE_CREDIT_DEBIT_CARD"
}
The response returns one or more quotes with provider, exchange-rate, fee, and destination amount fields.

Create session

POST /wallet/api/ramp/sessions
{
  "customer": {
    "organizationId": "org_123",
    "swigUserId": "user_123",
    "customerType": "RAMP_CUSTOMER_TYPE_INDIVIDUAL"
  },
  "wallet": {
    "walletId": "wallet_123",
    "walletAddress": "WalletPublicKey",
    "network": "NETWORK_DEVNET"
  },
  "direction": "RAMP_DIRECTION_ONRAMP",
  "selectedQuoteId": "quote_123",
  "sourceAmount": "100",
  "sourceCurrencyCode": "USD",
  "destinationCurrencyCode": "USDC",
  "countryCode": "US",
  "serviceProvider": "RAMP_SERVICE_PROVIDER_OTHER",
  "redirectUrl": "https://app.example/ramp/return"
}
The response includes localSessionId, Meld session/customer ids, and launchUrl. Treat launch URLs as user-specific session URLs.

List transactions

GET /wallet/api/ramp/wallets/{wallet_id}/transactions Query parameters:
ParameterTypeDescription
networkenumNETWORK_DEVNET or NETWORK_MAINNET
directionenumOptional ramp direction
statusenumOptional transaction status
limitnumberOptional result limit