Temso Docs
API referenceTraffic ingestion

Ingest Traffic Events

Accepts batches of request events (1–500 per call) from a Cloudflare Worker installed at your edge, used by the Temso traffic integration to attribute AI-driven visits. Requires an API key with the traffic:ingest scope; the worker generated during setup calls this endpoint for you — you don't need to call it when consuming the API.

POST
/traffic/ingest/worker/{sourceId}

Accepts batches of request events (1–500 per call) from a Cloudflare Worker installed at your edge, used by the Temso traffic integration to attribute AI-driven visits. Requires an API key with the traffic:ingest scope; the worker generated during setup calls this endpoint for you — you don't need to call it when consuming the API.

Path Parameters

sourceId*string

The traffic source ID assigned during setup

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/traffic/ingest/worker/string" \  -H "Content-Type: application/json" \  -d '{    "timestamp": 0,    "events": [      {        "ts": 0,        "ua": "string",        "method": "GET",        "url": "string",        "status": 100,        "country": "st",        "asn": 0,        "referer": "string"      }    ]  }'
{
  "accepted": 0,
  "dropped": 0,
  "idempotent": true,
  "revoked": true
}