WhatsApp does not offer any sort of integration/API for personal use.
Yet. On March 6 WhatsApp will need to be compliant with the Digital Markets Act, which includes an interoperability requirement. We'll see what they hash out between Meta and the EU Commission.
Woah, I wasn't aware of that. I may finally be able to build a SMS <-> WhatsApp bridge and switch to my dumbphone.