Skip to content
Proud to collaborate with Microsoft for Startups

wasender.messages.send_contact ​

Send a contact card message

Send a contact card via POST /send-message.

Inputs:

  • cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
  • to: str — recipient (phone number, group JID, or channel ID).
  • contact: dict — contact card object (name, phone, + optional vCard fields).

Outputs (terminal state_data):

  • message_id: str — provider-assigned ID of the sent message.
  • status: str — send status string.
  • to: str — echoed recipient.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-wasender
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Cloud connection holding the Wasender credential
tostringYes—Recipient — phone number, group JID, or channel ID
contactjsonYes—Contact card object (name, phone, + optional vCard fields)

Output Schema ​

FieldTypeRequiredDefaultDescription
message_idstringNo——
statusstringNo——
tostringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerintegerNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "wasender.messages.send_contact",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "to": "value",
    "contact": "value"
  }
}