change API from meta to attachment