Skip to main content
Zenskar lets you push usage events or pre-aggregated data via REST APIs into its ingestion layer. This integration enables real-time ingestion for billing, metrics, and reporting.

What you send

You can send:
  • Usage events: Individual, timestamped records of actions (for example, API calls, compute hours).
  • Aggregates: Pre-summarized values (for example, total compute hours per day or per month).
Both types are accepted via the same ingestion endpoint.

Set up an API endpoint

  1. In the Zenskar dashboard, navigate to Usage > Usage events.
  2. Click + ADD USAGE EVENT button.
  3. Fill in the following:
    • Usage Event Name: A descriptive label for this data stream.
    • API Slug Endpoint: A URL-safe identifier (alphanumeric, underscores, or dashes).
    • Your Data Schema: Define the JSON structure you will send.
    🚧 Note
    • customer_id and timestamp are required and read-only.
    • Zenskar uses timestamp to order incoming records.
  4. Click ADD USAGE EVENT to create the endpoint and corresponding ingestion pipeline.

Example payloads

Send a usage event

Send an aggregate


What happens next

  • Zenskar stores the data in a secure, RDBMS-style table.
  • Usage events must be aggregated (using SQL or the visual builder) to become billable metrics.
  • Aggregates, being pre-summarized, can be used directly.
  • All ingested data is available as structured tables for defining billable metrics.

πŸ‘ Pros and πŸ‘Ž cons