Two top European Union officials are in Turkey trying to restore dialogue amid the fallout from a failed military coup that has fueled diplomatic tensions and fears that an agreement to curb the flow of migrants across the Aegean Sea might collapse.

EU President Martin Schulz and EU Migration Commissioner Dimitris Avramopoulos held separate talks with top Turkish officials in Ankara on Thursday.

Turkey has complained of a lack of support from the West and denounced the criticism of the scope of its crackdown following the coup attempt.

Turkish officials also have warned Ankara will suspend a March migrant deal with the EU if the bloc doesn't grant its citizens visa-free entry — one of the incentives that the EU offered in exchange for stopping migrants from crossing to Greece.