This endpoint does not require API key authentication. Use your beacon public key (bpk_...) in the request body.
Body Parameters
Your beacon public key (bpk_...) or API key
Array of events to report
Event Object
Event type: error, log, trace, vital, page_load, slow_request
Unix timestamp in milliseconds
Unique session identifier
Page URL where event occurred
Environment: production, staging, development
Event-specific data (error message, stack trace, etc.)
User context: { id, email, username }
Response
Whether events were recorded
Number of events received
curl -X POST "https://kodostatus.com/api/v1/beacon" \
-H "Content-Type: application/json" \
-d '{
"key": "bpk_your_key_here",
"events": [{
"type": "error",
"timestamp": 1704844800000,
"session_id": "sess_abc123",
"url": "https://example.com/dashboard",
"service": "my-app",
"environment": "production",
"data": {
"message": "Cannot read property x of undefined",
"stack": "TypeError: Cannot read property...",
"type": "TypeError"
}
}],
"user": { "id": "user123", "email": "[email protected]" }
}'
{
"success": true,
"received": 1,
"signatures_updated": 1,
"logs_stored": 0,
"traces_stored": 0,
"spans_stored": 0
}