{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"What this solves"}]},{"type":"text","value":": 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."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Call Traces answers \"what happened in this call\": model, tokens, cost, routing attempts, failure reason.\nWhether the request body and the model's response are stored too is up to your retention switch."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"First, separate two things: usage and call content"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Usage records"}]},{"type":"text","value":": token counts, spend, which route was actually used. They are "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"always recorded"}]},{"type":"text","value":" and are the basis for your statement."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Call content"}]},{"type":"text","value":": the text sent to the model and the model's response. It is "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"not stored at all by default"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The two are independent. Turning off content retention doesn't affect using Call Traces to see cost, tokens, routing, and error reasons."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"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 "},{"type":"element","tagName":"a","properties":{"href":"mock"},"children":[{"type":"text","value":"Mock"}]},{"type":"text","value":" are marked as simulated and are not counted as failures."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Node mode does not record request content"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"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."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The retention switch above applies only to calls on the Tare server path. Turning it on does not backfill bodies from the node."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Default behavior: no storage"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A new account doesn't need to do anything. The switch in the console under "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Call Traces"}]},{"type":"text","value":" is off by default."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In that state, the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"request_content"}]},{"type":"text","value":" / "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"response_content"}]},{"type":"text","value":" columns in the list are empty. Note this means "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"never stored"}]},{"type":"text","value":",\nnot \"stored but hidden from you\"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"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."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"When to turn on content retention"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"You want to troubleshoot the quality of a model's answers, or what upstream actually returned."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"You want to review failed requests over a period of time."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you only want to see cost, tokens, routing, and error reasons, you don't need to turn it on."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Once on, this is how content is kept"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"table","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"thead","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"th","properties":{},"children":[]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tbody","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Retention count"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Keeps the "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"most recent 1,000 calls"}]},{"type":"text","value":" by default, configurable "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"1–100,000"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Encryption"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"AES-256-GCM"}]},{"type":"text","value":", with keys held by the platform, stored separately from channel credentials"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Storage region"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Singapore"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Access"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"The account owner can view at any time; "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the platform cannot read it without authorization"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"tr","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Expiry handling"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"td","properties":{},"children":[{"type":"text","value":"Cleaned 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)"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Content keys and channel credentials are kept separately because the two rotate on different schedules: a leaked credential needs an immediate\nchange, whereas once a content key rotates, the historical records all have to be re-encrypted."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Encryption doesn't mean the platform can't read it."}]},{"type":"text","value":" The keys are kept on platform servers, so \"the platform can't read it\" is a "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"policy\nconstraint"}]},{"type":"text","value":" (enforced through authorization and audit, see below), not a physical one."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:en-content-retention-storage","alt":"Once retention is on, how content is kept","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"For the platform to see content, you must grant time-limited authorization"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When troubleshooting, the platform may need to read the content of certain calls. There's only one path: "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"the account owner grants\na time-limited authorization in the console"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"A grant requires a reason, which stays on record with it."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Authorization duration is "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"1 hour to 30 days"}]},{"type":"text","value":", and "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"there's no \"permanent\" option"}]},{"type":"text","value":". The reason is that an authorization with no time limit would stay\nvalid long after the troubleshooting is done."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Every read during the authorization period is audited and can be viewed on the Audit page."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"You can revoke it early at any time; expired ones lapse automatically and need no handling."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Without authorization, what the platform reads is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"<withheld: customer has not granted access>"}]},{"type":"text","value":", not the content."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"img","properties":{"src":"diagram:en-content-retention-grant","alt":"For the platform to see content, the account owner must grant time-limited authorization","data-block":"true"},"children":[]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"note"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"The Audit page is a general ledger for the whole account, not just content authorizations."}]},{"type":"text","value":" Price changes, routing changes, billing-method changes,\nkey 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\nmade 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\nthe content authorization above. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events"}]},{"type":"text","value":" reads this ledger back, and\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events/export"}]},{"type":"text","value":" exports the same data. See "},{"type":"element","tagName":"a","properties":{"href":"audit-trail"},"children":[{"type":"text","value":"Audit Trail"}]},{"type":"text","value":" for details."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Changes to a key's own governance settings go through the same record: cumulative limit, source IP allowlist and its switch, DLP settings,\nthe bound Router, expiry time, name, and disabling. These are exactly the things an attacker would change first after getting hold of a key.\nIf the change was made with an API key (rather than a login session), the record states which key made it."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Turning a drill (mock) on or off for a key also leaves traces. If production traffic quietly starts returning fake data, someone\nwill eventually ask you to explain what happened during that period."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events"}]},{"type":"text","value":" can also answer narrower questions than \"show me everything\": pass "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"group=security"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"dlp"}]},{"type":"text","value":",\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"access"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"config"}]},{"type":"text","value":", or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"staff"}]},{"type":"text","value":" to see only that category; pass "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"view=summary&days=30"}]},{"type":"text","value":" to skip the individual records and\nget a "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"security report"}]},{"type":"text","value":" instead: a day-by-day summary within the given window, showing which entity types were hit, which keys they came from,\nand which source addresses were rejected."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The \"Export\" button on the Audit page "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"only exports the current page (50 rows)"}]},{"type":"text","value":". To export the full range, you have to call\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"GET /v1/audit/events/export"}]},{"type":"text","value":" yourself; you can't rely on clicking in the console."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Turning retention off"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can turn it off at any time. After that, new calls no longer write content; "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"content already stored is not deleted immediately"}]},{"type":"text","value":", only\nerased on the next cleanup, down to the retention count that was set at the time."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To clear immediately, change the retention count to "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"1"}]},{"type":"text","value":"; after the next cleanup, only the most recent call's content remains."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"API"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The switches in the console all have corresponding APIs:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["language-bash"]},"children":[{"type":"text","value":"# Current settings + authorization status\ncurl https://tare.jamerly.ai/v1/content-settings \\\n  -H \"Authorization: Bearer $TARE_API_KEY\"\n\n# Turn on saving, keeping only the most recent 100 calls\ncurl -X PUT https://tare.jamerly.ai/v1/content-settings \\\n  -H \"Authorization: Bearer $TARE_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"enabled\": true, \"retentionCount\": 100}'\n\n# Authorize the platform to view for 24 hours\ncurl -X POST https://tare.jamerly.ai/v1/content-settings/grants \\\n  -H \"Authorization: Bearer $TARE_API_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"hours\": 24, \"reason\": \"troubleshooting 502\"}'\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"blockquote","properties":{"data-alert":"warning"},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"productLine"}]},{"type":"text","value":" "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"can only go on the GET query"}]},{"type":"text","value":", and write operations always go in the request body: the front gateway drops\nthe query string on POST/PUT, and parameters written in the query don't error, they just don't take effect."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{},"children":[{"type":"text","value":"Next steps"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"To learn about change records and content authorization records on the account: read "},{"type":"element","tagName":"a","properties":{"href":"audit-trail"},"children":[{"type":"text","value":"Audit Trail"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"To tell which category a failure falls into: read "},{"type":"element","tagName":"a","properties":{"href":"errors"},"children":[{"type":"text","value":"Error codes"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"To learn how the retention switch affects embedding calls: read "},{"type":"element","tagName":"a","properties":{"href":"endpoints"},"children":[{"type":"text","value":"Endpoints"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]}]}