Skip to main content
Every error response from the KeyStone API includes a structured body with three fields:
  • detail - A human-readable description of what went wrong.
  • code - A machine-readable error code for programmatic handling.
  • docs_url - A direct link to the documentation for this specific error.
Use the code field in your integration logic to handle errors programmatically. The detail field is informational and may change between releases.

Authentication and Authorization

INVALID_TOKEN

TOKEN_EXPIRED

MISSING_TOKEN

INSUFFICIENT_SCOPES

NO_PLATFORM_CONTEXT

NO_ENVIRONMENT_CONTEXT

IP_NOT_ALLOWED

AUTH_CONTEXT_NOT_RESOLVED


Callback Authentication

MISSING_CALLBACK_SIGNATURE

INVALID_CALLBACK_SIGNATURE

CALLBACK_AUTH_NOT_CONFIGURED


Not Found

SETTLEMENT_NOT_FOUND

TEMPLATE_NOT_FOUND

PLATFORM_NOT_FOUND

ENVIRONMENT_NOT_FOUND

INSTRUCTION_NOT_FOUND

WEBHOOK_ENDPOINT_NOT_FOUND

IP_RANGE_NOT_FOUND

MEMBER_NOT_FOUND

PROVIDER_NOT_FOUND

NOT_REPO_SETTLEMENT


Conflict

DUPLICATE_RESOURCE

SETTLEMENT_STATE_CONFLICT

NO_VALID_TRANSITION

INSTRUCTION_NOT_CANCELLABLE

NOT_REPO_OPEN

SETTLEMENT_NOT_FINALIZED

CLOSING_ALREADY_EXISTS

CLOSING_CREATION_FAILED

NO_ROLLBACK_STATE


Validation

VALIDATION_ERROR

NO_FIELDS_PROVIDED

INVALID_PARTY_CONFIGURATION

TEMPLATE_INACTIVE

NO_AUTH0_ORGANIZATION

SELF_ACTION_FORBIDDEN

INVALID_TARGET_STATE

NO_FAILURE_STATE

CANNOT_RESOLVE_TARGET_STATE


Rate Limiting

RATE_LIMIT_EXCEEDED


External Service Failures

AUTH0_ERROR

EXTERNAL_SERVICE_ERROR