Fine-grained permissions let you control access at the table and action level. They work with both CLI-generated tokens and JWKS-issued tokens.Documentation Index
Fetch the complete documentation index at: https://docs.turso.tech/llms.txt
Use this file to discover all available pages before exploring further.
Permission Format
Permissions follow the format<table-name|all>:<action1>,<action2>:
all as the table name to apply permissions to every table.
Available Actions
| Action | Description |
|---|---|
data_read | Read data from tables |
data_add | Insert new rows |
data_update | Update existing rows |
data_delete | Delete rows |
schema_add | Create new tables |
schema_update | Modify table schemas |
schema_delete | Drop tables |
data_read is allowed on SQLite system tables (e.g., sqlite_master,
sqlite_schema) by default, allowing users to query database metadata.Role-Based Access Example
You can configure your JWT template to grant different permissions based on user roles:| Role | Permissions |
|---|---|
| Admin | all:data_read,data_add,data_update,data_delete,schema_add,schema_update,schema_delete |
| Moderator | all:data_read,data_update |
| User | all:data_read |