Messages

Check the reply window

GET/windowScope messages:send

Tells 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

  • tostringrequired

    The contact's phone number with country code.

  • fromstring

    Which of your WhatsApp numbers to send from. Accepts the number itself, its Meta phone_number_id or its Wamafy id. Defaults to your default number.

Good to know

  • windowOpen is false and expiresAt is null when 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.

# 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

    Check the reply window - Wamafy API