Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Hifi Token Swap API

Token Swap endpoints

Hifi Token Swap API is one of 15 APIs that Hifi publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Token Swap. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 4 operations across 3 paths, and defines 12 schemas. It is described by OpenAPI 3.0.0, at version 2.0.0.

Requests are made against 2 base URLs: https://production.hifibridge.com, https://sandbox.hifibridge.com.

4 operations 3 paths 12 schemas 2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
2.0.0
Base URL
https://production.hifibridge.com
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Hifi Token Swap API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

Paths & Operations 4

Across 3 paths, the API surfaces 4 operations — 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Token Swap 4

Token Swap endpoints

POST
/v2/wallets/swaps
Create a swap
body → 200401404500
GET
/v2/wallets/swaps
List all swaps
4 params → 200401404500
GET
/v2/wallets/swaps/{swapId}
Retrieve a swap
1 param → 200401404500
POST
/v2/wallets/swaps/{swapId}/accept
Accept a swap
1 param → 200401404500

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are WalletSwapDetailsObject (11 properties), WalletSwapDestinationObject (6 properties), WalletSwapQuoteInformationObject (6 properties), WalletSwapFeeObject (5 properties). Each schema is shown below with its type and property counts.

WalletSwapDetailsObject
object
11 properties
WalletSwapAmountObject
object
2 properties
WalletSwapFeeObject
object
5 properties
WalletSwapDestinationObject
object
6 properties
InternalServerError
object
1 property
WalletSwapBillingInformationObject
object
1 property
WalletSwapQuoteInformationObject
object
6 properties
WalletSwapAllRecordsObject
object
3 properties
WalletSwapObject
object
2 properties
Unauthorized
object
1 property
CreateWalletSwap
object
3 properties 3 required
WalletSwapSourceObject
object
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hifi-token-swap-api-openapi.yml Raw ↑

Other APIs Hifi publishes across the network.

Hifi Account API
Hifi Common API
Hifi Cross-Chain Bridge API
Hifi Crypto Transfer API
Hifi File API
Hifi Kyc API
Hifi Offramp API
Hifi Onramp API
Hifi Reporting API
Hifi Settlement Rules API
Hifi Transfer Approvals API
Hifi User API