Beta

Download File

Last updated Nov 19, 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

headerAuthorizationBearer <token>

A signed-in SMB user's access token. Workspace-scoped operations also require SMB-Workspace-Id.

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
  1. body
file_version_id?string

Immutable File version ID.

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

Response Body

Successful authorized response.

application/json
  1. response
delivery*
request_id*string
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"}