SMBBETA

Download File

Last updated Oct 10, 2026View as MarkdownAgent setup / MCP
POST
/v1/files/{file_id}/download

Returns a short-lived authorized download URL, or bounded inline content for a generated artifact snapshot.

Authorization

AuthorizationBearer <token>

Signed-in user's Supabase access token. Workspace-scoped operations also require SMB-Workspace-Id.

In: header

Path Parameters

file_id*string

Stable File ID.

Match^fil_[0-7][0-9A-HJKMNP-TV-Z]{25}$

Header Parameters

SMB-Workspace-Id*string

Workspace where this operation runs. Required for user tokens and Workspace API keys.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/files/string/download" \  -H "SMB-Workspace-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "delivery": {    "file_id": "string",    "file_version_id": "string",    "file_name": "string",    "content_type": "string",    "delivery_type": "signed_url",    "url": "http://example.com",    "expires_at": "2019-08-24T14:15:22Z",    "content": {}  },  "request_id": "string"}