New to Mesh? Read How it all fits together first for a quick orientation on how the Link Token, SDK, callbacks, and webhooks connect — then come back here to build.
Before you start
- You have a Mesh dashboard account. If you don’t have one yet, reach out to your Mesh representative to request an invitation.
- You’re building a web app (this guide uses the web SDK).
Get your sandbox credentials
Log into the Mesh dashboard and navigate to Account > API keys > API keys. Create a new key with Read & Write permissions (required for transfers). You’ll need two things:- Client ID — your unique identifier, shown next to the key
- API key (sandbox) — starts with
sk_sandbox_...
https://sandbox-integration-api.meshconnect.com
While you’re here, go to Account > API keys > Access and add the domain where you’ll be running your app (eg. localhost:3000 for local development). The Mesh SDK will refuse to load on any domain not on this list.
Install the Mesh web SDK
Request a Link Token
A Link Token is how you start every user session. You request it from your server, and the parameters configure what the user can do in Link. Here’s the minimal request for a deposit flow:linkToken — hold onto it for the next step.
Why does this live server-side?Your API key is in this request, so it must be made from your server, not the browser. Your frontend receives the
linkToken and uses it to initialize the SDK.Initialize and launch the Mesh SDK
On your frontend, initialize a session of Link in the Mesh SDK using thelinkToken from Step 3:
openLink is called, Mesh Link opens and guides the user through connecting their account and approving the deposit.
Test it with a sandbox account
In sandbox, use one of these pre-configured test accounts to simulate a real exchange connection:| Exchange | Username | Password | OTP |
|---|---|---|---|
| Coinbase | Mesh | Pass123 | 123456 |
| Binance | Mesh | Pass123 | 123456 |
What’s next
You’ve got a working deposit flow. Here’s where to go from here:- Start the full walkthrough: Prepare to build is the complete step-by-step guide series.
- Deepen your Link Token knowledge: Fetch a Link Token covers all use cases — payments, onramps, withdrawals, and wallet verification.
- Explore all launch options: Launch the Mesh SDK covers embedded mode, overlay, and Paylinks across all 5 platforms.
- Handle more events: Use Mesh’s callback functions covers the full callback API.
- Build a great return-user experience: Supercharge return-users covers Mesh Managed Tokens.
AI coding reference (llms.txt)
AI coding reference (llms.txt)
AI coding reference — a compact summary of this page’s APIs, parameters, and patterns for use by AI coding assistants (following the llms.txt standard). Human readers can safely ignore this.llms.txt — 15-minute QuickstartEnd-to-end sandbox deposit integration in 5 steps using the Web SDK. No prior Mesh knowledge required.Steps: (1) Get sandbox API key + Client ID from Mesh dashboard → (2) Install Step 4 — SDK initialization (client-side):Next steps: Fetch a Link Token (full param reference) → Launch the Mesh SDK (all 5 platforms) → Use Mesh’s callback functions → Supercharge return-users (MMT)
@meshconnect/web-link-sdk → (3) POST /api/v1/linktoken server-side with userId, transferType: "deposit", toAddresses[] → (4) createLink({renderType, theme, language, displayFiatCurrency}).openLink(linkToken) client-side → (5) Test with username Mesh, password Pass123, OTP 123456Sandbox base URL: https://sandbox-integration-api.meshconnect.com | Auth headers: X-Client-Id, X-Client-SecretAdd allowed domain: Dashboard > Account > API keys > Access (must include localhost:3000 for local dev)Key networkIds: Solana 0291810a-5947-424d-9a59-e88bb33e999d | Ethereum e3c7fdd8-b1fc-4e51-85ae-bb276e075611 | Base aa883b03-120d-477c-a588-37c2afd3ca71Step 3 — Link Token request (server-side):