API creates new contact instead of transform anonymous into known -?

This is why it happens: