Legacy v1
/v1 is deprecated, and /v2 succeeds it. Build anything new on /v2. This section documents /v1 for integrations that still call it.
https://api.stridge.com/v1 is the earlier version of the Stridge API. It keeps working, unchanged, alongside /v2. When you are ready to move, Moving to /v2 walks you through it.
Deprecation headers
Every response from the operations documented here, errors included, carries two headers that point you to /v2:
Deprecation: @1793491200
Link: </v2>; rel="successor-version"| Header | What it says |
|---|---|
Deprecation |
|
Link |
|
A few gateway operations that this reference does not document return no deprecation headers. Among them are the on-ramp catalog and quote reads, the ERC-20 rate and the on-chain balance.
Resources
The /v1 operations documented here, grouped by resource:
How /v1 differs
The two versions differ in how you authenticate, how responses are shaped, and how lists are paged:
| Property | /v1 | /v2 |
|---|---|---|
| Credential | /v1 The key in X-API-Key; gateway endpoints take X-Gateway-Key | /v2 The key in Authorization: Bearer |
| Permissions | /v1 Scopes such as uda, deposit and payout | /v2 Named permissions such as payout.create |
| Success | /v1{ success, message, data }, lists add pagination | /v2 The object itself; lists are { object: "list", data, has_more, url } |
| Failure | /v1{ success: false, code, error, details } | /v2{ error: { type, code, message, param, doc_url, request_log_url } } |
| Lists | /v1limit and offset, or page and limit | /v2limit with an object id in starting_after or ending_before |
| Webhook events | /v1 The full object in the event body, signed with a hex HMAC | /v2 A thin event that names the object, signed with Standard Webhooks |
A /v1 key and a /v2 key are different keys. /v2 returns 401 api_key_not_accepted for:
- a key created with only
/v1scopes; - any key sent in
X-API-Key.
Create a /v2 key in the dashboard when you move.
Authentication
Send the key, unchanged, in the X-API-Key header. The key decides the environment: sk_live_… keys act in live, and sk_sbx_… keys act in the sandbox. A key with no prefix acts in live.
curl "https://api.stridge.com/v1/uda" \
-H "X-API-Key: $STRIDGE_API_KEY"Gateway keys
The gateway operations, which the Gateway Kit, its SDK and the on-ramp call, take a gateway key in X-Gateway-Key instead. They work with live keys only. A call with a sandbox key returns 403.
Errors
A failure returns its HTTP status and an error envelope. code repeats the status:
{
"success": false,
"code": 409,
"error": "payout not held",
"details": { "state": "confirmed" }
}Branch on the HTTP status. Where the status alone is not enough, match the exact error string. details appears only when you need more information to act on the error.
Pagination
/v1 lists use two paging styles, depending on the resource:
| Lists | Query | Paging |
|---|---|---|
| Deposit addresses and settlements | limit, offset |
|
| Payouts, gas stations, routing policies and simulations | page, limit |
|
Moving to /v2
/v1 keeps working while you switch, so you can move step by step.
Create it in the dashboard with the permissions your integration needs. See Permissions.
Send the key as Authorization: Bearer and change the base path to /v2.
Read objects and lists in their /v2 shapes. Page through lists with starting_after, and branch on error.code. See Pagination and Errors.
It makes a retry safe, and the sandbox test helpers require one. See Idempotency.
- Create a new webhook endpoint for thin events, in the dashboard or with a live key.
- Verify its Standard Webhooks signatures.
- Run it alongside the old endpoint, then delete the old one.
While both run, each event reaches both endpoints with the same webhook-id header, so deduplicate on that header. See Endpoints created before thin events.
Where each operation goes
Find each /v1 operation next to the /v2 operation that does the same job. Where /v2 does it with a filter, a note says what to send.
| /v1 operation | Moves to | /v2 operation |
|---|---|---|
| UDA | ||
List UDA addressesGET/ | List deposit addressesGET/ | |
Create a UDA addressPOST/ | Create a deposit addressPOST/ | |
Get a cross-chain / cross-asset quoteGET/ | Quote a deposit's routeGET/ | |
List UDA-supported assetsGET/ | List what deposit addresses acceptGET/ | |
List settlements for a UDA addressGET/ | List settlementsGET/Filter with | |
Get a settlementGET/ | Read one settlementGET/ | |
List settlements by referenceGET/ | List settlementsGET/Filter with | |
| Routing Policies | ||
List routing policiesGET/ | List routing policiesGET/ | |
Get a routing policyGET/ | Read one routing policyGET/ | |
| Payout | ||
List vaultsGET/ | List vaultsGET/ | |
List vault addressesGET/ | List a vault's addressesGET/ | |
Get vault address by networkGET/ | List a vault's addressesGET/Filter with | |
Get vault balancesGET/ | List what a vault holdsGET/ | |
Get vault total valueGET/ | Read what the environment is worthGET/One USD total for everything the environment holds: its vaults, gas stations and deposit addresses together. | |
List payoutsGET/ | List payoutsGET/ | |
Create payoutPOST/ | Create a payoutPOST/ | |
List pending payoutsGET/ | List payoutsGET/Filter with | |
Get payout by idGET/ | Read one payoutGET/ | |
Reject pending payoutPOST/ | Reject a payoutPOST/ | |
| Gas Stations | ||
Get gas station details by addressGET/ | List gas stationsGET/Each station carries its | |
Get gas station details by wallet idGET/ | Read one gas stationGET/The | |
List gas station walletsGET/ | List gas stationsGET/ | |
| Test Helpers | ||
Read what the test helpers acceptGET/ | Read what the test helpers acceptGET/ | |
Simulate a deposit to a UDAPOST/ | Simulate a deposit to a deposit addressPOST/ | |
Simulate a deposit to a vaultPOST/ | Simulate a deposit to a vaultPOST/ | |
Simulate a payoutPOST/ | Simulate a payoutPOST/ | |
Release a held payoutPOST/ | Release a held payoutPOST/ | |
Fail a held payoutPOST/ | Fail a held payoutPOST/ | |
List simulationsGET/ | List the environment's simulationsGET/ | |
Get a simulationGET/ | Read one simulationGET/ | |