← Chat API for WhatsApp

Send Message with Chat API for WhatsApp API

Pipedream makes it easy to connect APIs for Chat API for WhatsApp and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Send Message with the Chat API for WhatsApp API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Send Message with the Chat API for WhatsApp API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Send Message action
    1. Connect your Chat API for WhatsApp account
    2. Configure phone
    3. Configure body
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Chat API for WhatsApp API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Chat API for WhatsApp
 
Try it
Send Message with Chat API for WhatsApp API on New Item in Feed from RSS API
RSS + Chat API for WhatsApp
 
Try it
Send Message with Chat API for WhatsApp API on New Message from Discord API
Discord + Chat API for WhatsApp
 
Try it
Send Message with Chat API for WhatsApp API on New Message In Channels from Slack API
Slack + Chat API for WhatsApp
 
Try it
Send Message with Chat API for WhatsApp API on New Message in Channel from Discord Bot API
Discord Bot + Chat API for WhatsApp
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Send Message on Chat API for WhatsApp
Description:Send a message to a new or existing chat.
Version:0.1.1
Key:chat_api_for_whatsapp-send-message

Code

// legacy_hash_id: a_1WiE5L
import { axios } from "@pipedream/platform";

export default {
  key: "chat_api_for_whatsapp-send-message",
  name: "Send Message",
  description: "Send a message to a new or existing chat.",
  version: "0.1.1",
  type: "action",
  props: {
    chat_api_for_whatsapp: {
      type: "app",
      app: "chat_api_for_whatsapp",
    },
    phone: {
      type: "string",
    },
    body: {
      type: "string",
    },
  },
  async run({ $ }) {
  // See https://app.chat-api.com/docs#sendMessage

    return await axios($, {
      method: "post",
      url: `${this.chat_api_for_whatsapp.$auth.api_url}/sendMessage?token=${this.chat_api_for_whatsapp.$auth.token}`,
      data: {
        phone: this.phone,
        body: this.body,
      },
    });
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Chat API for WhatsAppchat_api_for_whatsappappThis component uses the Chat API for WhatsApp app.
phonestring
bodystring

Authentication

Chat API for WhatsApp uses API keys for authentication. When you connect your Chat API for WhatsApp account, Pipedream securely stores the keys so you can easily authenticate to Chat API for WhatsApp APIs in both code and no-code steps.

  • Retrieve your instance_id from the Instance you'd like to connect, at the top left of your Chat API dashboard
  • Retrieve your api_key from your Chat API user settings