---
title: "POST /v1/ai/assistant/usage"
method: POST
path: "/v1/ai/assistant/usage"
tags: ["Module AI Assistant"]
---

# POST /v1/ai/assistant/usage

`POST /v1/ai/assistant/usage`

## Request

- Base URL: `https://app.adhook.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.adhook.io/v1/ai/assistant/usage`
- Auth: none declared

Record AI usage from agent service

## Request body

- AiUsageRecordRequest
  - `userId` string
  - `tenantId` string
  - `model` string
  - `usageType` 'ASSISTANT' | 'AGENT'
  - `iterations` integer
  - `inputTokens` integer
  - `outputTokens` integer
  - `cacheCreationTokens` integer
  - `cacheReadTokens` integer
  - `durationMs` integer

## Response `default`

default response

## Changes

- **2026-10-17** `7a8a196e5edd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/adhook/apis/adhook-io-api/changes/v1/ai/assistant/usage/post.md)

---

[API](https://skmtc.dev/adhook/apis/adhook-io-api.md) - [All operations](https://skmtc.dev/adhook/apis/adhook-io-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adhook/apis/adhook-io-api/revisions/4a3161c512eb?raw)
