Skip to content

Errors

Every non-success response returns application/problem+json with a stable code, a human-readable detail, and a request_id for debugging.

{
"type": "https://docs.duitmyself.com/reference/errors#unauthorized",
"title": "Unauthorized",
"detail": "Invalid API key",
"status": 401,
"code": "unauthorized",
"request_id": "..."
}

Returned when the bearer token is missing, malformed, revoked, expired, or does not match a stored API key hash.

Returned when the authenticated key is missing a required scope, the feature requires Pro access, or the current deployment has the public API disabled.

Returned when the requested resource does not exist for the current API subject.

Returned when an Idempotency-Key is reused with a different request fingerprint or when an externalId collides with another resource unexpectedly.

Returned when the request exceeds the configured minute or day budget for that key on the current deployment. Read Retry-After and the X-RateLimit-* headers before retrying.

Returned when the request payload is invalid, required fields are missing, or a route-specific constraint fails.

Returned when the backend encounters an unexpected failure.