Call to Lead
# support
j
I need to make a call to a lead. How do I do that? I need a step-by-step guide.
v
@Julia Certainly! To place a call to a lead using VAPI, you'll follow these steps: 1. **Prepare the API Request**: You'll need to set up an API request to the Create Phone Call endpoint. Here's the information you'll need to include in your request body: - `phoneNumberId`: This is the identifier for the phone number you'll be using to make the call. - `assistantId`: This is the identifier for the assistant that will handle the call. - `customer`: This object includes the
number
field, which is the phone number of the lead you wish to call. 2. **Send the API Request**: With the request body prepared, you'll send the API request to the Create Phone Call endpoint. Ensure that you have the correct URL for the endpoint and that your API credentials are included in the request header for authentication. 3. **Handle the Response**: After sending the request, you'll receive a response from the server. If the call is successfully initiated, you should get a confirmation in the response with details about the call. Would you like me to initiate the call for you using the information you've provided? If so, please confirm the details or provide any additional information if necessary.
You can continue this conversation by mentioning me in the message.
s
@Julia Apologies for the delay. I have answered your ticket in another thread. Would you like to continue here as well?