Trust

Updated 19 November 2026

This page states what Diurna keeps, and what it does not keep, when zero data retention is on. It matches the behavior of the product. Diurna is not legal advice. This page is not a certification.

How it turns on

Zero data retention is off until one of these is true:

  • The signed-in account turns it on under Settings › Account. The default is off. The change requires a live session.
  • A team owner turns it on for that workspace. The default is off. An admin, editor, viewer, or billing member cannot change it. If any team the account belongs to has the flag on, requests for that account that check the flag use zero data retention.
  • The request sends the header X-Diurna-Zero-Retention with the value 1, true, or on. Matching ignores case and surrounding spaces. The values 0, false, off, and an empty header do not turn it on. The header cannot turn an account or team flag off.

When the product cannot read the retention flag because of a database error, that request is treated as zero data retention so the query and response text are not stored. A missing retention feature on the private data API is also treated as zero data retention on that path.

Turning the flag on does not delete rows already stored. Saved searches, briefs, watches, notes, and matters that were written before the flag stay until the caller deletes them or deletes the account. An audit row records the account or workspace change with enabled true or false. The audit row does not contain the query. Audit rows are append-only.

What is not stored

While zero data retention applies to a request:

  • An issue brief is not generated and not saved. The API returns "Zero data retention is on, so this query and answer are not saved." The model is not called for that request, so the question is not sent to api.x.ai for that refused save. This applies to the issue brief page and to the developer automation that creates issue briefs.
  • An Idempotency-Key receipt does not keep the original response text. The stored response is a fixed placeholder and the stored header list is empty. The account id, route, key, status, and fingerprint of the method, path, and body are still stored for 24 hours. The request body is not stored. A replay returns the fixed text and the original status.
  • The application log line does not include the query string or the response. It records whether zero data retention applied when the header asked for it, when a retention check found the account or team flag on, or when that check could not read the flag.
  • A server error group stores the sample message as the word omitted when zero data retention already applies. The route template, error name, one stack frame, and request id are still stored. The application cannot delete the group. A later server error with the same fingerprint that is not under zero data retention replaces that sample with its own redacted message of up to 500 characters.

Ask Diurna does not write the question or the answer for any account, whether or not zero data retention is on. When Ask is enabled, the question and the official excerpts are still sent to Amazon Bedrock in us-east-1 so the answer can be returned. The prompt is not stored. Ask does not write the xAI spend rows. Zero data retention does not stop that Bedrock call.

What is still stored

These records are written when the caller saves them, including while zero data retention is on:

  • Saved searches: the name, the search link, and the alert frequency. The link can contain the search words.
  • Court watches: the name, the query of up to 500 characters, the court, the frequency, the email, the citation, and the source URL.
  • Research watches: the saved definition, including the question, and the run and evidence rows for that watch.
  • Team notes, list items, and client-matter profiles and drafts.
  • Bulk section and jurisdiction export jobs: the request, the result, and each item, for 24 hours.
  • API usage counts. A counted API call still increments monthly usage for the account. The row stores the account id, the UTC month, and the request count. The query and the response are not stored in that count. Browser search that does not count toward API billing does not add a row.
  • Deep research jobs started through the API: the question, the answer, and its citations, for 24 hours.
  • API activity rows: the route template, the method, the status, the latency, the API key id, and an error code, for up to 30 days and the latest 200 rows. The error text is not stored when zero data retention applies to that request or the account.
  • Rate-limit rows: a keyed hash, the endpoint name, and a count. The query is not stored there.
  • The account email, the session token hash, and up to 200 characters of user agent. The account export includes the zero data retention setting on the profile and on team rows that export already includes.
  • Monthly model spend totals for an issue brief that was allowed to run. A refused brief does not call the model and does not add spend. The prompt is not stored.

Vercel may keep its own request logs, including a search string in the URL. Diurna does not control Vercel log retention. Application CloudWatch logs default to 30 days and job logs to 14 days. The log line still omits the query string. RDS backups keep a stored row until the 7-day backup retention passes. Deleting a row in the primary database does not erase the backup. The privacy page and the security page describe the rest of what the product stores when this mode is off.

Billing counts

Zero data retention does not skip the usage count. The count is the account id, the month, and the number of counted requests. It is not a copy of the question or the answer. There is no per-request price stored in API usage counts for billing for this mode.

What this page does not say

It does not say a backup, a Vercel log, or an audit row disappears when the flag is turned on. It does not say saved searches, watches, notes, or matters are wiped. It does not say Amazon Bedrock or Stripe forget a call they received. It does not say Diurna has passed an independent audit. Questions about a backup or a provider record go to hello@trydiurna.com.

Privacy · Terms · Security · Trust · hello@trydiurna.com