Share sessions between api and app
Generalize content type for API