Sumeena
06/04/2024, 12:45 PMcustomerID
is one of the required parameters for me to initiate a call.
Can you please help me understand what's this customerID
is it something VAPI offers before making a call to a lead's phone number? Or can i specify any unique string as the customerID
Any help would be greatly appreciated.Vapi Support
06/04/2024, 12:45 PMVapi Support
06/04/2024, 12:45 PMcustomerId
is a unique identifier that you, as the developer, assign to each customer to represent them in your system. It's not something that Vapi provides automatically. When you make an outbound call using Vapi's API, you can specify any unique string that identifies the customer in your system as the customerId
. This ID helps you manage and track calls related to specific customers in your application.
You can see this in the structure of the API call for creating a phone call, where customerId
is one of the parameters you can include in the request payload. Here's an example of how you might structure the request:
json
{
"customerId": "unique_customer_id_string",
"customer": {
"number": "+11234567890",
"name": "John Doe"
},
"phoneNumberId": "your_phone_number_id",
"assistantId": "your_assistant_id"
}
This format allows you to link the call directly to a customer record in your database. Make sure that the customerId
is unique and meaningful within your system to avoid conflicts or confusion.
If you need further details on how to structure your API requests, you can refer to the documentation on creating phone calls [here]() [(1)]() .
I hope this helps! Let me know if you have any more questions.
: [Create Phone Call]()Sahil
06/05/2024, 3:50 AMSumeena
06/05/2024, 9:36 AMSumeena
06/05/2024, 9:37 AMSumeena
06/05/2024, 9:37 AMChowderr
06/05/2024, 9:43 AMSumeena
06/05/2024, 9:46 AMSumeena
06/05/2024, 9:46 AMSumeena
06/05/2024, 9:47 AMSumeena
06/05/2024, 9:50 AMChowderr
06/05/2024, 9:53 AM