How do I use the API?

It's best to start with the docs: https://github.com/NebulousLabs/Sia/blob/master/doc/API.md