Using API to set up data for WebUI test

We just started using Katalon a few months ago for our Web UI testing. We’d like to start using our API’s to set up test data that will be verified as part of our WEB UI scripts.Can someone please advise on the best way to do this? I’ve created an API project and can use that to send and receive responses from our app, but I’m not sure how to integrate this functionality into our Web scripts.

Some people use DDT - Data Driven Testing - and store their data in Excel spreadsheets (sometimes databases).

Personally, I store data in data classes and roll my own WebService calls – but I’m comfortable working in JavaScript and calling GET/POST/FETCH APIs directly.