Api principles (preliminary, very rough draft)

I think it would be interesting to mention the success code as well.