pub struct DataExportResponse {
pub download_url: Url,
pub expires_at: DateTime<Utc>,
pub size_bytes: i64,
}Expand description
Response from POST /api/account/export and the MCP export_data tool.
Returns a short-lived download URL rather than the bundle inline — a non-trivial account produces a bundle that exceeds the MCP response size cap, and returning a URL lets both transports share one code path.
The URL itself is the credential. Possession of the URL authorizes the download; treat it like a password. The download endpoint performs no additional authentication beyond verifying the token hash.
Fields§
§download_url: UrlAbsolute URL to fetch the JSON bundle. Anyone with this URL can download the data — share it only with trusted backup tools.
expires_at: DateTime<Utc>UTC timestamp after which the link stops working. Typically 30 days after generation.
size_bytes: i64Size of the bundle in bytes, for UX display. Clients that want to show progress bars can pre-allocate.