Eliminar to do

use `endpoint` variable so we don't duplicate this