Multi tenant rest service does not select tenent db, it always select default

When I use GUI, http://company1.domain.com:8090/axelor-erp-latest and http://company2.domain.com:8090/axelor-erp-latest selects tenant= DB1 and tenant = DB2 respectively.
But for the same deployment Rest API call always calls to tenant: Default
company2.domain.com:8090/axelor-erp-latest/ws/rest/com.axelor.apps.hr.db.Employee?offset=0&limit=10

Logs:
←[2;39m2021-05-10 00:37:50.810←[m ←[32mDEBUG←[m ←[35m11828←[m ←[2;39m—←[m ←[2;39m[nio-8090-exec-8]←[m ←[36mc.a.db.tenants.TenantConnectionProvider ←[m ←[2;39m:←[m using tenant: default