Core Conceptsv1

Errors and request IDs

The error envelope every Nexra API returns, what each status code means and how to report a problem with a request ID.

Updated 07/10/2026

On this page

Error envelope

Every error from the platform API has the same shape:

json
{
  "error": "request_failed",
  "message": "Workspace permission is required: connect.flow.publish",
  "statusCode": 403,
  "requestId": "6f1c2a8e-4b1d-4c55-9a0e-3d7f2b9c1e40",
  "path": "/api/console/connect/flows/flow_123/publish",
  "method": "POST"
}

error is request_failed for 4xx errors and internal_server_error for 5xx.

message is safe to show to users. When several validation problems occur, they are joined with commas.

Sensitive values are redacted from every error before it is returned.

Request IDs

Every response carries an X-Request-ID header, and errors repeat it as requestId. Send your own X-Request-ID to correlate Nexra's logs with yours. Include the request ID whenever you contact support.

Status codes

StatusMeaningWhat to do
400The request body or parameters are invalidFix the request; the message names the problem
401Missing, expired or invalid credentialsSign in again or send a valid token
403Authenticated but not allowed: wrong workspace, missing permission, archived application or a production gateCheck your role, workspace and approvals
404The resource does not exist in this workspaceCheck the ID and X-Workspace-Id
405Method not supported (for example GET /mcp)Use the documented method
409Conflict: duplicate name or slug, idempotency key reused differently, immutable published version, self-approvalChange the request or use a new version
429Rate limit exceededWait retryAfterSeconds, then retry; see Rate limits
500Unexpected server errorRetry with backoff and report the request ID
503A required service is not configured or availableRetry later

Connector errors

Errors from providers in Nexra Connect are normalised into a category before they reach you:

CategoryRetried automatically
authenticationNo: rotate the connection's credentials
permissionNo: grant the provider scope
not_foundNo
validationNo: fix the mapping or data
rate_limitYes, with backoff, honouring Retry-After
providerYes for safe operations; uncertain writes go to the dead-letter queue
timeoutReported with the provider's job or statement handle where available

MCP errors

MCP uses JSON-RPC error codes. See Use the Nexra MCP server.

Agentic commerce errors

The agentic commerce API returns its own codes: INVALID_INPUT (400), AUTHENTICATION_FAILED (401), UNAUTHORIZED_CAPABILITY (403), DATA_UNAVAILABLE (404), DUPLICATE_CONFLICT (409), EXECUTION_FAILED (500) and DEPENDENCY_UNAVAILABLE (503).

Need a hand?

Ask Nexra Agent for implementation steps or error guidance.

Ask Nexra Agent