Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The Webhook Name is the name by which the webhook will be referred to in the Truecaller for Business console. The Webhook URL represents the endpoint to which the webhook should be sent.
One way of authenticating a webhook call is by including a key generated by you, as part of the webhook URL. For example, the URL could look like:
Webhook Name should be unique at a given time. All the configured webhooks should have a different name.
Configure your systems to consume webhook response by assigning appropriate fields based on your self-serve configurations.
Use this response structure if your feature enabled numbers are under process configurations -> Feature-sets. i.e This response structure is for customers which are on the new self-serve console.
Payload - Call Me Back
Payload - User Feedback
Use this response structure if your feature configurations are tied to number groups. i.e This response structure is for customers which are on the old self-serve console.
Payload - Call Me Back
Payload - User Feedback
Whenever there is a response to the enabled features you have set up with a webhook, we will catch it as an event. Right now, we are all set to capture Call Me Back and User Feedback events.
A webhook can be attached to one or both of the Call Me Back and User Feedback events.
Event logs for your webhooks can be found from Manage Webhooks page or Webhook events page.
Details of events related to the webhook can be found in the event details page. Events are shown for the period of last 30 days.
In order to notify your systems for events related to features in your enterprise plan, Webhooks (or HTTP callbacks) can be configured on the Self-serve platform.
Currently, webhooks are available for two features: Call Me Back and User Feedback. If you are interested in knowing more about webhooks, please feel free to reach out to: cs@truecaller.com
We support Call Me Back and User Feedback events for webhooks. Each event has its resources that can be referred from the resource column.
Event | Trigger | Resources |
---|---|---|
Call me back
When a user requests a call me back from the Truecaller App in the scenario of a missed / rejected call
Type - Feature for which the webhook is being used.
Created At - Event creation time.
JSON content - Structure of payload data that is sent to the Business Client.
User Feedback
When a user responds to a campaign based on the type of call, answered or missed / rejected. This response is from the campaign on the Truecaller app.
Type: Feature for which the webhook is being used.
Created at: event creation time.
JSON content: structure of payload data that is sent to the business client.
To configure your webhooks, click on the overflow menu and click on "Manage Webhooks".
Click on “Create webhook” to add a new webhook.
Add the name of the webhook in the field provided. The name should not exceed 50 characters.
Add the webhook URL.
Select the type of webhook event (Call Me Back or User Feedback), as per your requirement.
Once all details have been filled, click on "Create". Your wehook has now been created.
You can click on "Test Webhook" to test the webhook you have created for a particular event.
A total of 5 webhooks can be configured under a customer account.
A webhook can only be tested after it is created. Below are the steps to test a Webhook:
Click on Test Webhook on an existing webhook.
Choose the event to test (The current default selection is Call Me Back).
Click on Test URL.
To change a webhook’s configuration or to delete it, click on the overflow menu beside the Test webhook button.
There are 3 timeouts for Webhooks provided by Truecaller for Business:
Connection Timeout: The connection timeout is the timeout for making the initial connection to the webhook URL's HTTP server.
Read Timeout: Once the initial connection has been made, there is a possibility that there is an indefinite wait to read data from the HTTP server at any time. The read timeout is the timeout for such a wait.
Total Webhook Timeout: In addition to the above timeouts, Truecaller for Business also checks the total execution of time of any webhook call via the webhook execution timeout.
The values for each timeout are as follows:
Timeout | Duration |
---|---|
Connection Timeout
20,000 ms
Read Timeout
20,000 ms
Webhook Execution Timeout
60,000 ms
Webhook execution can fail due to timeouts or errors. For each event where webhook call fails, the calls are retried up to 7 times based on the following schedules:
Retry | Time |
---|---|
This is mentioned in the event details page.
1
2 minutes after the failure
2
6 minutes after the previous retry
3
30 minutes after the previous retry
4
1 hour after the previous retry
5
5 hours after the previous retry
6
1 day after the previous retry
7
2 days after the previous retry
There are 3 error scenarios for webhooks:
Webhook not found
Events:
Rescheduled error
Webhook Deleted
Webhook Failed: When webhook fails an email is sent to the user.