---
title: "Record one Jev or Claude call made by the lab"
method: POST
path: "/api/v1/agent-memory/ai-usage"
tags: ["Agent Memory"]
---

# Record one Jev or Claude call made by the lab

`POST /api/v1/agent-memory/ai-usage`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/api/v1/agent-memory/ai-usage`
- Auth: HTTP bearer

## Request body

- object
  - `external_call_id` string, required
  - `operation` 'label' | 'draft' | 'rule' | 'entry', required
  - `provider` 'anthropic' | 'jev', required
  - `model` string, required
  - `status` 'success' | 'error', required
  - `error_code` string
  - `started_at` string, date-time, required
  - `duration_ms` integer, required
  - `input_tokens` integer
  - `cached_input_tokens` integer
  - `output_tokens` integer
  - `reasoning_tokens` integer
  - `metadata` object
    - `draft_id` string
    - `n8n_execution_id` string
    - `conversation_id` string, uuid
    - `prompt_version` string

## Response `200`

Recorded, or already recorded

- object
  - `recorded` boolean, required

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
