Getting Started
This guide walks you through setting up your Stablegate API access and making your first API call.
In a hurry? Quickstart is the whole path on one page: key, customer, verification, order, webhook.
Prerequisites
To get started, you need a Stablegate account with Partner API access enabled. Sign in with your usual Stablegate credentials and open Developers. The menu entry appears only once access is granted, so use the link until then.
Without access the page shows a Developer API card with a Request API access button; submit the request from there. If you do not see the button, contact your account manager. Once access is granted, the page opens on three tabs: API keys, Webhooks and Your clients.
Partner API access can be requested by business accounts after completing business verification (KYB), at the Standard or Advanced level permitted for their legal entity. Individual accounts and Instant (Light) accounts cannot request access. Approval of the request does not enable the API automatically: access is granted separately by the Stablegate team.
There is no sandbox: test access is arranged individually. For test access, contact your account manager or our support team.
Step 1: Open the Developers Section
Open Developers. The section opens on the API keys tab.
Step 2: Create an API Key
- Once signed in, open the API keys tab.
- Click Create key.
- Give your key a descriptive name (e.g., "Production Backend" or "Staging Environment").
- Copy and store both the key and the secret. The secret is shown once, at creation.
The key is what you send in X-Api-Key. The secret is only needed if you sign your requests, which
the Partner API does not currently require.
Step 3: Make Your First API Call
Let's verify your setup by fetching the list of supported exchange routes.
Request:
curl https://api.stablegate.com/v1/exchange-routes/ \
--header 'X-Api-Key: YOUR_API_KEY'
Response:
[
{
"source": {
"rail": "sepa",
"asset": {
"code": "EUR",
"fraction_digits": 2
}
},
"destination": {
"rail": "ethereum",
"asset": {
"code": "USDC",
"fraction_digits": 6
}
}
},
{
"source": {
"rail": "ethereum",
"asset": {
"code": "USDT",
"fraction_digits": 6
}
},
"destination": {
"rail": "sepa",
"asset": {
"code": "EUR",
"fraction_digits": 2
}
}
}
]
If you receive a 200 response with exchange route data, your API key is working correctly.
Request Format
The API ignores unknown fields in a JSON request body instead of rejecting them. A misspelled or misplaced optional field is silently skipped, and the API uses its default value instead. To catch such mistakes before you send a request, generate your client from the OpenAPI specification, which defines every field of every endpoint.
Integration Flow Overview
A typical integration follows this sequence. See the Customers, External Accounts, Fees & Limits, and Orders sections for details on each step.
- Create a customer — register your end-user in the Stablegate system.
- Register external accounts — bank accounts and/or crypto wallets.
- Check exchange route — verify the conversion path is available.
- Browse bank providers — discover banks, rails and exchange routes.
- Check fees — calculate the fees and exchange rate.
- Check limits — verify the customer's transaction limits.
- Create order — submit the exchange order.
- Set up webhooks (optional) — receive real-time notifications on status changes.
- Monitor order status — via webhooks or by polling the order endpoint.
Ready to integrate?
Introduction
Stablegate is a processing infrastructure that enables businesses to offer seamless exchanges between fiat currencies and digital assets. Through a single API, your platform can provide on-ramp (fiat-to-crypto) and off-ramp (crypto-to-fiat) services to your customers.
Coverage
What the Partner API supports today, and how the work is split between your integration and Stablegate. Routes, assets and rules change over time: the API is the source of truth at runtime, and the Changelog records every change.