---
title: "Record Metric"
method: POST
path: "/costs/metrics"
tags: ["costs"]
---

# Record Metric

`POST /costs/metrics`

Record a cost metric.

## Request body

- CostMetricCreate
  - `dimensions` object
  - `name` string, required
  - `period_end` string, date-time, nullable
  - `period_start` string, date-time, nullable
  - `source` string, nullable
  - `unit` string, nullable
  - `value` number, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/agents-squads/apis/squads-api.md) · [All operations](https://skmtc.dev/agents-squads/apis/squads-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agents-squads/squads-api/revisions/3812730a1cb4/schema)
