OnLink
API reference

Quote a conversion between USD and KES

An indicative rate and what you would receive now: the KES for an amount of USD (from=USD&to=KES), or the USD for an amount of KES (from=KES&to=USD, where it is enabled). Nothing is reserved: the bank fixes its rate when a conversion executes, so the executed rate can differ slightly.

GET
/v1/conversions/quote

Authorization

partner-key
X-OnLink-Key<token>

In: header

Query Parameters

from*string

The currency you convert from: USD (to KES) or KES (to USD). A pair that is not available is refused CONVERSION_PAIR_UNSUPPORTED (422).

to*string

The currency you receive: KES (from USD) or USD (from KES).

amount*string

The amount of from to convert, as a decimal string with at most 2 decimal places.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/conversions/quote?from=USD&to=KES&amount=100.00"
{  "rate": "128.35",  "source": "100.00",  "target": "12835.00",  "indicative": true,  "asOf": "2026-10-24T10:00:00.000Z"}