Contents
Rate limits
Each app and each API key can make 60 requests per minute.
The limit
The limit is 60 requests per minute per app or per key. All access tokens of one app share the app's limit.
The token endpoint has its own limit: 30 token requests per minute for one Client ID and 60 per minute from one IP address. A token works for an hour, so request one and reuse it. See Get an access token.
Rate limit headers
Responses carry these headers, so your code can see how much of the limit is left:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | The number of requests the key may make per minute. |
X-RateLimit-Remaining | The number of requests left in the current minute. |
X-RateLimit-Reset | When the limit resets, in unix seconds. |
Response headers
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 42
X-RateLimit-Reset: 1794823260
X-Request-Id: req_EXAMPLE0001When you reach the limit
The API answers with HTTP 429, the code rate_limited and a Retry-After header with the number of seconds to wait.
429 · Response
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
Retry-After: 17
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Try again in 17 seconds."
}
}Handle 429 in your code
Wait for the number of seconds in Retry-After, then send the request again.
# -i prints the response headers, including Retry-After
curl -i "https://api.ilmeet.com/v1/public/meetings" \
-H "Authorization: Bearer ilm_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
async function ilmeet(path, options = {}) {
const response = await fetch("https://api.ilmeet.com/v1/public" + path, {
...options,
headers: {
"Authorization": `Bearer ${process.env.ILMEET_API_KEY}`,
"Content-Type": "application/json"
}
});
if (response.status === 429) {
const seconds = Number(response.headers.get("Retry-After"));
await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
return ilmeet(path, options);
}
return response;
}
import os
import time
import requests
def ilmeet(method, path, **kwargs):
while True:
response = requests.request(
method,
"https://api.ilmeet.com/v1/public" + path,
headers={"Authorization": f"Bearer {os.environ['ILMEET_API_KEY']}"},
**kwargs,
)
if response.status_code != 429:
return response
time.sleep(int(response.headers["Retry-After"]))Questions about the API?
E-mail support@ilmeet.com and quote the X-Request-Id of the response you are asking about.
Contact support