smartchat

send_text_message

Sends a free text message to one contact by WhatsApp as a reply. It only works while the 24-hour window of the contact is open; otherwise it fails with window_closed and a template must be used.

Tool namesend_text_message
Permissionsends:create
readOnlyHintfalse
destructiveHintfalse
idempotentHinttrue
openWorldHinttrue
REST callPOST /v1/sends

#What it does

  • Sends WhatsApp messages to contacts.
  • Safe to repeat with the same idempotency_key.

#Input

The tool takes one flat object. Path, query and body fields of the REST call are merged into it.

NameTypeRequiredDescription
typestringyesAlways text for a free text message. always text
contact_idstringyesContact ID from search_contacts.
textstringyesThe message text (1 to 4000 characters). length 1 to 4000

Arguments added by the MCP server (see Special arguments)

NameTypeRequiredDescription
idempotency_keystringyesRequired. Unique key for this action, for example a UUID. Same key and arguments within 24 hours: first result, nothing done again. up to 255 characters

#Result

The result has the same content as the REST answer. Lists have at most 50 items per page (default 20); use cursor for the next page.

Errors come back as a tool result with isError: true. The error codes are the ones in Errors.