Skip to main content
Every error response has this body:
  • code is fixed and machine-readable. Branch on code; the error message text may change.
  • requestId is the same value as the x-request-id response header. Quote it when you contact Kamui.
  • details appears on invalid requests and on some transaction errors. It lists up to 10 { path, issue } entries; path names the failing field, such as body.address, or the failing transaction, such as transactions.1.

Error codes

Every action

users.transactions

transaction.quote and transaction.build

See Build transactions for the order in which a build runs its checks. “Build only” errors are reported by a quote in availability.reason instead, or not checked by it. The code list in the API reference also has codes the API does not answer today (invalid_address, unsupported_chain and jurisdiction_restricted). An invalid address answers 400 invalid_request. Handle any code you do not know by its HTTP status. Errors are never cached (Cache-Control: no-store), and neither are successful responses.