Installation
Usage
Import the GleapAdmin package.Initialize the SDK
It is required to initialize the GleapAdmin SDK before sending events or other requests.Track an event
Identify an user
company object associates the user with a company. Only
company.id is required — it is your own identifier for the company. The
optional company.name is a fallback label and never overwrites a name you set
authoritatively via updateCompany (see below).
Companies
Create, update, read and delete companies from your backend. Use these to set authoritative company attributes (plan, value, SLA, address and custom data) that are shown in the dashboard and used for company-level SLAs. Attributes set here are never overwritten by the fallback data sent from your client apps.Create or update a company
updateCompany creates the company on first use and updates it on
subsequent calls. It returns the saved company, or null if the request failed.
Get a company
null if it does not exist.
Delete a company
true on success.
Rate limit
Please note that the identify and track APIs enforce a rate limit of 1500 requests / 60 seconds per API token. If you exceed the limit, requests are rejected with429 Too Many Requests and the token is blocked for a short period before requests are accepted again.