Skip to content

AI traffic: custom log shipping

This endpoint works today. Any server that can send a POST can hand its bot logs to Zeo Radar. Cloudflare Logpush and the Vercel log drain write to the same address under the same contract.

Endpoint and method:

POST https://app.zeoradar.com/api/bot-logs?token=YOUR_INGEST_TOKEN

Any other method returns 405. Identity is proved in one of two ways: the token query parameter in the address (the right one for a shipper), or an Authorization: Bearer <session-token> header together with a brand_id field in the body (for uploads from the browser).

Headers:

HeaderValueRequired
Content-Typeapplication/x-ndjson, application/json or application/octet-streamYes
Content-Encodinggzip, if you are sending gzipNo, the body signature gives it away too
AuthorizationBearer <session-token>Only for session-based uploads
  • The Radar Pro or Custom plan, and an ingest token generated in the app.
  • A server that can POST outbound over HTTPS.
  • An access log carrying at least the user agent, the path, the status code and a timestamp.
  1. On the AI Traffic screen in the app, choose Connect a continuous stream and copy the token.
  2. Convert your log into one JSON object per line (NDJSON). The body may also be a JSON array or an {"events": [...]} object; all three are read.
  3. Rename your fields to one of the accepted names below. From every line, Zeo Radar pulls:
FieldAccepted namesNote
User agentua, userAgent, UserAgent, ClientRequestUserAgent, user_agent, proxy.userAgentMay be an array, the first bot match is used. If it is not a bot, the line is dropped silently
Pathpath, proxy.path, url, RequestURI, ClientRequestURI, request_path, uriThe query string is dropped, 500 characters maximum
Timestampts, timestamp, time, EdgeStartTimestamp, datetimeISO text or a number (seconds, milliseconds and nanoseconds are told apart). If it cannot be read, the current time is written
Status codestatus, statusCode, proxy.statusCode, EdgeResponseStatus, response_statusnull if it is not a number
Addressip, clientIp, proxy.clientIp, ClientIP, remote_addrnull if invalid, the line is still stored
  1. POST the batch. Gzip it if you like, compression is unpacked automatically.
Terminal window
curl -X POST "https://app.zeoradar.com/api/bot-logs?token=YOUR_INGEST_TOKEN" \
-H "Content-Type: application/x-ndjson" \
--data-binary @access-log.ndjson

A single-line test:

Terminal window
curl -X POST "https://app.zeoradar.com/api/bot-logs?token=YOUR_INGEST_TOKEN" \
-H "Content-Type: application/x-ndjson" \
-d '{"ts":"2026-08-27T09:15:00Z","ua":"Mozilla/5.0 (compatible; PerplexityBot/1.0)","path":"/urunler/cikolata","status":200,"ip":"203.0.113.10"}'
LimitValue
Request body5 MB
Events per request5,000 lines, 413 beyond that
Decompressed gzip size32 MB
Database write chunk1,000 rows (split automatically, not your concern)
Request duration30 seconds

A successful response is 200 with this body:

{ "stored": 42, "seen": 1180 }

seen is how many lines you sent, stored is how many of them were kept because they were bots; a gap between the two is normal. Then watch the counter go up on the AI Traffic screen.

If the response carries a note field, there was nothing to store: Destination check accepted (a shipper testing the endpoint), Empty batch accepted (an empty batch), No AI crawler lines in this batch (the lines were read, none of them were bots).

SymptomCauseFix
405 Only POST is allowedGET or another method was usedSend a POST
401 Unknown ingest tokenThe token is wrong, or a new one was generated and the old one is now invalidGet a new token from the app
401 Sign in, or use an ingest tokenNeither the token parameter nor a session header is presentAdd ?token=... to the address
401 Your session has expiredThe session token has timed outSign in again, or switch to the token method
401 That brand is not yoursThe brand_id in the body does not belong to your organisationSelect the right brand
413 Send at most 5000 events per requestThe batch is too largeSplit the batch
400 Too much at onceThe body exceeds 5 MBSplit the batch, or gzip it
400 This body could not be unpackedThe gzip is corrupt, or unpacks to more than 32 MBRebuild the compressed file, make the batch smaller
400 events array is requiredThe body is in none of the recognised shapesSend NDJSON, a JSON array or {"events": [...]}
502 Could not store these eventsThe database refused the write, with the detail in the detail fieldInclude the detail text in your support request
500 Supabase is not configured on the serverServer-side configuration is missingOn your own installation, define SUPABASE_URL and SUPABASE_PUBLISHABLE_KEY
200 but stored: 0No recognised bot in the linesConfirm that the user agent field really is being sent

feedback.question