Developers
ENPT

WhatsApp via Gupshup

Connect a WhatsApp number you already run on Gupshup to your avatar, using your Gupshup App ID.

Use this option when your WhatsApp number is already set up in a Gupshup app. Once connected, messages sent to the number reach the avatar and appear in Conversations.

Before you start

  • A Gupshup app with WhatsApp whose onboarding is finished at Gupshup (the app is live).
  • The app linked to Partner ID 3691 on the Gupshup platform. The connection screen reminds you of this.
  • The app's App ID. You find it in the Gupshup dashboard under Apps.
  • A phone with WhatsApp, to send the first message to the number.
  • Access to Settings › WhatsApp Connection in the Tolky platform.

Connect

Open the connection screen

Go to Settings › WhatsApp Connection.

Choose Gupshup

Under Provider, select Gupshup.

Enter the App ID

In Gupshup App ID, paste the App ID and click Connect.

Configure the webhook, if asked

If Gupshup webhook needs configuration appears, click Configure webhook, keep the suggested values and click Save. Then click I've configured it, check.

Send the first message

The screen shows One more step: send the first message and the number. From another phone, send any message to that number, or click Open in WhatsApp to open a ready-made message.

Confirm

The screen checks automatically every 5 seconds. When the message arrives, WhatsApp connected successfully! appears and the Current Connection card shows the number. You can also click I've sent it, check now.

If the app was already active, Tolky connects it right after Connect, without the first-message step.

Test

Send a message to the number from another phone. The avatar answers and the conversation appears in Conversations.

Manage

The Current Connection card shows the number, the connection date and the Real-time status from the provider. Use the icons at the top of the card:

  • Refresh status queries Gupshup again.
  • Configure Webhook opens the webhook settings of the Gupshup app.

Disconnect

OptionWhat happens
Disconnect from platformConversations stop appearing in Tolky and message delivery is switched off at Gupshup. This cannot be undone: to use the number again you need a new Gupshup app, or to re-enable the subscription at Gupshup.
Disconnect completelyThe number is unlinked from Gupshup and removed from Tolky. It stops sending and receiving messages through the API, and onboarding starts from scratch.

Common problems

SymptomWhat to do
"App not found on Gupshup. Check the appId you provided."Copy the App ID again from Apps in the Gupshup dashboard.
"The app is not live on Gupshup yet."Finish onboarding at Gupshup, then click Connect again.
"This app is already linked to another account."Use another App ID, or disconnect the account that uses this app.
"Could not identify the selected host."Select the account again in the selector at the top of the screen and try again.
"No message detected in 3 minutes."Check that you sent the message to the number shown, then click I've sent it, check now.
"Error saving webhook configuration. Please try again."Click Save again. If it keeps failing, check the app at Gupshup.
"Provider query rate limit exceeded."Wait a few minutes before clicking Refresh status again.
Disconnect completely is disabledThe provider status could not be loaded. Click Refresh status and try again.
Webhook, events and status codesTechnical details

Webhook settings

Configure webhook creates or updates the subscription of your Gupshup app. Tolky checks it before it waits for the first message.

FieldValue
Webhook URLKeep the production option (Produção). It points the app to Tolky.
Tagtolky-webhook by default.
VersionMeta Format V3 (fixed).
ActiveShown only when a subscription already exists.
EventsRequired, always on: FAILED, MESSAGE, SENT, DELIVERED, READ. Optional: ENQUEUED, TEMPLATE, TEMPLATE_EVENT, ACCOUNT_EVENT, BILLING_EVENT, USER_EVENT, FLOWS_MESSAGE_EVENT, OTHERS.

Webhook check results

CodeMessage on screen
NO_SUBSCRIPTIONNo webhook subscription found on the Gupshup app.
URL_MISMATCHWebhook URL does not point to Tolky.
VERSION_MISMATCHVersion must be Meta Format V3.
MISSING_MODESMissing required events: (list).
INACTIVEWebhook is inactive on Gupshup.
UPSTREAM_ERRORCould not reach Gupshup. Try again in a moment.

Connection error codes

CodeMeaning
APP_NOT_FOUNDGupshup does not know this App ID.
APP_NOT_LIVEThe app has not finished onboarding at Gupshup.
APP_ALREADY_LINKEDThe app is linked to another Tolky account.
BACKEND_ERROR, UNKNOWNGeneric failure. The screen shows "Error connecting to the server."

Activation states

StateWhat the screen shows
pending_provisioningOnboarding still in progress, with the instruction returned by Gupshup.
pending_first_messageOne more step: send the first message. Tolky learns the number's WhatsApp identifiers from the first message the webhook delivers.
activeThe account is connected.

Real-time status

Provider statusBadge
CONNECTED, ACTIVEActive
FLAGGED, RESTRICTEDFlagged
RATE_LIMITEDLimit reached
BANNEDBanned
OFFLINE, DISCONNECTEDOffline
Anything elseUnknown
  • WhatsApp via Meta
  • WhatsApp Business app coexistence
  • WhatsApp templates

Previous

WhatsApp via Meta

Next

WhatsApp Business app coexistence