RatesToken rates in USD (live, public)

Token rates in USD (live, public)

Public (no auth). Current USD rates, fetched on the spot (not cached). ?codes=usdt,a7a5 for specific tokens; without the parameter, all enabled tokens in the registry. usdRate = USD per 1 unit of the token (decimal string), or null if the rate isn't configured or the source is unavailable.

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/rates?codes=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "base": "example_string",
  "fetchedAt": "2026-07-02T11:25:15.134000Z",
  "rates": [
    {
      "code": "a7a5",
      "usdRate": "0.0123762376",
      "asOf": "2026-07-02T11:25:15.134000Z",
      "source": "esim.cash"
    }
  ]
}
GET
/api/v1/rates
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

query
codesstring

CSV of token codes (e.g. usdt,a7a5)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Query Parameters

codesstring

CSV of token codes (e.g. usdt,a7a5)

Responses

basestring
Required
fetchedAtstring
Required
ratesarray
Required