## Download `client.assets.download(AssetDownloadParamsbody, RequestOptionsoptions?): AssetDownloadResponse` **post** `/v1/assets/download` Download a Matrix asset using its mxc:// or localmxc:// URL to the device running Beeper Desktop and return the local file URL. ### Parameters - `body: AssetDownloadParams` - `url: string` Matrix content URL (mxc:// or localmxc://) for the asset to download. ### Returns - `AssetDownloadResponse` - `error?: string` Error message if the download failed. - `srcURL?: string` Local file URL to the downloaded asset. ### Example ```typescript import BeeperDesktop from '@beeper/desktop-api'; const client = new BeeperDesktop(); const response = await client.assets.download({ url: 'mxc://example.org/Q4x9CqGz1pB3Oa6XgJ' }); console.log(response.error); ```