When using the API endpoint, if `mode` is not set, it defaults to `''`, whereas it should default to `strict`

Current situation

The API endpoint specify an incorrect default value for mode