What’s Trending in 2026? Let’s Plan Ahead—Together. 📈
Explore the trends + tell us how you’d use them.

Request body for Importing contacts with CSV file

Hello,

 

I'm looking for help with using the contact_files_import API endpoint. When sending my request I am receiving a "Unable to parse the request body as multipart form-data" error. When I manually enter the file and list_id I intend to use on the API documentation page the action is successful. However, when using my program I keep getting the error.  Below is what I'm using based on what the documentation is saying by including "list_ids" and "file" as the request body arguments. Am I missing something here?  I am using python. 

 

    email_payload= {     
        "list_ids" : ["<List ID>"],
        "file" : "file_name.csv"
    }
    
11 replies

Join Our New Small Business Marketplace!

We're highlighting small businesses from our community. Add your business to the Marketplace to get discovered by new customers and support other entrepreneurs.