JSON API for the pastes