You have subscribed to get messages? You can allow in panel if it's the first WhatsApp Number:

Or you need to use API if was not the first added number:
POST to https://graph.facebook.com/v21.0/{{PHONE_NUMBER_ID}}/subscribed_apps with your bearer and this payload:
{
"data": ["messages"]
}