"Environment variable not found" when using api

Hello

I have installed phpList (3.7.0) using softaculous on a o2switch server. It works fine and i want to continue using it.

But i would like to call api from an other url of the same domain.

when i try this command (replacing parameters with mine)

curl --request POST --url http://my-website.com/lists/api/v2/sessions --header ‘Content-Type: application/json’–data ‘{“login_name”: “admin”,“password”: “phplist”}’

the response is

{“message”:“Environment variable not found: \u0022FRONT_END_BASE_URL\u0022.”}

Any solution?