Inject a single lead
inject_leadAdds a single contact to a VoIPSense call list by listId or listName, normalizing phone numbers to E.164. Skips existing numbers as duplicates or updates their fields when requested.
Instructions
POST /v1/leads (permission callcenter:write). Adds one contact to a list (by listId or listName). Idempotent: a number already in the list returns duplicate=true without creating a duplicate. Returns { id, phone, created, duplicate, listId, listNumber, listName, … }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| No | |||
| phone | Yes | Phone number in any format (0612345678, +212612345678, 00212…). Normalized to E.164 at dial time. | |
| listId | No | Target list: UUID or the list number shown in the console (e.g. 101). Use listId OR listName. | |
| company | No | ||
| lastName | No | ||
| listName | No | Target list by exact name. Combine with createList=true to create it if missing. | |
| firstName | No | ||
| createList | No | Create the list named listName if it does not exist. | |
| customFields | No | Free key/value fields, e.g. { "Service": "Implant, Blanchiment", "Source": "Site web" }. With updateIfExists, customFields are replaced entirely. | |
| outboundLine | No | With createList: exact name or id of an active line (trunk) used for every call from this list. Always overrides the campaign line. 400 if unknown/inactive. | |
| updateIfExists | No | Update fields of a contact already in the list instead of ignoring it (status/attempts/history are never touched). |