[WIP] Initial api bundle

WIP, do not review yet.