Actions90
- Agent Actions
- Get Agents
- Get Agent By ID
- Create Agent
- Update Agent
- Get Agent Templates
- Get Voices By Language
- Toggle Favorite
- Update Agent Visibility
- Get Agent Prompt History
- Update Success Metric
- Update WhatsApp Notification
- Update Mail Notification
- Get Agent Documents
- Insert Agent Document
- Get AI Models
- Get Agent Actions
- Update Agent Reschedule
- Get Keyword Replacements
- Get Agent Keywords
- Add Keyword
- Update Keyword
- Delete Keyword
- Get Template
- Get Agent Samples
- Get Agent FAQs
- Manage Agent FAQ
- Analytics Actions
- Call Actions
- Campaign Actions
- Contact Actions
- Dashboard Actions
- Identity Actions
- Library Actions
- Marketplace Actions
- SIP Actions
- Wallet Actions
Contact → Add Multiple Contacts V2
AI-generatedSummary
Add multiple contacts to a specified prospect group using the VocalLabs V2 API by providing the user ID and a JSON array of contacts with their names, phone numbers (prefixed with '+'), and optional data properties.
Inputs
- Prospect Group ID (required) — ID of the prospect group to which the contacts will be added. Obtain this from the "Get Contact Groups" operation.
- User ID (required) — Your VocalLabs User ID, used for authentication and identifying the client.
- Contacts (JSON) (required) — A JSON array of contact objects to add to the group. Each contact object must contain: 'name' (string), 'phone' (string starting with '+'), and optionally 'data' (object) with additional contact information.
Output shape
a single JSON object
The output object includes a 'success' boolean, the count of contacts added ('contacts_added'), an array ('contacts') summarizing the added contacts with their name, phone, and group ID, and the full API response under 'api_response'. The operation expects valid JSON in 'Contacts (JSON)'; invalid JSON or missing required fields will result in an error.
Examples
Example 1: Add multiple contacts to a prospect group
Providing prospect_group_id as 'grp_12345', client_id as 'user_67890', and a JSON array of contacts [{"name":"John Doe","phone":"+911234567890","data":{"email":"john@example.com"}},{"name":"Jane Smith","phone":"+919876543210","data":{"company":"Acme Corp"}}]; the operation adds these contacts to the specified group and returns confirmation with details.
