creating setting embed api endpoint