# Account and data

[Guide index](../v1.md)

## Signing in

- **Email and password, then a 6-digit code** from an authenticator app. Two-factor is required for every login.
- You stay signed in, across closing the browser, for up to **90 days without use**. After **8 hours without using the panel**, it asks for the authenticator code again (not the password). In a different browser it asks for the code at once.
- A session is tied to the browser it started in; a copied session cannot be used elsewhere.
- **Sign out** ends the session everywhere it was copied to.

## Problems signing in

| Problem | What to do |
|---|---|
| Forgot the password | "Forgot password" on the sign-in page: a reset link (valid 1 hour) goes to your email. |
| New phone, old one still at hand | Account → Reset two-factor (your password and a current code). |
| Lost the authenticator | At the code step choose "Lost your authenticator?": a code goes to your login email; enter it, then set up a new authenticator. |
| Locked after wrong attempts | Wait 15 minutes. |
| Verification email never came | Check spam, then write to hi@determesh.com (signing up again with the same address is refused as taken). |
| A sub user lost their authenticator | The main login (or a sub user with the Sub users section): Sub users → Reset 2FA. |
| The main login lost both password and email access | Write to hi@determesh.com from another address; we will verify who you are. |

## Changing the login email or password

Account page: **Change password** (signs you out everywhere else) and **Change login email** (a link to the new address; the change happens when it is opened). Never by API key.

## Your team

The main login can add **sub users** with limited sections and folders (see [Panel: Billing, Audit log, Sub users and Account](panel-team.md)). There is one main login per company. To hand the company to someone else, change the main login's email to theirs.

## Deleting the company

Main login only, from the Account page: **Email me a code**, then your password and the code. The company **stops answering on every channel at once**, and is **removed after 30 days**, with all its data: users, conversations, documents and resources. Until then **Cancel the deletion** on the Account page brings it back. We keep only what our accounts and the law need: the company's name, its billing account and ledger, the record of what it was charged for (counts, without content) and its payments with their documents. Unused credits are not refunded.

## Exporting your data

Before deleting, take what you need:

- **Documents:** Download from each resource's page, or `GET .../resources/{resourceId}/file/content` and `.../documents/{documentId}/content` through the API.
- **Conversations:** through the API (`GET .../threads` and `GET .../threads/{threadId}` with the Threads section, or `GET /v1/threads/...` with Chat for API users).
- **Users and attributes:** `GET .../identities` with the Identities section.
- **Resources, methods, rules, notes:** their GET endpoints (see the [API reference](api-reference.md)).
- **Audit log and ledger:** `GET .../audit`, `GET .../billing/ledger`.

For anything else, write to hi@determesh.com.

## How long data is kept

- **Conversations and logs:** the retention set on the Company page, 5 years (1,825 days) by default. Older ones are deleted every night. You can delete a conversation, a user's conversations, or all of them at any time.
- **A user's style note:** removed once they have no conversations left.
- **Users (identities):** until you delete them.
- **Documents:** until you remove them. A version already handed over by link is kept until the link's conversation is deleted.
- **A deleted company:** as above.

## When a company can be suspended

We may suspend a company that breaks the terms, does not pay, or puts the service or others at risk; we tell you why and lift it once the reason is gone. While suspended, its keys and channels stop; its login can still sign in to the panel.
