Extension support for embedding API

Got u, will update for all apis.