---
title: "Record Usage"
method: POST
path: "/api/workspaces/{workspace_id}/usage"
---

# Record Usage

`POST /api/workspaces/{workspace_id}/usage`

## Request

- Base URL: `https://api.crowelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.crowelogic.com/api/workspaces/{workspace_id}/usage`
- Auth: none declared

Record a usage event. Called by the model gateway and agent workers.

## Path parameters

- `workspace_id` string, required

## Query parameters

- `event_type` string, required
- `quantity` integer
- `model` string, nullable

## Headers

- `authorization` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry.md) · [All operations](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/llms.txt) · [OpenAPI document](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/revisions/a3c1ef17f171?raw)
