SnozeDevelopers
API referenceDatabase templates

Export a database's records as CSV

Reads every record in the database and returns the whole table as a CSV string, with a title column followed by one column per field, plus a suggested filename and the record count. Requires read access to the database; exports of more than 50,000 records or larger than 10 MB are rejected.

GET
/v1/workspaces/{workspaceId}/databases/{databaseId}/export/csv
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
databaseId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/databases/string/export/csv"
{  "data": {    "filename": "string",    "csv": "string",    "recordCount": 0  }}