Skip to main content
Docs

One endpoint,
every model.

Tare is an OpenAI-compatible gateway in front of every model you use — ours and the ones you bring yourself. One base URL, one key, and every token accounted for.

OperationsCall Traces

Call Traces

What this solves: Explain exactly whether Tare records your call content, how it's set by default, where data lives once it's on, and who can see it.

Call Traces answers "what happened in this call": model, tokens, cost, routing attempts, failure reason. Whether the request body and the model's response are stored too is up to your retention switch.

First, separate two things: usage and call content

  • Usage records: token counts, spend, which route was actually used. They are always recorded and are the basis for your statement.
  • Call content: the text sent to the model and the model's response. It is not stored at all by default.

The two are independent. Turning off content retention doesn't affect using Call Traces to see cost, tokens, routing, and error reasons.

Per-attempt upstream detail (the request sent to the upstream and its response body) is recorded only for calls that go through your own channels. Calls answered by a Mock are marked as simulated and are not counted as failures.

Node mode does not record request content

Calls on a customer Local Node never pass through Tare, so the content is not there to store. Call Traces record token input and output, plus the fields audit and reconciliation need: model, cost, failure kind, attempts, and DLP alerts. They do not record the request body or the model's answer.

The retention switch above applies only to calls on the Tare server path. Turning it on does not backfill bodies from the node.

Default behavior: no storage

A new account doesn't need to do anything. The switch in the console under Call Traces is off by default.

In that state, the request_content / response_content columns in the list are empty. Note this means never stored, not "stored but hidden from you".

If you're worried about "request bodies carrying customer code and business data", then under the default configuration, that content is not stored by the platform.

When to turn on content retention

  • You want to troubleshoot the quality of a model's answers, or what upstream actually returned.
  • You want to review failed requests over a period of time.

If you only want to see cost, tokens, routing, and error reasons, you don't need to turn it on.

Once on, this is how content is kept

Retention countKeeps the most recent 1,000 calls by default, configurable 1–100,000
EncryptionAES-256-GCM, with keys held by the platform, stored separately from channel credentials
Storage regionSingapore
AccessThe account owner can view at any time; the platform cannot read it without authorization
Expiry handlingCleaned once every day in the early morning; content beyond the retention count is erased oldest-first (usage rows are kept, only the two content columns are cleared)

Content keys and channel credentials are kept separately because the two rotate on different schedules: a leaked credential needs an immediate change, whereas once a content key rotates, the historical records all have to be re-encrypted.

Encryption doesn't mean the platform can't read it. The keys are kept on platform servers, so "the platform can't read it" is a policy constraint (enforced through authorization and audit, see below), not a physical one.

Once retention is on, how content is kept Once retention is on, content is stored with the call, encrypted with AES-256-GCM, kept in Singapore, defaulting to the latest 1,000 calls. A daily cleanup clears the oldest content columns and keeps the usage row. Once retention is on, how content is kept 1. Retention on: content is encrypted and stored Usage rows always exist. Content is stored only after you turn the switch on. 2. AES-256-GCM. The platform holds the content key Stored apart from channel credentials. Rotate a leaked credential. A new content key re-encrypts the table. 3. Latest 1,000 calls by default, range 1 to 100,000 Stored in Singapore. The owner can read it. The platform cannot, without a grant. 4. Cleaned once a day, early morning Past the cap, oldest content is cleared. The usage row stays. Platform cannot read is a policy, grant plus audit, not a physical limit. The key is on the platform. Turning it off does not delete old content now. Cap 1 waits for the next cleanup. The latest content stays.
Once retention is on, how content is kept

For the platform to see content, you must grant time-limited authorization

When troubleshooting, the platform may need to read the content of certain calls. There's only one path: the account owner grants a time-limited authorization in the console.

  • A grant requires a reason, which stays on record with it.
  • Authorization duration is 1 hour to 30 days, and there's no "permanent" option. The reason is that an authorization with no time limit would stay valid long after the troubleshooting is done.
  • Every read during the authorization period is audited and can be viewed on the Audit page.
  • You can revoke it early at any time; expired ones lapse automatically and need no handling.
  • Without authorization, what the platform reads is <withheld: customer has not granted access>, not the content.
Platform reads content only under a timed grant The platform reads withheld until the account owner grants access for 1 hour to 30 days. There is no permanent option. Every read is audited. Expiry or revoke returns to not granted, and the grant can be given again. Platform reads content only under a timed grant Grant: 1 hour to 30 days Expires on its own, or you revoke it Not granted Platform reads <withheld> Not the content itself Grant active 1 hour to 30 days Every read is audited The owner grants it in the console, for 1 hour to 30 days. No permanent option. Each read is on the Audit page. Revoke or expiry returns to not granted. You can grant again.
For the platform to see content, the account owner must grant time-limited authorization

The Audit page is a general ledger for the whole account, not just content authorizations. Price changes, routing changes, billing-method changes, key limit changes, and credential changes — all these kinds of changes on the account are recorded here, and each one is marked as either made by you or made by the platform on your behalf. It answers the bigger question "can things on my account be changed or viewed without my knowledge", not just the content authorization above. GET /v1/audit/events reads this ledger back, and GET /v1/audit/events/export exports the same data. See Audit Trail for details.

Changes to a key's own governance settings go through the same record: cumulative limit, source IP allowlist and its switch, DLP settings, the bound Router, expiry time, name, and disabling. These are exactly the things an attacker would change first after getting hold of a key. If the change was made with an API key (rather than a login session), the record states which key made it.

Turning a drill (mock) on or off for a key also leaves traces. If production traffic quietly starts returning fake data, someone will eventually ask you to explain what happened during that period.

GET /v1/audit/events can also answer narrower questions than "show me everything": pass group=security, dlp, access, config, or staff to see only that category; pass view=summary&days=30 to skip the individual records and get a security report instead: a day-by-day summary within the given window, showing which entity types were hit, which keys they came from, and which source addresses were rejected.

The "Export" button on the Audit page only exports the current page (50 rows). To export the full range, you have to call GET /v1/audit/events/export yourself; you can't rely on clicking in the console.

Turning retention off

You can turn it off at any time. After that, new calls no longer write content; content already stored is not deleted immediately, only erased on the next cleanup, down to the retention count that was set at the time.

To clear immediately, change the retention count to 1; after the next cleanup, only the most recent call's content remains.

API

The switches in the console all have corresponding APIs:

Code / Terminal
# Current settings + authorization status
curl https://tare.jamerly.ai/v1/content-settings \
  -H "Authorization: Bearer $TARE_API_KEY"

# Turn on saving, keeping only the most recent 100 calls
curl -X PUT https://tare.jamerly.ai/v1/content-settings \
  -H "Authorization: Bearer $TARE_API_KEY" -H "Content-Type: application/json" \
  -d '{"enabled": true, "retentionCount": 100}'

# Authorize the platform to view for 24 hours
curl -X POST https://tare.jamerly.ai/v1/content-settings/grants \
  -H "Authorization: Bearer $TARE_API_KEY" -H "Content-Type: application/json" \
  -d '{"hours": 24, "reason": "troubleshooting 502"}'

productLine can only go on the GET query, and write operations always go in the request body: the front gateway drops the query string on POST/PUT, and parameters written in the query don't error, they just don't take effect.

Next steps

  • To learn about change records and content authorization records on the account: read Audit Trail.
  • To tell which category a failure falls into: read Error codes.
  • To learn how the retention switch affects embedding calls: read Endpoints.
Docs last updated Nov 27, 2026, 12:56 (UTC+8)