API documentation

I guess if you play with the API playground and open the inspect window you see what is happening

Look here for some nice examples