SnozeDevelopers
API referencePage publish

Get the resolved embed data for a surface

Resolves the databases, views, and pages embedded in the surface's blocks and canvas elements and returns their live data, so a guest who can read the surface sees its cards without needing direct access to the embedded content. Requires `surfaces:read` on the surface and a signed-in session.

GET
/v1/workspaces/{workspaceId}/surfaces/{surfaceId}/embed-data

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
surfaceId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/surfaces/string/embed-data'
Example Response
{  "data": {    "widgetFrames": {      "property1": {        "series": [          {            "key": "string",            "metricId": "string",            "label": "string",            "color": "chart-1",            "mark": "column",            "format": {              "style": "auto",              "currency": "string",              "decimals": 6,              "compact": true,              "prefix": "string",              "suffix": "string"            },            "direction": "up",            "target": 0,            "kind": "aggregate",            "breakdown": {              "key": "string",              "label": "string"            }          }        ],        "rows": [          {            "key": "string",            "label": "string",            "longLabel": "string",            "color": "chart-1",            "start": 0,            "other": true,            "empty": true,            "cells": {              "property1": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              },              "property2": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              }            },            "previous": {              "property1": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              },              "property2": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              }            }          }        ],        "totals": {          "property1": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          },          "property2": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          }        },        "previousTotals": {          "property1": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          },          "property2": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          }        },        "range": {          "start": 0,          "end": 0        },        "previousRange": {          "start": 0,          "end": 0        },        "grain": "day",        "dimensionLabel": "string",        "complete": true,        "warnings": [          {            "code": "missing_metric",            "message": "string",            "metricId": "string"          }        ],        "trend": {          "series": [            {              "key": "string",              "metricId": "string",              "label": "string",              "color": "chart-1",              "mark": "column",              "format": {                "style": "auto",                "currency": "string",                "decimals": 6,                "compact": true,                "prefix": "string",                "suffix": "string"              },              "direction": "up",              "target": 0,              "kind": "aggregate",              "breakdown": {                "key": "string",                "label": "string"              }            }          ],          "rows": [            {              "key": "string",              "label": "string",              "longLabel": "string",              "color": "chart-1",              "start": 0,              "other": true,              "empty": true,              "cells": {                "property1": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                },                "property2": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                }              },              "previous": {                "property1": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                },                "property2": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                }              }            }          ],          "totals": {            "property1": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            },            "property2": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            }          },          "previousTotals": {            "property1": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            },            "property2": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            }          },          "range": {            "start": 0,            "end": 0          },          "previousRange": {            "start": 0,            "end": 0          },          "grain": "day",          "dimensionLabel": "string",          "complete": true,          "warnings": [            {              "code": "missing_metric",              "message": "string",              "metricId": "string"            }          ]        }      },      "property2": {        "series": [          {            "key": "string",            "metricId": "string",            "label": "string",            "color": "chart-1",            "mark": "column",            "format": {              "style": "auto",              "currency": "string",              "decimals": 6,              "compact": true,              "prefix": "string",              "suffix": "string"            },            "direction": "up",            "target": 0,            "kind": "aggregate",            "breakdown": {              "key": "string",              "label": "string"            }          }        ],        "rows": [          {            "key": "string",            "label": "string",            "longLabel": "string",            "color": "chart-1",            "start": 0,            "other": true,            "empty": true,            "cells": {              "property1": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              },              "property2": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              }            },            "previous": {              "property1": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              },              "property2": {                "value": 0,                "count": 0,                "recordIds": [                  "string"                ]              }            }          }        ],        "totals": {          "property1": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          },          "property2": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          }        },        "previousTotals": {          "property1": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          },          "property2": {            "value": 0,            "count": 0,            "recordIds": [              "string"            ]          }        },        "range": {          "start": 0,          "end": 0        },        "previousRange": {          "start": 0,          "end": 0        },        "grain": "day",        "dimensionLabel": "string",        "complete": true,        "warnings": [          {            "code": "missing_metric",            "message": "string",            "metricId": "string"          }        ],        "trend": {          "series": [            {              "key": "string",              "metricId": "string",              "label": "string",              "color": "chart-1",              "mark": "column",              "format": {                "style": "auto",                "currency": "string",                "decimals": 6,                "compact": true,                "prefix": "string",                "suffix": "string"              },              "direction": "up",              "target": 0,              "kind": "aggregate",              "breakdown": {                "key": "string",                "label": "string"              }            }          ],          "rows": [            {              "key": "string",              "label": "string",              "longLabel": "string",              "color": "chart-1",              "start": 0,              "other": true,              "empty": true,              "cells": {                "property1": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                },                "property2": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                }              },              "previous": {                "property1": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                },                "property2": {                  "value": 0,                  "count": 0,                  "recordIds": [                    "string"                  ]                }              }            }          ],          "totals": {            "property1": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            },            "property2": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            }          },          "previousTotals": {            "property1": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            },            "property2": {              "value": 0,              "count": 0,              "recordIds": [                "string"              ]            }          },          "range": {            "start": 0,            "end": 0          },          "previousRange": {            "start": 0,            "end": 0          },          "grain": "day",          "dimensionLabel": "string",          "complete": true,          "warnings": [            {              "code": "missing_metric",              "message": "string",              "metricId": "string"            }          ]        }      }    },    "databaseData": [      {        "databaseId": "string",        "detail": {          "id": "string",          "workspaceId": "string",          "itemId": "string",          "parentItemId": "string",          "key": "string",          "label": "string",          "description": "string",          "icon": "string",          "order": 0,          "hierarchyRevision": 0,          "settings": {},          "recordLayout": {            "version": 2,            "pageWidth": "default",            "propertyColumns": 1,            "propertyDensity": "comfortable",            "propertyOrder": [              "string"            ],            "hiddenFieldKeys": [              "string"            ],            "sections": [              {                "id": "string",                "label": "string",                "fieldKeys": [                  "string"                ]              }            ],            "contentPosition": "before_properties",            "showComments": true,            "showActivity": true,            "pinnedFieldKeys": [              "string"            ],            "autoAddNewFields": true,            "collapsedSectionIds": [              "string"            ],            "relationViews": {              "property1": {                "defaultViewId": "string",                "position": "properties",                "collapsed": true              },              "property2": {                "defaultViewId": "string",                "position": "properties",                "collapsed": true              }            },            "showReferences": true          },          "archived": true,          "fields": [            {              "id": "string",              "workspaceId": "string",              "databaseId": "string",              "key": "string",              "label": "string",              "kind": "text",              "required": true,              "defaultValue": "string",              "options": [                {                  "id": "string",                  "key": "string",                  "name": "string",                  "color": "string",                  "order": 0                }              ],              "settings": {},              "order": 0,              "createdAt": "string",              "updatedAt": "string"            }          ],          "views": [            {              "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"            }          ],          "createdAt": "string",          "updatedAt": "string"        },        "records": [          {            "id": "1d8a44e0-7c93-4f21-b60a-3e8d2f5a9c14",            "workspaceId": "4b81aa0c-6d2f-4b19-9f0e-1a7c3d5e8b02",            "databaseId": "9f2c1e7a-3b58-4d0c-8e27-6a1f9d4b3c85",            "contentSurfaceId": "string",            "title": "Ship the desktop app",            "data": {              "status": "in_progress",              "due": "2026-08-01"            },            "relations": {},            "computed": {},            "system": {},            "related": {},            "archived": false,            "externalId": "string",            "createdByUserId": "string",            "updatedByUserId": "string",            "createdAt": "2026-07-10T08:00:00.000Z",            "updatedAt": "2026-07-14T11:26:02.000Z"          }        ]      }    ],    "events": {},    "linkedItems": [      {        "id": "0b6f2e6a-9f2c-4e7a-8d31-2c1e7a9f2c4e",        "workspaceId": "4b81aa0c-6d2f-4b19-9f0e-1a7c3d5e8b02",        "parentItemId": "d3a7f1b8-5c04-4e62-9a11-7b2e6c0d4f39",        "kind": "database",        "targetId": "9f2c1e7a-3b58-4d0c-8e27-6a1f9d4b3c85",        "title": "Launch tasks",        "icon": "rocket",        "color": "#2f6f4f",        "order": 0,        "archived": false,        "accessMode": "open",        "metadata": {},        "createdAt": "2026-07-01T09:12:44.000Z",        "updatedAt": "2026-07-14T16:03:10.000Z"      }    ],    "linkedSurfaceBlocks": [      {        "surfaceId": "string",        "state": {}      }    ],    "surfaceDetails": [      {        "surfaceId": "string",        "detail": {}      }    ],    "aggregates": [      {        "databaseId": "string",        "fn": "string",        "fieldKey": "string",        "viewId": "string",        "value": 0,        "count": 0      }    ],    "members": [      {        "id": "string",        "workspaceId": "string",        "userId": "string",        "effectiveRoleId": "string",        "clerkUserId": "string",        "role": "owner",        "primaryEmail": "string",        "displayName": "string",        "avatarUrl": "string",        "createdAt": "string",        "updatedAt": "string"      }    ]  }}