The `api_endpoint` should be the exact same as shown when you click the "View/Create" button on your profile settings page in CWA.
As a general fix should the api_endpoint be configured as:
Code:
api_endpoint=http<s>://<your-server>/kobo/<auth-token>