---
title: "Upload usage record CSV"
method: POST
path: "/v2/usage/csv"
tags: ["Usage"]
---

# Upload usage record CSV

`POST /v2/usage/csv`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/v2/usage/csv`
- Auth: API key in header `X-API-Key`

Upload usage records in CSV file. Each row of the file represents a single usage record

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

successful operation

- UsageBatchInsertResult
  - `rawUsagesTotal` integer
  - `totalFailed` integer
  - `totalDuplicates` integer
  - `entries` Entry[]
    - `rowNumber` integer
    - `failed` boolean
    - `failureReason` string

---

[API](https://skmtc.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
