WhatApp Cloud API requires a valid token to send any message using the Cloud API.
Facebook provides a Test WhatsApp phone number that allows you to send messages up to 5 phone numbers. You can override later this limitation registering your own phone number.
The WhatsApp API provides a Temporary Access Token that will be valid for 23 hours. This token must be configured in the TsgcWhatsApp_Client component to allow sending messages.
oClient := TsgcWhatsapp_Client.Create(nil);
oClient.WhatsappOptions.Token := 'EAAO4OpgZAs98BAGj3nCFGr...ZB2t8mmLB2LRXJkte2Y5PMNh2';
If you need a long‑valid token, you can create (or update) a system user and generate a new token with the whatsapp_business_messaging permission. This will allow you to send and receive WhatsApp messages without updating the token every 23 hours.