---
title: "Export usage metering records"
method: POST
path: "/exports/usage-metering"
tags: ["exports"]
---

# Export usage metering records

`POST /exports/usage-metering`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/exports/usage-metering`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Request body

- ExportRequest
  - `format` 'csv' | 'json' | 'xlsx'
  - `from` string, date-time
  - `to` string, date-time
  - `filters` object
  - `columns` string[]

## Response `202`

Export job queued

- ExportJob
  - `id` integer, required
  - `domain` string, required
  - `format` 'csv' | 'json' | 'xlsx', required
  - `status` 'queued' | 'running' | 'completed' | 'failed' | 'expired', required
  - `rowCount` integer, nullable
  - `fileSizeBytes` integer, nullable
  - `downloadToken` string, nullable
  - `downloadUrl` string, nullable
  - `expiresAt` string, date-time, nullable
  - `requestedBy` integer, required
  - `createdAt` string, date-time, required
  - `completedAt` string, date-time, nullable

## Other responses

- `401`: Unauthorized

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/exports/usage-metering/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
