¿Cómo subir archivos a través de la API?

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