SnozeDevelopers
API referenceDatabases

List the views of a database

Returns the database's shared views plus the caller's own personal views, each with its kind and manifest - the columns, filters, sorts and grouping that define it. Requires the `views:read` permission on the database.

GET
/v1/workspaces/{workspaceId}/databases/{databaseId}/views

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*array<>
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/databases/string/views'
Example Response
{  "data": [    {      "id": "string",      "workspaceId": "string",      "databaseId": "string",      "key": "string",      "label": "string",      "kind": "table",      "placement": "database",      "manifest": {},      "relationFieldId": "string",      "ownerUserId": "string",      "scope": "shared",      "locked": true,      "definitionVersion": 0,      "createdAt": "string",      "updatedAt": "string"    }  ]}