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
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/views"
{  "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"    }  ]}