Skip to main content
This endpoint checks whether an active 24-hour messaging window exists between your WhatsApp sender and a specific recipient. Use this to determine whether you can send freeform messages or need to use a template message.

Query Parameters

sender_id integer required The ID of the WhatsApp sender (obtained from the Get Senders endpoint) recipient_phone string required The recipient’s phone number in international format (e.g., +1234567890)

Response Fields

success boolean Whether the request was successful has_conversation boolean Whether a conversation exists with this recipient conversation_id integer The conversation ID (only present when has_conversation is true) customer_name string The customer’s name if available (only present when has_conversation is true) last_customer_message_at string ISO 8601 timestamp of the customer’s last message (only present when has_conversation is true) session_status object Session status properties is_open boolean Whether the 24-hour messaging window is currently open can_send_freeform boolean Whether freeform (non-template) messages can be sent right now requires_template boolean Whether a template message is required to message this recipient message string Human-readable description of the current session state minutes_remaining integer Minutes remaining in the 24-hour window (only present when session is open) expires_at string ISO 8601 timestamp when the session expires (present when session is open or no customer message exists) expired_at string ISO 8601 timestamp when the session expired (only present when session has expired)

Error Responses

404 Not Found Error Response success boolean false error string Sender not found error_code string SENDER_NOT_FOUND
cURL
JavaScript
Python
200 Active Session
200 Expired Session
200 No Conversation
404 Sender Not Found

Typical Workflow

Use this endpoint as part of a message-sending flow:
  1. Check session status before sending a message
  2. If can_send_freeform is true → use Send Freeform Message
  3. If requires_template is true → use Send Template Message

Notes

  • The 24-hour window is based on the customer’s last inbound message timestamp.
  • Each new customer message resets the 24-hour timer.
  • This endpoint does not consume any balance — it’s a read-only status check.