1. Home
  2. Configuration
  3. Setting Callbacks

Setting Callbacks

TrueDialog Logo

TrueDialog Portal

Administration > Callbacks

This guide will walk you through the process of setting up Callbacks. These Callbacks enable you to integrate your system with TrueDialog’s service. Whenever an event specified by the Callback occurs, TrueDialog sends an HTTP POST request to your selected URL. The Callback feature supports a broad range of events, each sending its unique dataset in JSON format. You can find the variables for each Callback documented in the Payload example section for that specific Callback.

Enable Callbacks

  1. Click your Account Name in the upper right corner.
  2. In the dropdown, select Callbacks.
    Navigate to Callbacks Page
  3. If Callbacks are disabled:
    1. Click Enable.
      If Disabled, Click Enable
    2. After enabling Callbacks, a success message will appear in the upper right corner.
    3. Verify that Callbacks are enabled.
      Successfully Enabled

Callback Types and Data Formats

Callback TypeDescription
KeywordA callback is sent whenever a text message with a keyword is received.
SubscriptionA callback is sent whenever an end user opts into a subscription.
SurveyA callback is sent whenever an end user responds to a survey.
StopA callback is sent whenever an end user texts STOP or any other opt-out keywords.
New AccountA callback is sent whenever a new child account is created.
Incoming MessageA callback is sent whenever an end user sends a text message.
Delivery NoticeA callback is sent for each delivery notice receipt.
Invalid TargetsA callback is sent if any targets have been filtered out during a push.
ClicksA callback is sent whenever an end user clicks on a link.
Long Code ProvisionA callback is sent whenever a long code request is completed.

Look at the {…} Payload example section for an example of the JSON payload that the selected Callback will POST when triggered.

Payload Example Section

Add a Callback

  1. Select one of the Callback Types. This guide uses Incoming Message as an example.
    Select Incoming Message Callback
  2. Enter the URL for your Callback in the URL textbox and click Add.
    Add Callback URL
  3. After adding the Callback, a success message will appear in the upper right corner.
    Successfully Added

Verify Callback

  1. Trigger a Callback event and verify that the Callback is working.
  2. Check the Callback Log for the event you triggered. This guide uses an Incoming Message Callback Type as an example.
    1. The Callback Log is found below the Callbacks section. Scroll down if necessary.
    2. Click the button with the Refresh icon.
    3. Find the logged Callback and verify that the Callback URL is correct.
      Callback Log
  3. Check your server to verify that you received the POST Callback from TrueDialog.
  4. Verify that the body you received matches the Callback Body sent from TrueDialog.
POST Callback Received
Callback Body in Callback Log
Updated on January 18, 2025
Was this article helpful?
Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
CONTACT SUPPORT

Leave a Comment