Skip to main content

Upload and parse a VCard file

POST 

/api/partner-gateway/contacts/upload/vcard

Imports the entries of a VCard (.vcf) file as contacts of your account: for example an export from a phone address book, Outlook, Google Contacts or a CRM.

  • How to send it: as multipart/form-data, with the file in file and its original name, ending in .vcf, in fileName.
  • Content: one or more vCard entries, each mapped to a contact from the standard vCard fields (FN, TEL, EMAIL and so on). A file with no vCard entry imports nothing.
  • Create or update: new contacts are created, and a contact already in your account, matched by mobile phone number or by email address (compared after normalisation), is updated. If the phone number and the email match two different contacts, the one matched by email is updated.
  • List: with listId, every contact imported is added to that contact list.
  • Consents: the VCard cannot carry consents. The optional consents form field gives the same consents to every imported contact; the rules are on the field.

Large files are imported in the background. For 50,000 entries or more (a lower threshold applies in test environments) the call answers 200 at once with numContact, addedContact, updatedContact and numError set to -1 and listId and listName null. The final counts arrive only in the import-completed email sent to the user the API key belongs to. Do not upload the file again when you get -1: that would run the import a second time.

Request​

Responses​

VCard file imported: the counts of added, updated and failed contacts, all -1 when the import continues in the background.