[fix] api calls were buggy with optionnal parameters