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.

API Submitting Contacts limits?

Highlighted
Occasional Visitor

API Submitting Contacts limits?

HI,

 

Getting a strange error every once in a while when submitting contacts via the API (on behalf of our clients).  We'll get a client that we'll try and push data to their ConstantContact account (via the endpoint

https://api.constantcontact.com/v2/contacts?api_key=xxxxxxxxxxxxxxxxxxxxxx&action_by=ACTION_BY_VISITOR

 

and we'll get the following response:

 

[
    {
       "error_key": "http.status.bad_request",
       "error_message": "Bad request."
    }
]

 

I can submit the exact data to a test account and it works just fine.  Usually, if i attemp submitting the data again the next day it works just fine.

 

So my only working theory at this point is that there might be some sort of timed limit on adding contacts (or something related to adding contacts) on the clients account that is throwing this error...

 

Any other ideas?  Or does anyone know of limits that could causing this behavior?

 

 

 

 

 

 

Tags (2)
1 REPLY 1
Highlighted
Moderator

Re: API Submitting Contacts limits?

Hello,

 

Thank you for reaching out to the API Support team here at Constant Contact.

 

If you were hitting our submission limits, the error you get would indicate that. If you are seeing a 400 Bad Request error, that usually means something about the request was improperly formatted or missing. In order to troubleshoot this in more detail I would need more information about the call you are having trouble with.

I'd be happy to help in any way that I can so I would suggest emailing us at webservices@constantcontact.com for privacy, and include the payload you are sending, the API key you are using, the date/time you saw the error, and details about the account you are trying to call to. That way we can look at the specific example and provide an answer.

 

Please let me know if you have any other questions!

 

Sincerely,

David B.

API Support Specialist

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