Contact List — Upload CSV¶
Step 1 of the two-step contact upload process. Submit a CSV file here, then use the
returned csv_file_path to complete the upload at /contact_list/contacts/.
Endpoint¶
All verbs: /contact_list/<list>/contacts/new
POST /contact_list/<list>/contacts/new¶
The CSV must be:
- UTF-8 encoded
- All fields quoted with double quotes (")
- Comma (,) as field separator
- No more than 100,000 contacts
| Parameter | Type | Description |
|---|---|---|
pastedcsvdata |
string | CSV string, one line per contact |
Returns: The csv_file_path value to use when posting to /contact_list/contacts/.
Note
The CSV file must be sent as multipart/form-data. No response example is available — the endpoint returns the import results once processing completes.
Example:
curl -u "username:api_key" -H "Accept: application/json" \
-F "file=@contacts.csv" \
https://app.duo.pt/contact_list/{list_id}/contacts/new
GET /contact_list/<list>/contacts/new¶
No API usage. Returns the HTML form for the browser.