SnozeDevelopers
API referenceAssets

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.

GET
/v1/workspaces/{workspaceId}/assets/{fileId}/meta

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

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/assets/string/meta'
Example Response
{  "data": {    "fileId": "string",    "url": "string",    "name": "string",    "size": 0,    "mimeType": "string"  }}