Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

/v3/file_imports API not accessible ?

HongliangC8
Rookie
0 Votes
I have tried to call this /v3/file_imports/{id} that is returned by Get /activities/{activity_id}. It only returns [ { "error_key": "not_found", "error_message": "The requested resource was not found." } ] Is this API not ready?
3 REPLIES 3
Courtney_E
Moderator
0 Votes

Hello HongliangC8,

 

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

 

While making a call to import contacts using the Bulk Activities endpoint will return a value for /v3/file_imports/{id}, this is not a valid endpoint that can be used on the public facing V3 API. 

 

While there's no current ETA, we are planning to remove the results field from the GET /activities/{activity_id} response, when the provided ID is for an import activity as they are not used in the public facing V3 API.

 

If you are trying to retrieve a certain data type from the API, please let us know what you are looking to do so that we may further assist you.

 

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
HongliangC8
Rookie
0 Votes

Hi Courtney,

 

Thank you for the information provided. Because /v3/file_imports/{id} is not a valid endpoint, do you know if there is other way to know specific failing reason for each failing import contact after calling POST /activities/contacts_json_import or this is only available in the product UI?

Best,
Hongliang

John__B
Employee
0 Votes

Hello HongliangC8,

 

Thank you for your reply.

 

The /v3/activities/{activity_id} link returned in the initial response to a Bulk Activities import request will typically show errors pertaining to a failed import in the "activity_errors" object, however, some errors pertaining to issues with specific contacts being imported may only be found on the “View Import/Export Activity” page in the Contacts section of the website UI currently.  

 

Get the Status of a Bulk Activity:

https://developer.constantcontact.com/api_guide/activity_status.html

 

Please have a look and let us know if you have any other questions!

 

Regards,


John B.
API Support Specialist
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up