Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sertexity.com/llms.txt

Use this file to discover all available pages before exploring further.

Errors

Sertexity uses standard HTTP status codes and returns structured error objects.

Error object

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "The 'amount' field must be a positive integer.",
    "details": [
      { "field": "amount", "issue": "must_be_positive" }
    ],
    "request_id": "req_7f3a9c12d4e6"
  }
}
FieldTypeDescription
codestringMachine-readable error code
messagestringHuman-readable explanation
detailsarrayOptional per-field validation breakdown
request_idstringInclude this in support requests

HTTP status codes

StatusMeaning
200 OKSuccess
201 CreatedResource created
204 No ContentSuccess, no body (e.g. deletion)
400 Bad RequestInvalid request body or parameters
401 UnauthorizedMissing or expired token
403 ForbiddenAuthenticated but not permitted
404 Not FoundResource does not exist
409 ConflictDuplicate resource
422 Unprocessable EntitySemantically invalid (e.g. insufficient balance)
429 Too Many RequestsRate limit exceeded
500 Internal Server ErrorUnexpected server error

Error codes

CodeHTTPDescription
VALIDATION_ERROR400One or more fields failed validation
INVALID_CREDENTIALS401Wrong email or password
TOKEN_EXPIRED401Access token expired — refresh it
TOKEN_INVALID401Malformed or tampered JWT
FORBIDDEN403Insufficient permissions
NOT_FOUND404Resource not found
DUPLICATE_EMAIL409Email already registered
INSUFFICIENT_BALANCE422Wallet balance too low
ASSET_MISMATCH422Operation asset does not match wallet asset
RATE_LIMIT_EXCEEDED429Too many requests
INTERNAL_ERROR500Server-side failure

Retrying

  • 429 — wait the number of seconds in the Retry-After response header.
  • 500 — use exponential back-off starting at 1 s, capped at 30 s.
  • Other 4xx — fix the request before retrying.