¿Cómo publicar imágenes a través de API?

To my understanding, discourse will handle that for you: