API: add initial API docs

[ci skip]