# Limits

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

The numbers that matter, as they are today. Plan allowances (included actions, AI usage, emails, channels, storage, sandbox slots) are per plan: see the Billing page.

## API

| What | Limit |
|---|---|
| Calls per API key | 120 a minute (429 beyond) |
| Request body | 1 MB (413 beyond); document uploads up to 1 GB |
| Request age | Timestamp within 5 minutes of our clock |
| Nonce | Up to 128 characters, never reused |
| Message text | Up to 20,000 characters |
| Your `userId` | Up to 200 characters |
| Webhook delivery | Your server must answer 2xx within 10 seconds; retried up to 15 days, gaps up to 5 days; redirects not followed |
| API keys | Any number; beyond the plan's are charged monthly (a website widget counts as one) |

## Free trial

| What | Limit |
|---|---|
| Who | A new company whose login email is a work address (not a free or disposable mail provider), when the email is verified |
| How many | One per email domain, ever |
| Credits and days | As on the price list (https://determesh.com/#pricing) |
| While it runs | Messages taken without a plan while the balance is above zero; trial credits never pay a plan fee |

## Website widget

| What | Limit |
|---|---|
| Token life | `exp` required, at most 24 hours ahead (1 hour suggested) |
| Token fields | `userId` and `threadId` up to 200 characters; `name` up to 200; `context` up to 4,000 characters |
| Calls per widget user | 240 a minute, every kind of call (429 beyond) |
| Messages per widget user | What the company sets, 0 for no limit (429 `too_many_messages`) |
| Sites per widget | Up to 50 |

## Documents and files

| What | Limit |
|---|---|
| One document | Up to 1 GB |
| Readable formats | PDF with a text layer, Word, Excel, CSV, plain text, Markdown |
| Not readable yet | Scans and images (no OCR), audio, video (can still be kept as shareable) |
| Handed over on Telegram | 50 MB per file; larger as a download link |
| Handed over by email | 20 MB for all the files of one reply; larger as a download link |
| Handed over through the API | No limit beyond 1 GB |
| Download links | 6 hours by default; 1 hour to 90 days (Company page) |
| A note | Up to 20,000 characters |
| A file the report maker makes | Up to 10,000 rows of data and 10 MB; PDF, HTML, Markdown, CSV or Excel |

Reading a large document takes a while: it is read, cut into passages and indexed in the background, and searchable by keyword before indexing finishes.

## Your systems

| What | Limit |
|---|---|
| Any resource's answer | 1 MB |
| Code script | 512 KB; its built bundle up to 50 MB |
| Code call | 256 MB memory, 1 CPU, 10 seconds |
| Code build | 1 GB memory, 2 CPUs, 2 minutes |
| Code hosts | Up to 20, public addresses only |
| Code sandboxes at once | 5 per company (20 on the server); a call waits up to 30 seconds for a slot |
| Database query | A method: 200 rows at most. Free read access: no row limit, up to 10 MB of result; a result over about 40,000 tokens reaches the assistant in parts. 10 seconds to connect, 30 seconds per statement |
| Databases | Postgres, MySQL, MariaDB; reachable from the internet |
| Addresses Determesh connects to | Public only: private, local and internal addresses are always refused |
| Webhook into a resource | 1 MB per call, 120 calls a minute |

## Conversations

| What | Limit |
|---|---|
| Telegram message | Over 4,096 characters is split into several |
| Email from the assistant | Plain text; subject 255 characters, text 50,000 |
| Long conversations | The older messages are summarised when the conversation would no longer fit the AI model's context, and a large one that has gone quiet is summarised before the provider's cache of it expires |
| Too large for the AI model | A request that needs more data at once than the AI model can work with is answered in plain words, asking for a smaller part; the company's login gets an email |
| Large results | Never cut: what does not fit the AI model's context in one go is read in batches |
| Parallel work | No fixed limit per company: free capacity goes to whoever has work, and when many companies have work waiting, the one that used the AI least in the last few minutes goes first. Up to 1,000 tasks in one round of a background job |
| A user's style note | 2,000 characters |
| Threads and logs kept | 1,825 days (5 years) by default; set on the Company page |

## Sign-in

| What | Limit |
|---|---|
| Password | At least 10 characters (up to 72 bytes) |
| Asked for the authenticator code again | After 8 hours without using the panel, and in any new browser |
| Staying signed in | Up to 90 days without use |
| Wrong passwords or codes | 10 in 15 minutes locks that login for the rest of the 15 minutes |
| Password reset link | 1 hour; other emailed links 48 hours |
| Emailed codes (lost authenticator, deleting the company) | 10 minutes; 2 minutes between sends |
| Sign-ups | 5 an hour from one address |

## Blocking defaults

Quality threshold 4; 5 low scores within 300 minutes block a user for 480 minutes. All set on the Company page.
