SMS pumping, also called SMS toll fraud, is the abuse of a form that sends a text message. A bot types phone numbers into the form that sends a one-time code, again and again, and the numbers belong to a range a mobile operator controls. Each text you pay for earns that operator a fee, and the attacker takes a share of it. Nothing is stolen from your users; the loss is your SMS bill.
The signs are codes that are never entered, texts to countries you do not serve, and many numbers in a row.
Where Bot Protection fits
Your server asks Bot Protection before it sends the code, and a bot gets no text. On that route you can also ask for proof that your page was really visited, so a script that posts numbers straight to your API sends nothing. Start in monitor mode and compare what block mode would have refused with the codes that were never entered.
What your SMS provider can do, and the rest of the set-up: SMS pumping fraud.