Add relation API