# Data and privacy

## What happens to each piece of data

| Data | What happens |
|---|---|
| Person photo | Processed in memory to generate the result. Never written to our storage |
| Garment image | Processed in memory with the person photo. Never written to our storage |
| Result image (`POST /generate`) | Returned to you in the response. Not stored, unless you ask us to enable result storage |
| Request record | Time, outcome, error code and credit used, for billing and your usage page. No images |
| Async job and batch results | Stored for 7 days so you can download them, then deleted. Delete earlier per result, or per end user with `DELETE /customers/:id` |
| Async inputs | Uploaded images stay in memory only. For batches and URL inputs we keep the image URLs you sent until the job finishes |
| Garment analysis | A short text description of the garment and a crop position, kept 30 days so repeat try-ons of the same product photo are faster. No image and nothing about the shopper |
| Test mode | Nothing generated, nothing stored |

Our AI infrastructure provider, Google Cloud, keeps request data for up to 55 days only to detect abuse of its service, and does not use it to train models.

## You store the results

The finished image is in the response body, so you save it wherever you like: your own server, S3, Google Cloud Storage or anything else. You decide how long your customers' images are kept.

## Optional result storage

If you want us to keep a copy (for example so our support team can look at a result you report), we can enable result storage on your account:

- Stored results are deleted automatically after 7 days.
- Each response carries an `X-Result-Id` header.
- You can delete any stored result earlier with [DELETE /results/:id](/docs/delete-result).

Only enable it if your own privacy notice covers it.

## Your role under GDPR and the DPDP Act

For images you send through the API, **you are the controller** (Data Fiduciary under India's DPDP Act) and **TryOnCloud is your processor**. That means you must:

- tell your users about the try-on and have a lawful basis, usually their consent
- never send photos of children, or of anyone who has not agreed

Our [Data Processing Agreement](/dpa) applies automatically when you use an API key.

## No training

Photos and results sent through the API are never used to train AI models.

## Security

- HTTPS only.
- Keys are stored only as hashes and can be revoked any time from the dashboard.
- Keep your key on your server, never in a browser or app.
