JavaScript
Browser and Node.js runtime support. The primary SDK behind the 3-line embed, published as the npm package @realgifts/sdk.
The RealGifts gifting API connects your platform to a 1M+ gift catalog. Users browse, purchase, and send real physical gifts inside your app. You configure the experience. RealGifts runs the catalog, payments, fulfillment, and support.
This is the fastest path to a live gift shop. Paste this snippet into your frontend, configure your container ID and API key, and the shop renders inside your existing UI.
<script src="https://cdn.getrealgifts.com/sdk/v2/embed.min.js" data-container="rg-gift-shop" data-key="YOUR_API_KEY"></script>
The embed is a self-contained script tag. It loads the gift shop widget asynchronously into the specified container element. It does not modify the DOM outside that container. Rendering is responsive and inherits no styles from the host page.
For event-driven workflows (tournament prize fulfillment, recognition triggers, fan gifting hooks), use the REST API directly. The embed and the API share the same catalog and fulfillment infrastructure. For peer-to-peer gifting between users, the pattern the embed above is built for, see the dating app solution. The API also serves as a gift automation API for any app that triggers orders from user events, milestones, or backend logic. To embed gifting in your app directly, including as a gift API for gaming platforms, dating apps, and social networks, the 3-line script tag above is the fastest gifting integration for apps of any stack. If you are scoping reward infrastructure and want to understand how gifting APIs differ from loyalty APIs, that post covers the two categories, when each applies, and how they coexist in the same product.
Three deeper dives from the blog: the gifting API webhooks guide covers event subscriptions, payload structure, idempotency, and delivery confirmation for event-driven programs; how to send bulk gifts via API covers batch request structure, idempotency keys, rate limits, and webhook callbacks for campaign-scale sends; and the gifting API for fintech apps covers cashback-as-gift, account activation, savings milestone, and referral reward patterns for banking products.
Every SDK wraps the same gifting API. Use whichever matches your stack. All SDKs are versioned and available in your dashboard after signup. Documentation, changelog, and sample applications are included.
Browser and Node.js runtime support. The primary SDK behind the 3-line embed, published as the npm package @realgifts/sdk.
Server-side fulfillment triggers, webhook handling, order management.
Backend integration for PHP web applications and frameworks.
REST client for Python services, scripts, and data pipelines.
Gem for Ruby and Rails applications.
CPAN module for Perl environments.
Native Swift SDK for iPhone and iPad applications.
Native Kotlin SDK for Android applications.
Every operation available in the embed and SDKs is also available via direct REST calls. Use the API to trigger gift orders from your server, respond to catalog events, and receive webhook notifications on order placement, shipment, and delivery.
14-day free trial. Sandbox access included. No credit card required.