Messages
Check the reply window
GET
/windowScope messages:sendTells you if the 24-hour window is open for a contact, and when it closes. Use it to decide between a free-form reply and a template. See The 24-hour window.
Query parameters
tostringrequiredThe contact's phone number with country code.
fromstringWhich of your WhatsApp numbers to send from. Accepts the number itself, its Meta
phone_number_idor its Wamafy id. Defaults to your default number.
Good to know
windowOpenisfalseandexpiresAtisnullwhen the person has never messaged you or the window has closed.
Errors
Plus the errors any endpoint can return, such as a missing key or scope. See Errors.
Request
# macOS, Linux or Git Bash, with WAMAFY_API_KEY set. The quoting does not work in Windows cmd or PowerShell.
curl "https://api.wamafy.com/api/v1/public/window?to=%2B919876543210" \
-H "Authorization: Bearer $WAMAFY_API_KEY"Response 200
{
"success": true,
"data": {
"to": "+919876543210",
"windowOpen": true,
"expiresAt": "2026-10-08T09:59:58.000Z"
}
}Base URL https://api.wamafy.com/api/v1/public