# Your data

The hosted ezi service (`https://api.ezikit.dev`) keeps your account and
your purchases, and nothing about how you use ezi. Your projects, prompts,
agent sessions, usage analytics and secrets stay on your computer.

## What the service keeps

| What | Why | How long |
|---|---|---|
| Your account: email address and creation time | Sign-in and support | Until you close the account |
| Sign-in records: hashed session tokens, the sign-in method, the device and license a session was opened for, and its times | Keeping you signed in | Until the session expires or you sign out; then deleted within minutes |
| Sign-in codes, stored as hashes | Email sign-in | 15 minutes |
| API keys: a hash of the key, a masked form, its name, how many times it was used and when it was last used | Signing in with an API key | Until you close the account |
| Licenses: a hash and a masked form of the key, the license email (the address entered at checkout; for orders placed before checkout asked for it, the PayPal payer's address), plan, status, update window, the kits covered and the PayPal payer id | Your license | While the account is open; see "Closing your account" |
| Devices: two one-way hashes the CLI computes from your machine (a device id and a fingerprint), the license, and when the device was activated or removed | The device limit | Removed devices: 7 days after removal |
| Payments: PayPal order and capture ids, plan, amount, currency, status and PayPal's payment events | Your purchase, refunds and accounting | As licenses |
| SkillX: your publisher handle and the packages you publish | SkillX publishing | Published packages stay public. Personal kits are never stored by the hosted service; they stay on your machine or on a local ezi-server |

The service does not keep your computer's name, operating system, ezi
version or when a device last checked in. It does not keep SkillX search
text, ratings or run reports, or a log of each API key use.

Sign-in mail is sent through Resend; payments are processed by PayPal.

## What the hosted service does not offer

The ezi wiki and secret sync between devices store your content on a
server, so the hosted service does not offer them. They work with a local
`ezi-server` that you run yourself; against the hosted service `ezi wiki`
and `ezi secret sync` say so.

## Feedback

`ezi feedback` prepares your report on your computer, with credentials and
home paths removed, and saves it under your ezi home (`feedback/`). In a
terminal it then opens your mail app with a message to
`support@ezikit.dev`; you review the mail and send it yourself. The
dashboard's feedback page does the same. Nothing is uploaded to the ezi
service.

## Get a copy of your data

```bash
ezi account export --out ezi-account.json
```

The file (mode 0600) holds, as one JSON document, everything the service
keeps about your account: the account, sessions and API keys (never the
secret hashes), the licenses issued to your address with a masked key,
their devices, payments and billing events. `withheld` names any other
record the service holds for the account, with the reason.

## Close your account

```bash
ezi account delete
```

The service mails a one-time code to your account's address; enter it when
asked. Closing deletes the account, its sessions, API keys, devices,
personal SkillX kits and every other record linked to it, and signs this
computer out.

Licenses issued to your address are revoked. Their sales records (the
license, payments and PayPal events) are kept for accounting with your email
address and PayPal payer id removed, and deleted ten years after the last
purchase or renewal. Packages you published to SkillX stay published, under
a handle that no longer names you.

If you hold an active license, `ezi account delete` refuses unless you
confirm that you give it up (`--confirm-license-loss`, or answer the
question in a terminal). The license ends for good and nothing is refunded.

You can also write to `support@ezikit.dev` from your account's address to
ask for a copy or a closure.

## Backups

The service is backed up daily; backups are kept for up to 30 days. When an
older backup is restored, closed accounts are closed again before the
service answers any request.
