master: added get api with code param.