ByteChef LogoByteChef
Components

WhatsApp

WhatsApp is a free-to-use messaging app offering end-to-end encrypted chat, voice, and video communication, along with document and media sharing, available on multiple platforms.

WhatsApp is a free-to-use messaging app offering end-to-end encrypted chat, voice, and video communication, along with document and media sharing, available on multiple platforms.

Categories: Communication

Type: whatsApp/v1


Connections

Version: 1

WhatsApp Custom Authorization

Properties

NameLabelTypeDescriptionRequired
systemUserAccessTokenSystem user access tokenSTRINGtrue
phoneNumberIdPhone number IDSTRINGtrue

Actions

Send Message

Name: sendMessage

Send a message via WhatsApp

Properties

NameLabelTypeDescriptionRequired
bodyMessageSTRINGMessage to send via WhatsApptrue
toSend Message ToSTRINGPhone number to send the message. It must start with "+" signtrue

Example JSON Structure

{
  "label" : "Send Message",
  "name" : "sendMessage",
  "parameters" : {
    "body" : "",
    "to" : ""
  },
  "type" : "whatsApp/v1/sendMessage"
}

Output

Type: OBJECT

Properties

NameTypeDescription
messaging_productSTRING
contactsOBJECT
Properties {STRING(input), STRING(wa_id)}
messagesOBJECT
Properties {STRING(id)}

Output Example

{
  "messaging_product" : "",
  "contacts" : {
    "input" : "",
    "wa_id" : ""
  },
  "messages" : {
    "id" : ""
  }
}

Triggers

Message Received

Name: messageReceived

Triggers when you get a new message from certain number.

Type: DYNAMIC_WEBHOOK

Properties

NameLabelTypeDescriptionRequired
senderNumberSender NumberSTRINGType in the number from whom you want to triggertrue

Output

Type: OBJECT

Properties

NameTypeDescription
objectSTRING
entryOBJECT
Properties {STRING(id), {{STRING(messaging_product), {STRING(display_phone_number), STRING(phone_number_id)}(metadata)}(value), {{STRING(name)}(profile), STRING(wa_id)}(contacts), {STRING(from), STRING(id), STRING(timestamp), {STRING(body)}(text)}(messages)}(changes)}

JSON Example

{
  "label" : "Message Received",
  "name" : "messageReceived",
  "parameters" : {
    "senderNumber" : ""
  },
  "type" : "whatsApp/v1/messageReceived"
}

On this page