You can post multipart directly to the /add endpoint. Works in the same way as the ipfs’s /add endpoint.