[WIP] Initial api bundle

WIP, do not review yet.
Copy & paste is not always best idea =)