> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits and Defaults

> Defaults, minimums, and maximums for sandboxes, execs, files, logs, metrics, and API requests.

## Sandboxes

| Setting | Default | Limit |
| - | - | - |
| `timeout` | 300 s | 1 s or more; `null` for no limit |
| `idle_timeout` | None | 1 s up to `timeout` |
| `queue_timeout` | 600 s | 0–86,400 s |
| `gpu` | Required | A GPU type and a count from its `allowed_counts`; currently its node's GPU count, so one whole node per sandbox |
| `name` | None | 1–64 characters of `A-Za-z0-9._-`; unique among non-terminated sandboxes |
| `tags` | None | 20 tags; keys 1–63 characters, values up to 255 |
| `env` | None | 256 variables, 32 KiB each, 256 KiB in total; POSIX names; no `TELNYX_SANDBOX_` prefix |
| `image.ref` | — | 1,024 characters; public DNS registry; `linux/amd64` |
| `log_bucket` | A bucket created for you, with a 30-day lifecycle rule | 3–63 characters; your bucket, in the GPU Sandboxes log region |
| GPUs held at once, per GPU type | Set per organization | Every non-terminated sandbox counts; `429 quota_exceeded` beyond it |
| Readable after termination | — | At least 30 days |

## Execs

| Setting | Limit |
| - | - |
| `command` | 4,096 arguments, 131,071 bytes each in UTF-8, 1 MiB in total, no NUL byte |
| `timeout` | Default none; 1–2,147,483,647 s; never outlives the sandbox |
| Start confirmation | Fails with `agent_unavailable` after 5 minutes |
| Retained output | At least the last 64 MiB per exec, within a per-sandbox total of 1/16 of the sandbox's memory, at most 256 MiB |
| `stdin` message | 64 KiB decoded; frames over 128 KiB close the connection |
| Open attach connections | Limited per sandbox; `429 too_many_attaches` beyond it |

## Files

| Setting | Limit |
| - | - |
| Transfer | 64 MiB per request |
| Time budget | About 12 s per call, transfer included; a write's body must arrive 2 s before it ends |
| `path` | Absolute, 4,096 bytes in UTF-8 |
| Directory listing | 100,000 entries; `page[size]` default 20, maximum 100 |

## Logs

| Setting | Limit |
| - | - |
| Line length | 256 KiB; longer lines are cut |
| `page[size]` | Default 20, maximum 100 |
| Delay | A few seconds after the sandbox prints a line |
| Open log streams | Limited per organization; `429 too_many_log_readers` beyond it |
| Retention | Your bucket's lifecycle rules; 30 days in the default bucket |

## Metrics

| Setting | Limit |
| - | - |
| Sample interval | 15 s |
| Series resolution | 60 s |
| Range | Default the last 60 minutes of the sandbox's life; at most 24 hours |
| Retention | 30 days |

## Requests

| Setting | Limit |
| - | - |
| `page[size]` | Default 20, maximum 100 |
| Long polls (`/wait`, exec `?wait=`) | At most 10 s per call |
| `Idempotency-Key` | 255 characters; kept 24 hours |
| WebSocket and Server-Sent Events connections | Cut by the edge proxy after about 600 s; resume |
