seed.type = "database_upload".
my-db-my-org.turso.io), not api.turso.tech.seed.type = "database_upload".| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token for the database |
Content-Length | Yes | Size of the database file in bytes |
x-turso-encryption-key | No | Base64-encoded encryption key (32 bytes for 256-bit ciphers, 16 bytes for 128-bit ciphers) |
x-turso-encryption-cipher | No | Encryption cipher. See table below for options. |
PRAGMA journal_mode = WAL)PRAGMA page_size = 4096)PRAGMA auto_vacuum = 0)PRAGMA encoding = 'UTF-8')| Cipher | Reserved Bytes |
|---|---|
aes256gcm | 28 |
aes128gcm | 28 |
chacha20poly1305 | 28 |
aegis128l | 32 |
aegis128x2 | 32 |
aegis128x4 | 32 |
aegis256 | 48 |
aegis256x2 | 48 |
aegis256x4 | 48 |
200 OK on success.
| Status | Description |
|---|---|
400 | Invalid database file (wrong format, settings, or corruption) |
401 | Invalid or missing authorization token |