Reference
Log Event
The JSON payload sent to the Delok ingestion endpoint.
Example
json
{
"environment": "production",
"occurredAt": "2026-07-30T12:00:00.000Z",
"level": "info",
"event": "user_login",
"message": "User logged in",
"payload": {
"userId": "123"
}
}Fields
| Field | Source | Notes |
|---|---|---|
| event | developer | required |
| message | developer | optional |
| payload | developer | optional structured JSON |
| level | SDK | info | warn | error | fatal |
| occurredAt | SDK | ISO timestamp generated at call |
| environment | developer | from Delok config |
apiKey authenticates your project and is not part of the JSON body. Keep it secret.
