Skip to main content
Every error response from the Kravata API has the same shape and includes a request_id. You can use that id to look up the exact failure, with Get Request Log by Request ID, or list your recent errors with Get Request Logs.

Error format

  • error.code is stable. Use it in your logic; the message is for people and may change.
  • error.request_id is the same value as the X-Request-ID response header. Send it to support when you report a problem.
  • error.details appears only on validation errors (422), with one entry per field.
  • detail is kept for compatibility with existing integrations.
  • Errors with status 500 show a generic message on purpose. The cause is recorded under the request_id.
To choose the request id yourself, send an X-Request-ID header. If you do not, Kravata generates one and returns it in the response.

Find an error

List the failed requests of the last 7 days (the default):
Look up one request by its id:
In the test environment use https://test-api-kore.kravata.co/api/v1/logs/requests (no /V1 prefix).

Errors your users hit in the widget or SDK

Set source=widget to list the failures that happened in the widget or SDK (for example, a login that failed on the device):
Widget entries have source: "widget", requestId: null and an errorCode such as WIDGET_LOGIN_FAILED.

Filters

Response

errorMessage is the message of the error body you received. It never contains internal details.

What is recorded

  • Calls you make to the Kravata API with your partner token, successful or not.
  • Errors your users hit in the widget or SDK (source=widget).
Calls made with a user’s session, for example from a front end that logs in with cookies, are not in source=partner_api.

Retention

Request logs are kept for 90 days. Older entries are deleted automatically, and requests older than that return 404 from the single-request endpoint.

Common error codes

Some operations return more specific codes (for example INSUFFICIENT_FUNDS or HASH_ID_ALREADY_IN_USE). Use error.code to handle them, and error.message to show them to people.