Skip to main content

File upload API for import sync

The file upload API is used to upload CSV files used for the auto-import contact synchronization feature.

Marcel Ursprung avatar
Written by Marcel Ursprung
Updated over a week ago

Visit api.envoke.com to test APIs and get examples in 20+ languages

Upload a CSV file for whole contact list sync

Endpoint: /contacts/import/upload/sync
​HTTP method: POST

Content Type: multipart/form-data
​URL: https://e1.envoke.com/v1/contacts/import/upload/sync

IMPORTANT: Before using this API contact Envoke support to enable and add the required auto-import properties to your account.

Uploading a CSV file example:

Upload the CSV import file data formatted as Multipart form-data in a POST request. Make sure you use 'multipart/form-data' as the content-type.

NOTE: All example below show the POST URL followed by the POST data. Each example below also includes a cURL request. Make sure to change the API_ID and API_KEY with your values.

Endpoint:

https://e1.envoke.com/v1/contacts/import/upload/sync

Headers:

'Content Type': 'multipart/form-data'

Data:

cURL: -F file=@/path/to/your/file
or
More generally: { "file" : MULTIPART_FILE_DATA }

cURL example (-F formats data as 'multipart/form-data'):

curl -X POST -u API_ID:API_KEY -F "file=@/path/to/your/file" "https://e1.envoke.com/v1/contacts/import/upload/sync"

Did this answer your question?