Api principles (preliminary, very rough draft)