Import contacts
import_contacts_from_fileImport every contact or company from a file the user uploaded — a CSV or spreadsheet export, a .vcf of contacts, or a zip. Use this whenever they want more than a couple of records created from a file: it reads the whole file at once, so never read a contact list with read_file and create the records one at a time. Find the file first with search_graph_objects (type 'file') and pass its object_id, or pass part of the filename as name. Pass a description of what the file holds when the user gave one — it is what tells the column mapper that 'Ref' is a phone number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Part of the filename, when the object_id is unknown. | |
| object_id | No | The file's graph object_id (from search_graph_objects). | |
| description | No | The user's own description of what the file holds. | |
| target_type | No | What each row is. Defaults to contact. |