OnLink
API reference

Convert USD to KES

Debits the USD from your USD account and credits the KES to your KES account, asynchronously. Poll GET /v1/conversions/:id or wait for conversion.settled or conversion.failed. If the exchange cannot be completed after your USD was debited, the USD is returned to you and the conversion ends failed with the reason. No confirmation code: both accounts are your own.

POST
/v1/conversions

Authorization

partner-key
X-OnLink-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/conversions" \  -H "Content-Type: application/json" \  -d '{    "from": "USD",    "to": "KES",    "amount": "100.00",    "partnerReference": "payout-run-2026-10-24",    "idempotencyKey": "cnv-2026-10-24-0001"  }'
{  "id": "c0a8012e-7b1a-4c39-9d3e-2f5c8a1b6d40",  "status": "processing"}