Washington - US president Barack Obama on Thursday formally endorsed Hillary Clinton for the first time after a meeting with her primary opponent Bernie Sanders.