Skip to main content
v2 events address a Contract with external_contract_id. Send it on every event so the usage reaches that Contract’s rate cards.

send

transaction_id plus timestamp is the deduplication key. Keep both when you retry. With --file, the CLI retries a line on 429 or 5xx only when it carries a timestamp, and warns about lines with a transaction ID but no timestamp. A line can be a bare event or wrapped in {"event": {...}}.

batch

--events takes a JSON array of events, or pass --input with {"events": [...]}.

list

Filters are --external-contract-id, --code, --transaction-id, --timestamp-from and --timestamp-to. Newly accepted events may not appear immediately. On ClickHouse organizations, a successful send acknowledges ingestion, not completed enrichment. See usage ingestion and retrieve usage.