create a public api for the app