Skip to main content

Error Event Format

Errors arrive as SSE events:

Error Codes


Common Errors

VALIDATION_ERROR

Missing required fields (config, userPrompt), invalid GraphConfig structure, or malformed JSON. Resolution: Check the request body against the schema.

AUTHENTICATION_ERROR

Missing Authorization header, malformed header (missing Bearer prefix), or invalid API key. Resolution: Verify the API key and header format.

RATE_LIMIT_ERROR

Too many requests in a short period. Resolution: Implement exponential backoff and retry.

PROCESSING_ERROR / TIMEOUT_ERROR

Internal failure or request took too long. Resolution: Retry with exponential backoff. If persistent, contact support.

HTTP Status Codes

Errors may also arrive as HTTP status codes before streaming begins:

Retry Strategy

For retryable errors, use exponential backoff:
Recommended defaults:
  • base_delay: 1000ms
  • backoff: 2
  • max_attempts: 3
Best practices:
  • Only retry if retryable: true
  • Set a maximum retry count
  • Treat network failures as retryable
  • The API is stateless, so retries are safe