Temso API

Ingest a batch of request events from a Cloudflare Worker

POST
/traffic/ingest/worker/{sourceId}

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": "string",        "url": "string",        "status": 100,        "country": "st",        "asn": 0,        "referer": "string"      }    ]  }'
{
  "accepted": 0,
  "dropped": 0,
  "idempotent": true,
  "revoked": true
}