create_export_download_link
Issue an expiring download URL for a finished .btx model export. Use after get_transfer(job_id, kind=‘export’) reports download_ready=true and the user wants the archive file. Each call issues a new pre-signed URL for anyone holding it until it expires, and first records a data-egress audit event; if the audit record cannot be written, no URL is issued.
external write
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
job_id |
string |
Yes | — | UUID of a finished export job, as returned by export_model. |
workspace_id |
string |
No | None |
Optional UUID of a workspace other than your current one to look up the id in. Omit to search your current workspace plus every other workspace you have an active membership in (OAuth/JWT sessions only — API tokens stay scoped to their issuing workspace); if the id exists in more than one of those workspaces, the call fails with ambiguous-workspace-id and you must pass workspace_id to disambiguate. The response echoes workspace_id so you can reuse it on follow-up calls. |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
job_id(string)model_name(string)archive_size_bytes(integer)download_url(string)download_url_expires_at(string)workspace_id(string)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "create_export_download_link", "arguments": { "job_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" }}Response
Section titled “Response”{ "job_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", "model_name": "forecasts", "archive_size_bytes": 184320, "download_url": "https://storage.example.com/exports/forecasts.btx?signature=...", "download_url_expires_at": "2026-04-28T11:00:00+00:00", "workspace_id": "dddddddd-dddd-dddd-dddd-dddddddddddd"}- Module:
Exports - Requires an authenticated Bridge Town session (OAuth) or an API token.