# Limits and retention

How many endpoints a workspace can have, which URLs they accept, how large events are and how long they are kept.

| What | Limit |
| --- | --- |
| Endpoints in a workspace | 10 |
| URL | Public `https://` on port 443, at most 2048 characters |
| Name | 1 to 80 characters |
| Accounts listed in `accountIds` | 50 |
| Event size | 256 KiB |
| Time to answer | 10 seconds |
| Attempts | 8 |
| Events, deliveries and attempts are kept | 30 days |
| The previous secret still signs after a rotation | 24 hours |

## URLs

Chatwise sends to public addresses only:

- The URL starts with `https://`, uses port 443 and has no username, password or `#fragment`.
- `localhost` and names ending in `.localhost`, `.local` or `.internal` are refused when you save the endpoint.
- The name is looked up again for every attempt. If any of its addresses is private, nothing is sent and the delivery fails with `private_address`, without a retry.
- The certificate must be valid for the name.
- Redirects aren't followed. An answer of 301 or 302 is a failure, so save the final URL.

Requests don't come from fixed IP addresses. Trust the [signature](https://chatwise.so/docs/webhooks/verify-signatures.md), not the sender's address.

## Event size

An event larger than 256 KiB isn't sent. Its delivery fails with `payload_too_large`. Your server has to accept events up to that size: [some frameworks don't](https://chatwise.so/docs/webhooks/verify-signatures.md#in-a-framework) unless you raise their limit.

## Retention

Events, their deliveries and their attempts are kept for 30 days, then deleted. Until then you can read a delivery and [redeliver](https://chatwise.so/docs/webhooks/testing.md#redeliver) it. A deleted endpoint's log can't be read any more.
