Log ingestion

Send canonical events into the sealed audit trail.

The backend accepts single-log and batch ingestion. Console traffic can use bearer auth; external integrations can use the manually created company API key.

Single log

POST /api/v1/logs
{
  "event_type": "payment.created",
  "source": "payments-api",
  "payload": {
    "user_id": "123",
    "amount": 2000,
    "currency": "USD"
  }
}

Delete with trail preservation

POST /api/v1/logs/{log_id}/delete
{
  "reason": "customer erasure request"
}
Batch LogsVerification