Skip to content

Rate limits & errors

HTTP status codes returned by ingest.amlexia.com.

Success

CodeMeaning
200Batch accepted (events or traces)
200/health OK

Client errors

CodeMeaningWhat to do
400Invalid JSON or schemaFix payload shape; see Events
401Invalid sdk_keyRotate key in dashboard; check env var
413Payload too largeReduce batch size (maxBatchSize)
429Rate limitedSDK retries; backoff or contact support

Server errors

CodeMeaningWhat to do
500Ingest errorRetry; check status.amlexia.com
503Temporary unavailableRetry with exponential backoff

SDK behavior

Both @amlexiahq/node and amlexia:

  • Batch events on an interval (default 5s)
  • Retry failed uploads up to maxRetries (default 5)
  • Flush remaining buffer on shutdown()

Example error response

Shape may vary; typical body:

json
{
  "error": "invalid_sdk_key"
}

Debugging checklist

  1. curl https://ingest.amlexia.com/health
  2. Verify key in dashboard matches deployment env
  3. Send a single-event curl (see Troubleshooting)
  4. Email support with timestamp and project id (not the key)