Skip to main content
For your first Exchanger API request, ask the exchanger operator for their iEXExchanger installation domain. The installation serves the API at /api/v3 on that domain. Check availability first, then verify your credentials and read the route catalog. For a Go or PHP server application, you can start with a server-side SDK.

Check availability

Before making the request, replace your-exchange with your exchanger’s domain.
The public ping returns HTTP 200, state: 0, and result.status: "ok". The result.site_name and result.time fields contain the exchanger name and server time. Keep meta.request_id if you need to report a problem to the operator.

Make a signed request

Follow API access to get a Bearer token and its HMAC secret. Set these three variables in the Node.js process environment. Expand the example, copy the code to request.mjs, and run it with Node.js 24.
request.mjs
The command sends a signed private ping. It checks the token and signature without requiring an additional scope. Expect HTTP 200 and JSON with result.status: "ok". For a 401 response, read error.code and check your credentials, server time, and the signing rules.

Read the catalog and request a quote

Reading exchange routes requires public-api:exchange:routes:read.
Requesting a quote requires public-api:exchange:quotes:read. Save route_id and amount in quote.json. Replace 25 with an ID from your catalog and choose an amount within the limits for that route.
quote.json
Read result.quote and retain result.snapshot. To check order data, send it with the snapshot to POST /api/v3/private/exchange/orders/preflight and inspect result.preflight.can_create_order, field errors, and verification requirements. If the operator enabled sandbox and granted its scope, use POST /api/v3/private/sandbox/exchange/orders/simulate. The simulation records an api.sandbox.simulated event without creating an order.

request.mjs options

  • Pass an uppercase method and a path starting with /api/v3/private/. The script accepts GET, POST, PUT, PATCH, and DELETE. Check the API reference for each operation’s method and scopes.
  • Write query parameters as name=value pairs, such as filter[status_id][0]=7. Use explicit indexes for lists. The example accepts up to 50 fields with ASCII letters, digits, underscores, and hyphens in their names, and up to six nested keys. Give each field a unique name. Percent-encode spaces and special characters in values.
  • --json FILE accepts UTF-8 JSON without a BOM up to 1 MiB. The script signs and sends the original file bytes.
  • Use --file FILE --file-type TYPE for a POST upload. The script hashes the file bytes and sends one multipart field named file. The example reads up to 10 MiB. Check the operation-specific limit and file types in the file upload guide.
  • Pass the stored --idempotency-key KEY for operations that use that header. Keep the same key and data for a retry. Each invocation uses the current time and a new nonce, waits up to 10 seconds, and rejects redirects.
  • Stdout contains the original response body, and stderr contains the HTTP status and diagnostics. The script exits with a nonzero status on failure. Responses may contain sensitive data, so keep saved response files in a protected directory.

Next steps