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/jsonjson
{
"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
| Status | Meaning |
|---|---|
200 | Accepted |
401 | Invalid SDK key |
400 | Validation error |
429 | Rate 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
}]
}'