cURL
curl --request POST \ --url https://api.zebedee.io/api/v1/ramp-widget \ --header 'Content-Type: application/json' \ --header 'apikey: <apikey>' \ --data '{ "email": "<string>", "webhook_url": "<string>", "access_token": "<string>", "quote_currency": "<string>", "base_currency": "<string>", "destination": "<string>", "reference_id": "<string>", "metadata": {} }'
{ "success": true, "data": { "session_token": "eyJraWQiOiJzLWE1OWNkMjc4...", "widget_url": "https://ramp.zbdpay.com/?session=eyJraWQiOiJzLWE1OWNkMjc4...", "session_id": "ses_9n3f7h2u4b", "expires_at": "2025-06-09T12:00:00Z" } }
Initialize a new onramp widget session for a user
curl -X POST https://api.zebedee.io/api/v1/ramp-widget \ -H "Content-Type: application/json" \ -H "apikey: YOUR_API_KEY" \ -d '{ "email": "user@example.com", "webhook_url": "https://yourapp.com/webhooks/zbd" }'
{ "success": false, "error": { "code": "INVALID_EMAIL", "message": "Please provide a valid email address" } }
INVALID_EMAIL
INVALID_WEBHOOK_URL
UNAUTHORIZED
RATE_LIMITED
webhook_url
{ "id": "evt_2n4f8gu3nf", "type": "onramp.purchase.completed", "created_at": "2025-06-09T10:30:00Z", "livemode": true, "data": { // Event-specific data } }
Was this page helpful?