LIMA (Reuters) - U.S. President Barack Obama and his Russian counterpart Vladimir Putin spoke for about four minutes on Sunday at the APEC summit about Syria and Ukraine, a White House official said.

"The president urged President Putin to uphold Russia's commitments under the Minsk agreements, underscoring the U.S. and our partners' commitment to Ukraine's sovereignty," the official said.

The summit is taking place in Peru's capital, Lima.

Obama also emphasized the need for their two countries' foreign ministers "to continue pursuing initiatives, together with the broader international community, to diminish the violence and alleviate the suffering of the Syrian people," the official said.

(Reporting by Jeff Mason; Editing by Alan Crosby)