UPDATE: Fixed endpoint spaces and action url issues