Read many assets' metadata
Returns the capability URL, name, size, and MIME type for up to 200 files in one request, without serving their bytes. Uses the same access rules as reading a single asset: files the caller cannot read, from another workspace, or that do not exist are omitted rather than failing the request. Read-only; safe to retry.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
workspaceId*stringapplication/json- body
fileIds*array<string>items <= 200Success
application/json- response
data*curl -X POST 'https://api.snoze.dev/v1/workspaces/string/assets/metadata' \ -H 'Content-Type: application/json' \ -d '{ "fileIds": []}'{ "data": { "assets": [ { "fileId": "string", "url": "string", "name": "string", "size": 0, "mimeType": "string" } ] }}Read one asset's metadata
Returns a single file's capability URL, name, size, and MIME type without serving its bytes. Requires a workspace member with the `files:read` permission; an unknown or malformed file id is reported as not found.
Delete an asset
Deletes the file record and, when no other record shares its storage key, the stored object itself. Requires a workspace member with the `files:write` permission. A file that is still referenced elsewhere is refused with a conflict carrying the full reference report; pass `force=1` to detach every reference first, each owner emitting its normal update event, and delete anyway.