## Download `client.Assets.Download(ctx, body) (*AssetDownloadResponse, error)` **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 param.Field[string]` Matrix content URL (mxc:// or localmxc://) for the asset to download. ### Returns - `type AssetDownloadResponse struct{…}` - `Error string` Error message if the download failed. - `SrcURL string` Local file URL to the downloaded asset. ### Example ```go package main import ( "context" "fmt" "github.com/beeper/desktop-api-go" ) func main() { client := beeperdesktopapi.NewClient( ) response, err := client.Assets.Download(context.TODO(), beeperdesktopapi.AssetDownloadParams{ URL: "mxc://example.org/Q4x9CqGz1pB3Oa6XgJ", }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Error) } ```