LXD 5.0 New File Transfer API

Some advantages were discussed in the release thread here.

The docs for the API itself are here

as well as how to use it?

With lxc do something or the actual API?