Are there call limit on updating user in Freshcrm?

When a user registered, our system will generate 8 api calls to update the same user’s profile at the same time

The api used is /crm/sales/api/contacts/id.

Here is how our code is when making the requests:

 const requestData = {
    contact: {
            cf_something: "sth"

axios.put(`${freshworksUri}/crm/sales/api/contacts/${userId}`, requestData, {
    headers: {
      Authorization: `Token token=${process.env.API_KEY}`,
      'Content-Type': 'application/json'

The above code is triggered by events, so multiple calls to the freshworks crm api can happen at that same time.

We found that among these 8 calls, there are always one or two calls cannot be handled and the error is

   "message": "Request failed with status code 400",
   "name": "Error",
   "stack": "Error: Request failed with status code 400...."

It seems it is not because of our request data or header, because the calls sometimes work, and sometimes don’t.
I wonder if it is because there is a limit of number of calls at the same time??

Hey @shan,

According to the API docs, if the error code is 400 it seems like the payload might be incorrect, and if it is a rate limit issue the API will throw a 429,

In your case as the issue is not consistent and succeeds occasionally, so could you check if you are making all the API calls, synchronously instead of asynchronously?

Stay Safe :slight_smile:

Thanks for the initial reply.
The calls are asynchronous. Is it a issue to have the calls asynchronously?