WhatsApp

Getting started

WhatsApp

Connect your store's own WhatsApp Business number and send one approved template from Sendcore, to check that sending works. The account and the number stay yours, in Meta.

On this page7 sections

Where to find it#

Open Settings → Integrations and find the WhatsApp card. It is there when WhatsApp is enabled for your workspace. An Owner or an Admin connects it. Anyone else can see the connected number, and cannot change it.

Connect with Meta's window#

Click Connect WhatsApp. Meta opens its own window. You sign in to Facebook, choose the WhatsApp Business account and the number, and approve Sendcore. Sendcore then stores the access token encrypted. The token is not shown again.

Connect with an access token#

Use this when you already have the values from Meta, including Meta's test number in API Setup. You do not go through Meta's sign-up window. Under or, the form Connect with an access token is on the same card.

  1. In Meta, open WhatsApp, then API Setup. Copy the temporary access token, the Phone number ID (under the number you send from) and the WhatsApp Business Account ID. All three are on that page.
  2. In Sendcore, on the WhatsApp card, paste them into Access token, Phone number ID and WhatsApp Business account ID.
  3. Click Connect with access token. Sendcore asks Meta whether those three belong together, then stores the token encrypted. It is not shown again.

The card then says Connected manually. Sending a template works from that moment. A temporary token from API Setup often cannot subscribe Sendcore to incoming messages. The card says so in plain text. Sending is unaffected.

Sendcore does not change the number's PIN

A number you connect this way is already registered with Meta, including Meta's test number. Sendcore does not register it again and does not set a new two-step PIN.

What a manual connection cannot do#

  • A temporary access token from API Setup lasts 24 hours. When it expires, Meta refuses it. Generate a new one on the same page and paste it with Replace access token, then Save access token.
  • Meta's test number delivers only to phone numbers you added and verified under API Setup, up to 5. A number that is not on that list is not delivered, even when Sendcore shows that Meta accepted the send.
  • The token, the Phone number ID and the WhatsApp Business account ID must come from the same API Setup page. A token from a different Meta app is refused.
  • This connects the number so you can send an approved template. It does not start a marketing conversation, and it does not import the people you message.

Send a test message#

On a connected number, Send a test message sends one approved template to a phone you type. The number is not added to your contacts, and nobody's consent changes.

  1. In Send to, type the number in international format, for example +39 333 123 4567. For Meta's test number, that phone must already be one of the numbers verified in API Setup.
  2. In Template, keep hello_world (en_US). It is Meta's sample. It has nothing to fill in. Other approved templates on the account are in the same list.
  3. Click Send test message. When Meta accepts it, the card says so and shows Message ID, the id Meta returns (it starts with wamid). The message arrives in WhatsApp.

A test send is not a contact

The number you type is used for that one message and stored only in this connection's send log. Sendcore does not create a contact, does not subscribe anyone, and does not change marketing consent.

Replace the token, or disconnect#

  • Replace access token opens the same form, with the Phone number ID and the WhatsApp Business account ID already filled in. Paste the new token and click Save access token. The previous token is replaced.
  • Connect again runs Meta's window instead, and replaces the connection.
  • Disconnect deletes the stored token, the ids and the log of messages sent from Sendcore. The WhatsApp Business account and the number stay yours, in Meta. You can connect again afterwards.

From the API or an assistant#

The same actions are available to an API key and to an assistant. An Owner or an Admin connects, replaces, disconnects and sends the test. Anyone who can read the workspace can see the connection and the template list. The access token is never returned.

  • GET /api/v1/integrations/whatsapp shows whether a number is connected, and whether it was connected with Meta or manually.
  • POST /api/v1/integrations/whatsapp connects with access_token, phone_number_id and waba_id. DELETE on the same path disconnects.
  • GET /api/v1/integrations/whatsapp/templates lists the approved templates, including hello_world in en_US when Meta's sample is there.
  • POST /api/v1/integrations/whatsapp/test-message sends one template. to, template_name and template_language are required. hello_world with en_US needs no variables.
  • The assistant tool is manage_whatsapp. Its actions are status, templates, connect, disconnect and send_test. connect and send_test ask before they run. The token is a secret: the assistant must not repeat it.
HTTP
POST https://www.sendcore.me/api/v1/integrations/whatsapp
Authorization: Bearer sc_live_xxxxxxxxxxxxxxxx
Content-Type: application/json

{
  "access_token": "PASTE_THE_TOKEN_FROM_API_SETUP",
  "phone_number_id": "PHONE_NUMBER_ID",
  "waba_id": "WABA_ID",
  "plan": true
}

plan: true checks the values and changes nothing. Send the same request without it to connect. To send the sample, POST /api/v1/integrations/whatsapp/test-message with to, template_name hello_world and template_language en_US.

Next steps