Skip to main content
The raw events API accepts request logs from any source: your own web server, a CDN without a managed export, or a script replaying historical logs. Events land in the same AI traffic metric as every other collector, with AI crawler and agent classification handled on our side. On Cloudflare Enterprise? Cloudflare Logpush streams the same data with zero ongoing work.

Before you start

  • You need a The Prompting Company API key (organization or service-account key) from Settings → API Keys.

Send events

POST a JSON array (a single object also works), plain or gzipped, to https://logs.promptingco.com/v1/events/raw. Authenticate with either an X-API-Key header or Authorization: Bearer.
Requests can be up to 64 MB (compressed and decompressed). Batch as many events per request as fits.

Responses

Delivery is at-least-once: retry the whole batch after a 503, and occasional duplicates are expected and tolerated by the traffic metrics.

Verify it’s working

A 200 with "ingested": 1 confirms the pipeline, and the visit appears in your AI traffic dashboard shortly after.