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.codeis stable. Use it in your logic; themessageis for people and may change.error.request_idis the same value as theX-Request-IDresponse header. Send it to support when you report a problem.error.detailsappears only on validation errors (422), with one entry per field.detailis kept for compatibility with existing integrations.- Errors with status
500show a generic message on purpose. The cause is recorded under therequest_id.
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):https://test-api-kore.kravata.co/api/v1/logs/requests (no /V1 prefix).
Errors your users hit in the widget or SDK
Setsource=widget to list the failures that happened in the widget or SDK (for example, a login that failed on the device):
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).
source=partner_api.
Retention
Request logs are kept for 90 days. Older entries are deleted automatically, and requests older than that return404 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.