Error Model
EfficientAI endpoints return standard HTTP status codes and JSON error payloads.
Common status codes
400invalid request payload or unsupported parameter.401invalid or missing authentication credentials.403authenticated but not authorized for the requested scope.404resource does not exist in the current workspace context.409conflict state (duplicate or invalid transition).422validation errors (schema or business-rule failures).500unexpected server-side failure.
Typical error payload
Most route handlers return an HTTP exception style envelope with a detail field:
{
"detail": "Human-readable error message"
}Some endpoints can return richer validation payloads (for example 422 with field-level details).
Troubleshooting checklist
- Verify
AuthorizationorX-API-Keyis present. - Confirm
X-Workspace-Idmatches an accessible workspace when supplied. - Ensure request body fields and enum values match the schema shown on each endpoint page.
- Retry idempotent operations only after transient
5xxfailures.
Community & contact
- Found a bug or have a feature request? Open a GitHub issue.
- Join our Discord for faster replies!
