---
title: "Ingest Metrics"
method: POST
path: "/api/v1/metrics"
tags: ["metrics"]
---

# Ingest Metrics

`POST /api/v1/metrics`

## Request

- Base URL: `https://api.primeintellect.ai`
- URL: `https://api.primeintellect.ai/api/v1/metrics`
- Auth: HTTP bearer

Log metric records for a run. Retrying the same body is safe.

202 once the upload is validated and queued; its points are readable once
the worker has stored them, usually within seconds.

## Request body

- object
  - `run_id` string, required
  - `producer` string
  - `records` object[], required

## Response `202`

Successful Response

- MetricsAccepted
  - `accepted_points` integer, required
  - `dropped_non_numeric` integer

## Other responses

- `401`: Authorization failed
- `422`: Invalid request data

## Changes

> 49 revisions in range; 1 not diffed.

- **2026-10-28** `1bb47742c56d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/primeintellect/apis/pi-api/changes/api/v1/metrics/post.md)

---

[API](https://skmtc.dev/primeintellect/apis/pi-api.md) - [All operations](https://skmtc.dev/primeintellect/apis/pi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primeintellect/apis/pi-api/revisions/7f032a9306b0?raw)
