The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Import Contacts Multipart Endpoint

Highlighted
Developer

Import Contacts Multipart Endpoint

I'm trying the java example for this endpoint as documented at http://developer.constantcontact.com/docs/bulk_activities_api/bulk-activities-addcontact-multipart.h... and receiving a 403 Forbidden response.  There is nothing in the documentation about now to include the api-key, so I have tried it without, as well as with including a query string on the post.  I have tried replacing the authentication header with both the api key and the authentication token and continue to get the 403 Forbidden.

 

Can someone tell me the correct way to authenticate with this method?  Thanks.

1 REPLY 1
Highlighted
Honored Contributor

Re: Import Contacts Multipart Endpoint

Hello,

 

For multipart requests, the API key should be provided as a parameter of the URL. For bulk uploading contacts, it would be https://api.constantcontact.com/v2/activities/addcontacts?api_key=<APIKEY>

 

If you are running into problems with this approach, please let me know!

 

Sincerely,

Elijah G.
API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured