# Data handling

Lens Proof Sign signs and validates each file in memory, and it does not store the file you send, the signed file, or the validation report.

## What is not stored

- The file you send. It stays in memory only while Lens Proof Sign signs it.
- The signed file. It goes back to your server in the response, and Lens Proof Sign does not keep a copy.
- Filenames. The API accepts no filename, and the download name in the response is generic.
- Files you send to `POST /v1/validate`, and their validation reports. The file stays in memory only while it is validated, and the report goes back to your server in the response.
- Bank or card details. An approved organization pays its monthly invoice by bank transfer to Lens Proof's Wise Business account, and Lens Proof Sign does not connect to Wise.

Lens Proof Sign does not log filenames, file hashes, or file contents.

## What is stored

- Workspace access, organization status, shared rate limits, the starter-signature balance, and shared usage counts for the current minute, UTC day, and UTC month, so access and quotas can be enforced.
- For each approved organization and UTC month, the number of successful signatures, with the organization id and the time the count last changed. The month's estimate and its invoice are worked out from it. These monthly counts are kept 6 years.
- For an organization that Lens Proof bills, its billing terms (currency, the amount for one successful signature, payment days, and monthly credit limit), whether signing is on hold, and an admin's pending request for a higher limit, with the value, the time, and the admin's user id.
- For each invoice: the organization id and name, the invoice number, the billing month, the number of successful signatures, the amount for one signature, the total before tax, the currency, the payment days, the status, the times it was made, issued, due, held, paid, or voided, a Lens Proof note about the payment or the reason for a void, and the user id of the Lens Proof operator who made it. Invoices are kept 6 years.
- Your API keys. Lens Proof Sign stores a keyed hash of each key's secret, never the secret itself. Each key record also holds the key id, the label, your organization id (or a customer id that Lens Proof sets for a key it issues), the dates the key was created, expires, and was revoked, the last time it was used (updated at most once an hour), its optional AI disclosure policy, and its admitted request count for the current UTC day.
- A log line for each signing or validation request, with the event name, the route, a request id, the declared media type, a size range rather than the exact size, the response status, and how long the request took.
- An audit line for each key event, such as a key that was created, rotated, or revoked, a failed key check, or a reached limit. It holds the event, the key id, the outcome, and the time.
- An audit line for each action in the developer console, with the action, your organization id, the id of the user who acted, the key id, and the outcome.
- A log line for each billing notice to Lens Proof: when an organization nears its monthly limit, when an unpaid invoice is about to be due, and when a hold first refuses a request. It holds the organization id and either the month's request count and limit, or the invoice number with its due and hold dates. It holds no amount.

## More about privacy

The [privacy policy](/privacy) covers the rest of Lens Proof Sign. For a data processing agreement or other contract terms, [contact sales](https://lensproof.app/contact-sales).
