Mautic always create anonymous contact when create contact by API

Your software
My Mautic version is: 3.3.3 / 4.0.1
My PHP version is: 7.4.24
My Database type and version is: mysql

Your problem
My problem is: Create contact by api - mautic always create Anonymous contact

These errors are showing in the log: no error code, code 200
10.32.59.58 - user123 [30/Sep/2021:09:58:20 +0700] “POST /api/contacts/new HTTP/1.1” 200 7069 “-” “-” “-”

Steps I have tried to fix the problem:
Step1: from only 1 VM : example : 10.10.x.x
Send API to Mautic server with api : mautic.test.com.vn/api/contacts/new

{"birthday": "01/01/1995", "title": "Mrs", "firstname": "HA", "lastname": "", "email": "baoanh@hotmail.com", "mobile": "094123123123", "phone": "", "fax": "", "website": "", "address1": "hcm", "address2": "hcm", "city": "", "country": "Vietnam"}

Step2 : check Mautic UI >> tab Contact : only anonymous contact has been created .

More detail :

  • Mautic server enable API & enable basic authen
  • keep default all config
  • tried clean cache and the same issue
  • tried restart mautic and the same issue
  • happen when deploy from source.zip ( v3.3.3 + v4.0.1 ) / docker already the same issue ( image: mautic/mautic:v4)

Please let me know anything if config is incorrect

Hi!
Could you plz show the event history of a contact like this?

actually, i do not have screenshot here, but the event history of that anonymous contact is so clear, just a name of user create that contact via API.

as You know , when create a real contact by api, we can see some event history like :

  • created by user-create
  • id

Have you tried clearing the cache? I had this problem as well.