Initial rough draft of api