Webhook is the simplest way to add individual contacts to a specific CrazyCall project from external sources. It will deliver data to your project as it happens, meaning in real time.
For example, you might set up a webhook to send data from a form on your website to your account. The contact will be immediately added to your project and ready to get dialed.
Generate a Webhook URL
Click the Projects tab in the main menu and select the project you want to set up the webhook for. Click on the gear icon to enter the settings and navigate to Integrations, which you’ll find at the bottom.
Click the Generate button.
The webhook URL will be generated for you in the following format:
where accountid is the id of your account and 5616bfbc-29fe-444f-24g74nd1 - the project you’ve generated the webhook URL for.
You can also specify the order in which the numbers sent via webhooks will be called - first, last or first, but after scheduled ones.
Once the webhook is configured, you can make a POST request to that URL.
Let’s say you need to make a follow up call to a person, who’ve just signed up for a free trial of your app. Thus you’re interested in the phone number and some additional details. Here's what you would need to enter to get this information:
curl -X POST
https://backend.crazycall.com/external/integration/accountid/import?uuid=5616bfbc-29fe-444f-24g74nd1?phone number={NUMBER}&first name={parameter 2}&last name={parameter 3}
We’ll recognize a phone number if it has a country prefix at the beginning (i.e. +1, 001 or 1 for United States). The first number will be imported as a main, while each subsequent will be added as an alternative. Other additional information will be recognized and imported as contact details.
Note: The parameters provided above are just an example. You can send any additional information you’re interested in. But make sure your request includes a phone number, otherwise we’ll be forced to return an error.
You can generate a webhook URL for every project within your account.
Comments
0 comments
Please sign in to leave a comment.