added api config with environment variables