Contents
Authentication
Every request carries a Bearer token: an access token of your app, or an API key.
Operations
| Way | Credential | Best for |
|---|---|---|
| Server to server OAuth app | Client ID + Client Secret → access token ilm_at_…, valid 1 hour | Servers and integrations. Create an app. |
| API key | ilm_live_…, valid until you revoke it | Quick scripts and tests. API keys. |
Both are sent the same way, have the same scopes and the same rate limit.
Get an access token
Exchanges the Client ID and Client Secret of a Server to server OAuth app for an access token (the OAuth 2.0 client_credentials grant). Note the URL: it is under /v1/oauth, not under /v1/public.
Required scope: none. The token carries the scopes of the app.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Required | HTTP Basic: Basic base64(client_id:client_secret). |
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
grant_type | string | Required | Must be client_credentials. Send the body as application/x-www-form-urlencoded or as JSON. |
Request example
curl "https://api.ilmeet.com/v1/oauth/token" \
-X POST \
-u "$ILMEET_CLIENT_ID:$ILMEET_CLIENT_SECRET" \
-d "grant_type=client_credentials"const basic = Buffer.from(
`${process.env.ILMEET_CLIENT_ID}:${process.env.ILMEET_CLIENT_SECRET}`
).toString("base64");
const response = await fetch("https://api.ilmeet.com/v1/oauth/token", {
method: "POST",
headers: {
"Authorization": `Basic ${basic}`,
"Content-Type": "application/x-www-form-urlencoded"
},
body: "grant_type=client_credentials"
});
const { access_token, expires_in } = await response.json();
// Use it until it expires, then ask for a new one.
process.env.ILMEET_TOKEN = access_token;import os
import requests
response = requests.post(
"https://api.ilmeet.com/v1/oauth/token",
auth=(os.environ["ILMEET_CLIENT_ID"], os.environ["ILMEET_CLIENT_SECRET"]),
data={"grant_type": "client_credentials"},
)
token = response.json()
access_token = token["access_token"] # valid for token["expires_in"] secondsResponse
{
"access_token": "ilm_at_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"token_type": "bearer",
"expires_in": 3600,
"scope": "meetings:read meetings:write"
}| Field | Type | Description |
|---|---|---|
access_token | string | The token: ilm_at_ followed by 48 characters. |
token_type | string | Always bearer. |
expires_in | integer | Seconds until the token expires: 3600 (1 hour). |
scope | string | The scopes of the app, separated by spaces. |
The response has Cache-Control: no-store. There is no refresh token: when the token expires, request a new one the same way.
Status codes
The token endpoint answers errors in the OAuth 2.0 form, which is different from the error format of the API:
{
"error": "invalid_client",
"error_description": "Unknown client id, wrong client secret, or the app is not active"
}| HTTP status | error | When it happens |
|---|---|---|
200 | – | OK. The body is the token shown above. |
400 | invalid_request | grant_type is missing. |
400 | unsupported_grant_type | grant_type is not client_credentials. |
401 | invalid_client | There is no HTTP Basic header, the Client ID is unknown, the Client Secret is wrong, or the app is switched off or is not a Server to server OAuth app. The response has a WWW-Authenticate: Basic header. |
429 | invalid_request | Too many token requests: more than 30 per minute for one Client ID, or more than 60 per minute from one IP address. Wait for the seconds in Retry-After. |
500 | server_error | Something went wrong on our side. Try again. |
Send the token
Send the access token (or an API key) in the Authorization header of every API request:
Authorization: Bearer ilm_at_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxThe examples in these docs read it from an environment variable named ILMEET_TOKEN.
A request with a missing, wrong, expired or revoked token or key gets HTTP 401 with the code unauthorized. See Errors.
When the token expires
- A token works for 1 hour (
expires_inis3600). Keep it and reuse it for that hour; do not request a token for every call. - After that, API calls answer HTTP
401(Invalid or expired access token). Request a new token and send the call again. - A token also stops working at once when the app's secret is rotated, or the app is switched off or deleted.
- A scope removed from the app is removed from its existing tokens at once.
API keys
Simple API keys still work, and are handy for quick scripts. An account owner or admin creates a key on the Developer page of the portal (web.ilmeet.com/portal/admin/developer): name it, choose its scopes and copy it. The key is shown only once.
Authorization: Bearer ilm_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx- A key is
ilm_live_followed by 40 characters. It does not expire; you can revoke it at any time on the same page. - An account can have up to 10 active keys.
- A key is used exactly like an access token: put it in
ILMEET_TOKENand the examples in these docs work unchanged.
Scopes
Scopes decide what an app or key may do. Choose only the scopes it needs. A request to an endpoint whose scope is missing gets HTTP 403 with the code forbidden.
| Scope | Allows |
|---|---|
meetings:read | List and get meetings, invitation, participants, a host's meetings, past meetings, live participants |
meetings:write | Create, update, delete and end a meeting; every in-meeting control, cloud recording start and stop included |
users:read | List users |
users:write | Invite, update and remove a user |
recordings:read | List and get recordings, the recordings of a meeting, transcript, summary |
recordings:write | Delete and recover a recording |
reports:read | Reports: meetings, users, daily |
account:read | Get account settings, get the account plan |
account:write | Update account settings |
Check your credentials
Returns your organization and the app or key behind the request, with its scopes. Use it to check that a token or key works.
Required scope: none. Any valid access token or API key can call this endpoint.
Parameters
This endpoint takes no parameters.
Request example
curl "https://api.ilmeet.com/v1/public/me" \
-H "Authorization: Bearer $ILMEET_TOKEN"const response = await fetch("https://api.ilmeet.com/v1/public/me", {
method: "GET",
headers: {
"Authorization": `Bearer ${process.env.ILMEET_TOKEN}`
}
});
const data = await response.json();
console.log(data);import os
import requests
response = requests.get(
"https://api.ilmeet.com/v1/public/me",
headers={"Authorization": f"Bearer {os.environ['ILMEET_TOKEN']}"},
)
print(response.json())Response
{
"organization": {
"id": "org_EXAMPLE789",
"name": "Example Ltd",
"plan": "basic"
},
"key": {
"id": "app_EXAMPLE001",
"name": "Booking system",
"scopes": [
"meetings:read",
"meetings:write"
]
}
}In key, an access token reports the id, name and scopes of its app; an API key reports its own.
| Field | Type | Description |
|---|---|---|
organization | object | Your organization. |
organization.id | string | The id of your organization. |
organization.name | string | The name of your organization. |
organization.plan | string | The plan code of your account, in lowercase, e.g. basic, pro or business. |
key | object | The credential used for this request. |
key.id | string | The id of the app (access token) or of the API key used for this request. |
key.name | string | The name of the app or key. |
key.scopes | array of strings | The scopes of the app or key. |
Status codes
| HTTP status | Code | When it happens |
|---|---|---|
200 | – | OK. The body is the JSON shown above. |
401 | unauthorized | The Authorization header is missing, or the access token or API key is wrong, expired or revoked. |
429 | rate_limited | More than 60 requests in a minute. Wait for the number of seconds in Retry-After. |
500 | internal | Something went wrong on our side. |
API call logs
The Developer page of the portal shows the API calls of your account for the last 7 days, newest first: the method, the path (without its query string), the HTTP status, how long the call took, and which app (by name) or API key (by its first 12 characters) made it. Calls that were refused with 403 or 429 are listed too. Tokens, keys and request bodies are never logged.
Questions about the API?
E-mail support@ilmeet.com and quote the X-Request-Id of the response you are asking about.
Contact support