POST /v1/ingest accepts batches of evaluation results produced by your gates and updates each agent’s rolling reputation window. The endpoint is designed for high-throughput, asynchronous delivery — Pecta queues each event for background processing and updates reputation scores before returning.
This endpoint is called automatically by
PectaTelemetry in @pecta/core and by pecta-proxy. Most customers never need to call it directly. Use it when you are building a custom integration or shipping telemetry from a platform that cannot run the Node.js SDK.Endpoint
Authentication
Required. Pass your API key as a Bearer token:Optional HMAC signature
If you have HMAC signing enabled, include theX-Pecta-Signature header with the HMAC-SHA256 digest of the raw request body:
HMAC-SHA256(rawBody, sk_live_key). When the header is present, Pecta verifies it before parsing the body. Omitting the header skips signature verification. See Authentication for details.
Request body
array
required
Array of evaluation events. Must contain between 1 and 100 items.
Response fields
The server responds with202 Accepted once events are queued. Persistence is handled asynchronously in the background.
number
Number of events accepted from the batch.
array
Updated reputation summary for each unique agent in the batch.