Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nomos.energy/llms.txt

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

Every error response uses the same JSON envelope, with a status code that follows standard HTTP semantics.
{
  "code": "BAD_REQUEST",
  "message": "invalid_type in 'customer.email': Required",
  "requestId": "37a04f8f-e791-491c-81e1-86cd304649bb",
  "docs": "https://docs.nomos.energy/api-references/errors/BAD_REQUEST"
}
FieldDescription
codeMachine-readable error code. Switch on this in your handler.
messageHuman-readable description of what went wrong.
requestIdUnique request identifier. Include it when contacting support.
docsLink to the reference page for this code.
Always log the requestId alongside the request that caused the error. It’s the fastest way for support to find the corresponding trace.

Retrying

Retry only when retrying could plausibly succeed. Use exponential backoff with jitter and cap the attempts.
StatusRetry
4xx (except 429)No. Fix the request before retrying.
429 TOO_MANY_REQUESTSYes, after backing off.
5xxYes, with exponential backoff.

Error reference

StatusCodeDescription
400BAD_REQUESTSchema validation failed: missing fields, wrong types, or unparseable JSON. Check message for the field path.
401UNAUTHORIZEDNo credentials, or the access token is invalid or expired. Refresh and retry. See Authentication.
403FORBIDDENValid token, but the caller doesn’t have permission for this resource. Confirm the resource belongs to your organization and your Auth Client’s scope.
404NOT_FOUNDThe resource doesn’t exist, or your token can’t see it. Double-check the ID and your organization.
405METHOD_NOT_ALLOWEDThe endpoint doesn’t support the HTTP method you used.
409CONFLICTAnother resource already uses this value (for example, a globally unique email). Reuse it or change the value before retrying.
422UNPROCESSABLE_ENTITYWell-formed request that breaks a business rule (for example, cancelling an already-cancelled subscription). Read message for the specific rule.
429TOO_MANY_REQUESTSRate limit exceeded. Back off and retry with exponential delays.
500INTERNAL_SERVER_ERRORUnexpected error on Nomos’s side. Retry with backoff. If it persists, email support@nomos.energy with the requestId.