I've looked at the code and in my opinion the problem lies in main.py in line no 85: ``` divstyles = request.form.get('divstyles', get_default_style()) ``` it should be ``` divstyles = request.values.get('divstyles', get_default_style()) ``` On webpage it works, because you use also value for divstyles stored in cookie, but it's not the case when using API Best Regards, Chris