Rate Limit counter was not spent when I called "Add a meeting registrant"

API Endpoint(s) and/or Zoom API Event(s)
/meetings/{meetingId}/registrants

Description
I attempted to send requests to /meetings/${meetingId}/registrants five times using Promise.all, and all requests were successful.
Additionally, the x-ratelimit-limit value in every response was 3. (I expected 3, 2, 1, 0, and one request failed)
According to the documentation, the LIGHT API is supposed to return a 429 error when more than four requests are made per second. (I am using a FREE account.)
Is this a bug?

Error?
I expected a 429 error code to be returned, but no errors occurred.

How To Reproduce

async function postRegistrant(meetingId: number) {
  return await fetch(
    `https://api.zoom.us/v2/meetings/${meetingId}/registrants`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer {{token}}`,
      },
      body: JSON.stringify({
        email: "abcdef@sample.jp",
        first_name: "Taro",
        last_name: "Tanaka",
      }),
    }
  );
}
export async function addRegistrant() {
  const ids = [89322014967, 84226493086, 83524245388, 85716176162, 88590793869];
  const promises = ids.map(async (meetingId) => {
    const response = await postRegistrant(meetingId);
    console.log(response.statusText);
    console.log(await response.json());
    console.log("headers", response.headers);
  });
  await Promise.all(promises);
}

Hi @user4
Thanks for reaching out to us!
Unfortunately, I am not able to reproduce this on my end.
If I call the Add a meeting registrant endpoint more than 3 times, I get the expected 429 error

Hello @elisa.zoom,

Thank you for your reply!

Regarding your note, “If I call the Add a meeting registrant endpoint more than 3 times, I get the expected 429 error,” I also encountered the 429 error when calling the endpoint using the same meetingId and email address. This behavior appears to be due to the “User-level rate limits”, correct?

However, my main question is: why don’t I receive a 429 error when calling the Add a meeting registrant endpoint with different meetingIds? I expected to exhaust the “LIGHT APIs Rate Limits by account type” and receive a 429 error with my code.

Could this be a misunderstanding on my part, or might it be a bug?

Hi @user4
Yes, you can call the Add meeting registrants endpoints with different meeting Ids and you won’t get that error.
This rate limit applies when you are trying to add the same registrant to the same meeting more than 3 times

1 Like

Hello @elisa.zoom

Thank you for your answer!

1 Like