---
search:
  tags:
    - meters
    - POST
seo:
  description: Reference for the POST /v1/meters endpoint in the Vortex Payments API.
sidebar:
  label: POST /v1/meters
  badge: POST
title: POST /v1/meters
type: openapi-operation
---
`POST /v1/meters`

**curl**

```bash
curl "https://api.vortex.nyc/v1/meters?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"meterId":"meter_api_calls","name":"API calls","eventName":"api.call","aggregationType":"sum","windowGrain":"month"}'
```

**TypeScript**

```ts
import { createMeter, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createMeter({
  client: vortex,
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"meterId":"meter_api_calls","name":"API calls","eventName":"api.call","aggregationType":"sum","windowGrain":"month"},
});
```

**Request body** (`application/json`, required)

- `environment` (string, required)
- `merchantAccountId` (string, required)
- `name` (string, required)
- `eventName` (string, required)
- `aggregationType` (string, required)
- `windowGrain` (string, required)
- `meterId` (string | null)
- `filterSchema` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "name": "string",
  "eventName": "string",
  "aggregationType": "sum",
  "windowGrain": "day",
  "meterId": "string",
  "filterSchema": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "meterId": "string",
    "name": "string",
    "eventName": "string",
    "aggregationType": "sum",
    "windowGrain": "day",
    "createdAt": "string",
    "filterSchema": {
      "property1": "string",
      "property2": "string"
    },
    "archivedAt": "string"
  },
  "requestId": "string"
}
```
