Add API for getting context and creating channel with a given context.