---
title: "Ingest managed-deployment execution analytics"
method: POST
path: "/v1/metering"
tags: ["metering"]
---

# Ingest managed-deployment execution analytics

`POST /v1/metering`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/metering`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Compatibility endpoint for a managed deployment that explicitly enables control-plane sync. Self-hosted Algenta editions do not call it automatically and have no execution meter. Received events are analytics only and are not used for Algenta billing.

## Request body

- MeteringBatchRequest
  - `device_id` string, required
  - `events` MeteringEvent[]
    - `event_type` string
    - `module` string
    - `function` string
    - `engine_used` string
    - `latency_ms` number
    - `success` boolean
    - `timestamp` number
    - `request_id` string

## Response `200`

Successful Response

- MeteringBatchResponse
  - `accepted` integer, required
  - `billing_period` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
