Skip to main content
All CollectionsTextPeakStreams API
Creating WhatsApp Streams
Creating WhatsApp Streams
Updated over 5 months ago

The Streams API in the CommPeak SMS platform provides WhatsApp routes for interacting with the WhatsApp platform.

This article will walk you through creating a WhatsApp SMS stream step by step.

To start, select Streams API in the main menu on the left and click Create Streams API on the page that opens. Then, choose WhatsApp in the pop-up window.

The Create New Stream wizard will load. Fill in the necessary information to complete each step.

Step 1: Stream API Details

Start with entering stream details.

  • Stream API name - enter a meaningful name to locate the stream quickly.

  • Stream API description - provide more information that will be visible when you open the stream.

  • Add IP - add one or more IP addresses from which you will make API calls. To add an IP, enter it and click Add.

  • Tags - create tags and apply them immediately to categorize your streams and quickly find the ones you need (optional).

Click Save & Next to proceed to the next step.

NOTE

You can save the stream as a draft on each step and then complete the rest at any time later.

Step 2: WhatsApp Settings

Provide your WhatsApp Business ID and permanent authentication token.
Refer to this article to learn how to generate the token and where to get the ID.

Click Save & Next to proceed to the next step.

Step 3: Incoming Messages Webhook (optional)

Create a webhook right away to receive incoming messages through the API.

  • URL - select the GET or POST method and enter the URL to which you want to send data.

  • HTTP Headers - optionally, provide the key name and value.

The requests' preview is available on the right. You can copy the request body while creating the webhook or reviewing the stream summary.

You can skip this step for now. Otherwise, click Save & Next to proceed to the next step.

Step 4: Stream Summary

You can review stream details here.

You can find your existing Senders and templates created in WhatsApp Business in WhatsApp Settings. TextPeak will use them to send messages through this stream API.

The API requests preview is available on the right. You can copy the endpoint or request body immediately.

  • The initial conversation request is for the first message.

  • The message with a media request ​is for conversations with images, videos, file , and other elements.

  • The reply message request is for sending text messages in a reply. ​

  • The webhook request will be displayed if a webhook was created in Step 3.​

After you click Create Stream, a pop-up appears. You can copy your authorization token here.​

Finally, click Done. The new stream will appear at the top of your Streams API table.

Did this answer your question?