The Softr Database API lets you integrate your Softr data with external systems. The API follows REST semantics, uses JSON to encode objects, and requires all requests to be made over HTTPS. Download the OpenAPI specification to import into tools like Postman or use for code generation.Documentation Index
Fetch the complete documentation index at: https://docs.softr.io/llms.txt
Use this file to discover all available pages before exploring further.
Video Introduction
Data Model
The API is organized around four core resources:- Database — A top-level container that belongs to a workspace. Each database holds one or more tables.
- Table — A structured collection of records, similar to a spreadsheet or database table. Each table has a set of fields and one or more views.
- Field — A column definition on a table. Fields have a type (e.g.
SINGLE_LINE_TEXT,NUMBER,SELECT) and optional configuration. Some fields are read-only (computed or system-managed). - Record — A single row of data in a table. Record values are stored in a
fieldsobject, keyed by field ID (or field name if you pass?fieldNames=true).
Authentication
All requests require a Personal Access Token (PAT) passed in theSoftr-Api-Key header:
Quick Start
1. List your databases:Response Format
Success (single item)
Success (paginated list)
Error
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
BAD_REQUEST | 400 | Invalid request format or data |
VALIDATION_ERROR | 400 | Field validation failed |
UNKNOWN_FIELD | 400 | Unrecognized field in request |
UNAUTHORIZED | 401 | Missing or invalid token |
QUOTA_EXCEEDED | 402 | Plan quota limit reached |
FORBIDDEN | 403 | Insufficient permissions |
RESOURCE_NOT_FOUND | 404 | Resource does not exist |
CONSTRAINT_VIOLATION | 409 | Data constraint violation (e.g. duplicate unique value) |
PAYLOAD_TOO_LARGE | 413 | Request body exceeds 64 MB |
TOO_MANY_REQUESTS | 429 | Rate limit exceeded |
SERVICE_UNAVAILABLE | 503 | Service temporarily unavailable |
Pagination
All list endpoints support offset-based pagination:| Parameter | Default | Max | Description |
|---|---|---|---|
offset | 0 | — | Number of records to skip |
limit | 20 | 200 | Number of records per page |
metadata includes a total count. To iterate through all records:
offset >= metadata.total.
Using Field Names
By default, thefields object in record responses uses field IDs as keys (UUIDs). Pass ?fieldNames=true on any record endpoint to use human-readable field names instead: