---
title: "Report billable feature usage from local test runs"
method: POST
path: "/testRun/local/usage"
tags: ["TestRun"]
---

# Report billable feature usage from local test runs

`POST /testRun/local/usage`

Reports billable feature usage (e.g., visual assertions) from local test run executions

## Request body

- LocalTestRunUsage — Usage data from a local test run for billing purposes
  - `workspace_id` string, required — The workspace ID for the test
  - `session_id` string — The session ID for the local test
  - `test_id` string, required — The test ID (must exist in the workspace)
  - `usage_type` 'local_test_genai_assertions', required — Type of billable usage from a local test run

## Response `204`

Usage recorded successfully

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Test not found in workspace
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
