Two Ways to Use Droplets
1. Install from the Marketplace
The Droplet Marketplace lists all publicly available Droplets. Browse by category, read the description and required permissions, and click Install to add a Droplet to your Fluid account. Fluid handles the credential exchange automatically — you don’t need to write any code to install a pre-built Droplet.2. Build Your Own
If you need a custom integration — whether to connect an internal system, automate a specific workflow, or embed a branded UI inside the checkout — you can create a Droplet using the Fluid API. Once built and tested, you can keep the Droplet private to your own account or submit it to the Marketplace for other Fluid merchants to install. See the Creating Droplets guide for a full walkthrough of building, testing, and publishing a Droplet.How Droplets Work
Understanding the lifecycle of a Droplet installation helps you build integrations that are secure and reliable.Embed URL
Every Droplet defines anembed_url. When a merchant opens the Droplet inside the Fluid admin, Fluid renders that URL inside an iframe. This is where you serve your Droplet’s configuration UI, dashboards, or any other interface your integration needs.
Install Webhook and Token Exchange
When a company installs your Droplet, Fluid immediately sends a signedPOST request to your Droplet’s install_webhook_url. The payload contains a short-lived exchange token — a one-time credential you use to prove you received the installation event. Your server must exchange this token within 10 minutes (it is single-use and expires after that window).
The token exchange flow looks like this:
1
Receive the install webhook
Fluid sends a signed webhook to your
install_webhook_url with the company ID and a short-lived exchange token in the payload.2
Verify the webhook signature
Validate the request signature to confirm the request genuinely came from Fluid. Check the
X-Fluid-Shop, X-Fluid-Timestamp, and X-Fluid-Signature headers. The signature is an HMAC-SHA256 digest computed over timestamp.body (where timestamp is the value of X-Fluid-Timestamp and body is the raw request body), signed with your Droplet’s webhook verification secret.3
Exchange the token
Make a
POST request to /api/droplet_installations/exchange with the exchange token. The exchange token is valid for 10 minutes and is single-use. A successful exchange returns an authentication_token (prefixed dit_) and a webhook_verification_token (prefixed wvt_).4
Store the credentials
Persist the
authentication_token and webhook_verification_token securely. Use the authentication_token to make authenticated API calls on behalf of the company, and use the webhook_verification_token to verify future webhook signatures from Fluid.POST to your uninstall_webhook_url. Revoke and delete the stored credentials for that company when you receive this event.