---
title: "Update Audit Tokens"
method: POST
path: "/api/company/audit-logs/update-tokens"
tags: ["Audit"]
---

# Update Audit Tokens

`POST /api/company/audit-logs/update-tokens`

## Request

- Base URL: `https://api.privacypal.ai`
- URL: `https://api.privacypal.ai/api/company/audit-logs/update-tokens`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/privacypal/apis/privacypal-api/docs/api/company/audit-logs/update-tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Update audit log entries with LLM token usage information. Used to track AI cost and usage per encoding session.

**SDK Usage:**
```typescript
await client.updateAuditTokens({
  continuationId: 'cont-ai-5f6g-7h8i',
  tokensIn: 245,
  tokensOut: 512,
  model: 'gemini-2.0-flash-exp'
});
```

## Request body

- object
  - `continuationId` string, required: The continuation ID from the encoding session
  - `tokensIn` integer: Number of input/prompt tokens
  - `tokensOut` integer: Number of output/completion tokens
  - `model` string, nullable: LLM model name

## Response `200`

Audit tokens updated

- object
  - `success` boolean
  - `data` object

## Other responses

- `401`: Authentication failed or token expired

## Changes

- **2026-03-07** `f19009a654f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/privacypal/apis/privacypal-api/changes/api/company/audit-logs/update-tokens/post.md)

---

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