An API for sharing