# Data protection policy

> How AskVault keeps personal data to a minimum, prevents data loss, controls staff access, logs activity and deletes data when it is no longer needed.

This page covers what AskVault takes from a connected store, who can reach it, what we log and when we delete it.

## Keep personal data to a minimum

- **Read-only Shopify access.** The AskVault Shopify app asks for four read-only permissions: products, orders, online store pages and legal policies. It does not ask for the `read_customers` permission. Orders it reads carry the customer's contact details, which AskVault uses to check who is asking.
- **WooCommerce API key.** Connecting WooCommerce issues one REST API key, with the access shown on WooCommerce's authorization screen: read-only, or read and write. AskVault reads store data with it, and writes only for its own webhooks and the WooCommerce order agents, if you turn them on. Those agents change a shipping address, cancel and refund an order, and add a note to it.
- **No copy of your orders.** AskVault reads an order from your store when a customer asks about it, or when you test the order lookup. We do not copy a store's orders or customer list into AskVault. Order lookup is on by default once a store is connected, unless you switch it off.
- **Order notices.** A connected Shopify store tells AskVault when an order is placed. A WooCommerce store tells us when an order is placed or changes, if its connection has read and write access. We store nothing from those notices.
- **Proof before order details.** The agent shares an order's details only after the customer gives the email on that order. If the order has no email, the agent asks for the phone number on it.
- **WooCommerce order pages.** On stores using our plugin, a chat on a customer's order page also counts as proof. The plugin passes that order's WooCommerce order key to the chat, and order emails link to that page. Anyone who can open that page counts as the customer.

### What stays after an order lookup

The chat transcript keeps the conversation, including the agent's answer. A lookup record keeps what the customer typed, such as the order number and the email or phone number. It also keeps what the agent got back, such as the delivery status and the tracking link.

Both are deleted with the conversation. When a customer approves an order change, the record of that change also keeps the new shipping address, including any fields carried over from the order, and it is deleted with the conversation too. On Shopify, a merchant's own test of the order lookup uses recent real orders, and those records sit outside any conversation. They stay until the workspace is deleted.

## Prevent data loss

- **One workspace at a time.** Searches and reads of your conversations, documents and contacts carry your workspace ID and return only that workspace's rows.
- **Masked logs and error reports.** We mask the email addresses, phone numbers and card numbers we recognise in server logs and server error reports. We do not attach the signed-in person's account to those reports.
- **Hashed and encrypted secrets.** API keys are stored as SHA-256 hashes. Store access tokens, bot tokens and the secrets for webhooks we receive are encrypted in the application before they are saved.
- **Privacy logs hold counts.** Our records of Shopify privacy requests hold counts, not customers' email addresses.

Data is also encrypted at rest and in transit. See [Security at AskVault](/trust/security/).

## Staff access

Production access is limited to AskVault's owner and to automated tooling that runs under the owner's account. No engineer accesses customer data routinely. There is no feature that lets staff sign in as a customer.

## Staff passwords

Every staff account on a production system must use a strong, unique password. That covers hosting, the database, the code host, the Shopify Partner account and email.

## Access logging

AskVault writes one log line for almost every request to the service. The line holds the method, the path with known secrets removed, the status code, the duration, the IP address and a request ID. It also holds the workspace ID when the URL names a workspace.

The line does not name the signed-in person. One health-check path and a few static files are not logged, while our hosting provider's regular health checks are. Request logs are kept in a size-capped log file and in our hosting provider's log store. We do not promise a fixed retention period for them.

Changes in your workspace are recorded in its activity log. Most entries are kept for 365 days.

## Retention and deletion

Your plan sets how long conversations are kept: 7 days on Free, 30 on Starter, 90 on Growth, and 365 on Business and Enterprise. See [Privacy and data handling](/trust/privacy/).

Shopify's privacy requests are handled like this:

- **`customers/data_request`.** We email the workspace owner an export of the contact record, conversations and leads that match the customer's email or phone number. An account created by installing the app may hold a placeholder address, and then the email goes to the store's email on record. If there is none, it is not sent. The export also lists order lookups that hold the customer's email or phone number, as set out below. Internal notes are not in the export. If nothing matches, no email is sent.
- **`customers/redact`.** We delete the contact record, conversations and leads that match the customer's email or phone number. This runs in every workspace that holds a connection record for the store.
- **`shop/redact`.** Shopify sends this 48 hours after an uninstall. An account created by installing the app is deleted with its workspaces. Audit log entries stay without the person's identifiers, and if a record still refers to the account, it is de-identified instead of removed. If we cannot confirm its subscription is cancelled, nothing is deleted and the request is not retried automatically. Any other workspace loses the store's connection record and synced product catalogue. If a connection is still active then, because the store reconnected or our uninstall notice never arrived, nothing is erased.

Both requests, and the export and delete on a contact's record, also find order lookups in your workspace whose saved email or phone number is the customer's, even in a chat that was not linked to them. On a `customers/redact` or a contact delete, the lookup record is deleted. Its chat, messages and any lead go with it only when the chat is a website or hosted chat that names no one, holds no lead for another person, and the lookup was a successful Shopify order check with no other email or phone typed in that chat. Otherwise the chat stays until the plan schedule above deletes it. A WooCommerce lookup removes only its own record.

Not covered: a visitor's own message in a chat that is kept still holds what they typed, and so does the agent's saved reasoning for that answer. A lookup record that holds the customer's details only in what the agent got back, not in what was typed, is not found. Records of an action's confirmation step are not found either. Records from a merchant's test of the order lookup are not deleted.

We act on these requests in the background after telling Shopify we received them. A server restart at that moment can lose a request, and a failed `customers/data_request` email is not retried automatically.

Deleted data can remain in our database provider's encrypted backups until they expire. Email `security@askvault.co` for the current backup window.

## Incident response

How we handle a security incident is set out in [Incident response](/trust/security/#incident-response).

## Related

- [Security at AskVault](/trust/security/)
- [Privacy and data handling](/trust/privacy/)
- [GDPR and the data processing agreement](/trust/gdpr-and-dpa/)
- [What AskVault does not offer yet](/trust/what-we-dont-offer/)

Source: https://docs.askvault.co/trust/data-protection/
