# Request Logs — Save and Review the Input and Output of Every Request Source: https://ofox.ai/docs/develop/observability/request-logs OfoxAI is zero data retention (ZDR) by default and does not save request content. When you need to debug, your team can turn on **Log retention** and review the full input and output of each request in the console, one by one. Request logs are off by default. If your team hasn't turned them on, request content is not saved, and requests made before you turn it on can't be viewed later. ## What gets saved Once it's on, new requests save the input, output, tool calls and error reason. Images in the request and response are saved only if you also select **Also save images**. In **Activity**, requests that have a log are marked. Open one to step through the request on a timeline, along with a summary of latency, tokens and cost. ## Turn on log retention Only team Owners and Admins can turn it on. 1. Open **Activity** in the [console](https://app.ofox.ai) 2. Click **Log retention** at the top right 3. Click **Turn on log retention** 4. Under **Which requests to save**, choose the scope: - **All API keys**: you can exclude individual keys - **Selected API keys**: only the listed keys are saved 5. Select **Also save images** if you need it The setting applies only to new requests from then on. ## Storage limits | Item | Limit | |------|------| | Retention period | Latest 3 days | | Number of requests | Latest 10,000 | | Storage | 1 GB | When any limit is reached, the oldest logs are deleted automatically. If you need to keep logs longer, email us at [hi@ofox.ai](mailto:hi@ofox.ai). ## Sensitive data Before saving, API keys, tokens, passwords, cookies, private keys and signed URL parameters are replaced with `[REDACTED]`. Personal data such as phone numbers and email addresses is not redacted. If your requests contain users' personal data, assess this before turning logs on, or use the header below to skip saving. ## Skip saving a single request Add this header to a request to skip saving it: ```http X-OfoxAI-Log-Content: off ``` ```python from openai import OpenAI client = OpenAI( base_url="https://api.ofox.ai/v1", api_key="", ) response = client.chat.completions.create( model="anthropic/claude-sonnet-5.5", messages=[{"role": "user", "content": "Don't save a log for this request"}], extra_headers={"X-OfoxAI-Log-Content": "off"}, ) ``` ## Who can view logs | Action | Team Owner / Admin | Member | |------|------|------| | Turn on, turn off, change scope | ✅ | ❌ | | View log content | ✅ | ❌ | | Delete logs | ✅ | ❌ | If a member needs to see the full content of a request, they should ask a team admin. ## Delete and turn off - **Delete a single log**: Delete it from the request details. - **Delete by time range**: In the log retention settings, click **Delete saved logs** and choose the last hour, today, all, or a custom time range. Deleted logs can't be recovered; request records, token usage and charges are not affected. - **Turn off log retention**: New requests are no longer saved. Logs already saved aren't deleted right away; they're cleared automatically when their retention period ends. To delete them immediately, use the delete option above. ## FAQ **Why does a request show "No log was saved for this request"?** Possible reasons: the request was made before log retention was turned on; its API key is outside the retention scope; the request included `X-OfoxAI-Log-Content: off`; or the log has expired or been deleted. **Does log retention cost extra?** No. Log retention is free, and request records, token usage and billing stay the same. **How does this relate to zero data retention (ZDR)?** Teams that haven't turned on log retention remain zero data retention. Once it's on, request content within the scope is saved up to the limits above. See [Security & Data](https://ofox.ai/docs/develop/security).