DevelopersOsai website ↗
API v1
Get started

Errors

Distinguish invalid inputs, denied access, conflicts, rate limits and uncertain outcomes.

Customer API error envelope

Inspect HTTP status first, then error.code. Messages explain a failure but are not stable machine conditions. Preserve error.request_id with the correlation response headers. Console endpoints can use a different error projection; inspect their reference pages.

Error response shapejson
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "A safe description",
    "request_id": "<request-id>"
  }
}

Common outcomes

HTTPMeaningAction
400Invalid requestCorrect input; do not retry unchanged.
401Invalid authenticationCheck scheme and credential scope.
403Denied permission or policyResolve access with your administrator.
404Absent or out-of-scope resourceCheck the ID and institution.
409Version, approval or idempotency conflictRead the original resource before another write.
429Rate limit reachedHonor Retry-After and back off.
503Unavailable or unresolved outcomeQuery the original operation and preserve its identifiers.

Do not turn uncertainty into a duplicate

A timeout or unavailable dependency does not establish that the original operation had no effect. Query its stable ID and retain its original request and idempotency key. A new key can request a second instruction.

16 suggested pages

Get startedIntroductionIntegrate institutional FX and stablecoin trading with quotes, orders, market data, account records and settlement reporting.Get startedQuickstartMake an authenticated read, request a quote and follow an instruction without losing its original references.Get startedAuthenticationUse the correct authentication scheme for API credentials, Console sessions and market-data feeds.Get startedErrorsDistinguish invalid inputs, denied access, conflicts, rate limits and uncertain outcomes.Get startedRate limitsUse response headers, bounded concurrency and backoff rather than repeated bursts.Get startedAmounts & precisionKeep minor-unit money, fixed-point FX rates and instrument-scaled quantities exact.Get startedPagination & recoveryUse each resource’s pagination model and preserve stable recovery checkpoints.Financial workflowsQuotes & acceptanceRequest explicit FX economics, review conditions and retain accepted terms.Financial workflowsTrade lifecycleTrack funding, execution and settlement as distinct business transitions.Financial workflowsBalances & transactionsRead institutional financial positions and reconcile movements by currency.Financial workflowsBeneficiariesRegister beneficiaries and coordinate their institutional approval lifecycle.Financial workflowsCredential managementCreate, inspect, rotate and revoke application credentials without exposing secrets.Events & reliabilityIdempotencyPrevent duplicate financial effects across retries and uncertain outcomes.Events & reliabilityWebhooks & verificationVerify deliveries, persist original events and make downstream processing idempotent.Events & reliabilityEvent payloadsUnderstand the customer event envelope and business transitions behind subscriptions.Events & reliabilityDelivery retries & replayRepair webhook delivery without creating a second business event.