First draft of API spec