Enable database
- Go to project settings → Database
- Click “Enable database”
- Database provisions automatically via Cloudflare D1
Dashboard features
- Spreadsheet view - Click cells to select, double-click to edit
- Table management - Create tables, add/rename/drop columns
- SQL editor - Run raw queries
- CSV import/export - Bulk data operations
- Pagination - 25/50/100/200 rows per page
Column types
| Type | Description |
|---|---|
| text | String values |
| integer | Whole numbers |
| number | Decimal numbers |
| boolean | true/false |
| date | Date without time |
| datetime | Date with time |
| json | JSON objects |
| array | JSON arrays |
| file_url | URL to file |
| reference | Foreign key |
Using the database
Platform API
Query and modify data from your backend via REST endpoints. See Database API. Agent steps can access the database by adding a webhook tool that calls these endpoints.Functions
Access D1 directly viaenv.DB in your function code:

