API - SQL - Sugarbpm triggered

So we have built at API for our NPS, which will pull data from CRM and then return the data via SQL.

I want to setup SugarBPM process that triggers if the score is less than 7, this will not trigger via SQL injection, has anyone else encountered this issue or have a solution for this?

Thanks,

Adam