Multiple API Requests?

Hey Guys,

I’m working on an integration for our software, and looking at best practices, as I seem to be hitting some 503 errors.

At times, we need to sync member data to a Contact in ActiveCampaign, then assign to a list, and apply some tags.

Looking through the API docs, it seems that I need to make multiple requests to the API:

1 - Sync the Contact Data
2 - Assign Contact to a List
3+ An API call to assign each individual tag to the contact.

The problem I have is that I can very easily hit the 5 API requests in a second rate limit if I have 3 tags, and I’m wondering if that’s the reason I’m hitting the 503 error.

My question is, is there a way to reduce that number of API calls, and if possible, include ALL of that data in a single API request, to sync the data and assign list and tags all at once.

Thanks

Steve

There were problems with the API yesterday (my time). These might be resolved by now.

Hello,

As Shane previously mentioned, there was an incident on September 20 that resulted in an elevated level of API errors which matches the timeframe you reported these issues and may have been related.

That being said, if you are still looking to reduce the number of API calls that you are making, you may want to look at using the contact_sync v1 API method. This endpoint allows you to accomplish everything you mentioned (syncing Contact data, assigning the Contact to a List, and adding tags to the Contact) all with a single API call. I hope this helps!

Thank you,
-Matt