Skip to content

POST /v1/events

Batch API event ingest (used by Node and Python SDKs).

Request

http
POST https://ingest.amlexia.com/v1/events
Content-Type: application/json
json
{
  "sdk_key": "am_your_key",
  "events": [
    {
      "endpoint": "GET /api/users/:id",
      "method": "GET",
      "status_code": 200,
      "latency_ms": 95,
      "timestamp": 1715000000,
      "provider": "internal",
      "trace_id": "abc123...",
      "span_id": "def456..."
    }
  ]
}

Fields

See Event fields.

Responses

StatusMeaning
200Accepted
401Invalid SDK key
400Validation error
429Rate limited

Example (curl)

bash
curl -X POST https://ingest.amlexia.com/v1/events \
  -H "Content-Type: application/json" \
  -d '{
    "sdk_key": "am_xxx",
    "events": [{
      "endpoint": "GET /health",
      "method": "GET",
      "status_code": 200,
      "latency_ms": 5
    }]
  }'