Como fazer upload de arquivos através da API?

Here is a node example that someone got working that might help: