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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string
databaseId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/databases/string/export/csv'
Example Response
{  "data": {    "filename": "string",    "csv": "string",    "recordCount": 0  }}