---
title: "SDK method index"
description: "What each JavaScript SDK method is for, grouped by task, so you know which one to look up before you open the developer docs."
url: https://help.gleap.ai/fr/articles/363-sdk-method-index
collection: "Developer guides"
updated: 2026-11-07
language: fr
alternates: [en]
---

# SDK method index

What each JavaScript SDK method is for, grouped by task, so you know which one to look up before you open the developer docs.

An index of the JavaScript SDK, grouped by what you're trying to do. Signatures, arguments and per-platform equivalents live in the [developer docs](https://docs.gleap.ai/introduction). This page is here so you know which method to look up.

The mobile and cross-platform SDKs cover most of the same ground under their own naming. Product tours, `startAgent`, the AI chatbar, `setUrlHandler` and `setEnvironment` are web only.

### Starting up

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>initialize</code>, <code>destroy</code></p></td><td colspan="1" rowspan="1"><p>Start the SDK with your Project ID, or remove it again.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setRegion</code></p></td><td colspan="1" rowspan="1"><p>Point the SDK at the US hosts, for projects in the US region. Call it before <code>initialize</code>.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setEnvironment</code></p></td><td colspan="1" rowspan="1"><p>Mark reports as dev, staging or prod.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setAppVersionCode</code>, <code>setAppBuildNumber</code></p></td><td colspan="1" rowspan="1"><p>Attach your app's version to every report.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setApiUrl</code>, <code>setFrameUrl</code>, <code>setWSApiUrl</code>, <code>setRealtimeHost</code></p></td><td colspan="1" rowspan="1"><p>Override single hosts, for example behind your own proxy.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setCSPNonce</code></p></td><td colspan="1" rowspan="1"><p>Hand the SDK your Content Security Policy nonce.</p></td></tr></tbody></table>

### Who the user is

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>identify</code>, <code>updateContact</code></p></td><td colspan="1" rowspan="1"><p>Tell Gleap who the user is when they log in, or update their details later.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>clearIdentity</code></p></td><td colspan="1" rowspan="1"><p>Forget the user on logout.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>getIdentity</code>, <code>isUserIdentified</code></p></td><td colspan="1" rowspan="1"><p>Check who Gleap thinks the user is. <code>isUserIdentified</code> is the one to reach for when a contact shows as a guest.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setLanguage</code></p></td><td colspan="1" rowspan="1"><p>Set the messenger's language from your app's own setting.</p></td></tr></tbody></table>

### What you know about them

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>setCustomData</code>, <code>attachCustomData</code></p></td><td colspan="1" rowspan="1"><p>Attach data that describes the person or the situation to their reports.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>removeCustomData</code>, <code>clearCustomData</code></p></td><td colspan="1" rowspan="1"><p>Take some or all of it away again.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>trackEvent</code></p></td><td colspan="1" rowspan="1"><p>Record what the person did. <code>logEvent</code> is the old name and still works.</p></td></tr></tbody></table>

### Opening things

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>open</code>, <code>close</code>, <code>isOpened</code>, <code>hide</code>, <code>showFeedbackButton</code></p></td><td colspan="1" rowspan="1"><p>Open or close the messenger, or hide the launcher and use your own button.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>openConversations</code>, <code>openConversation</code>, <code>startConversation</code></p></td><td colspan="1" rowspan="1"><p>Go straight to the inbox, one conversation, or a new one.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>openHelpCenter</code>, <code>openHelpCenterArticle</code>, <code>openHelpCenterCollection</code>, <code>searchHelpCenter</code></p></td><td colspan="1" rowspan="1"><p>Open the help center, one article or collection, or a search.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>openNews</code>, <code>openNewsArticle</code>, <code>openFeatureRequests</code>, <code>openChecklists</code>, <code>openChecklist</code></p></td><td colspan="1" rowspan="1"><p>Open news, the roadmap or checklists.</p></td></tr></tbody></table>

### Starting a flow

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>startBot</code></p></td><td colspan="1" rowspan="1"><p>Start a conversation workflow.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>startAgent</code>, <code>askAI</code></p></td><td colspan="1" rowspan="1"><p>Open an AI agent, or ask Kai a question directly.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>startClassicForm</code>, <code>startFeedbackFlow</code>, <code>preFillForm</code></p></td><td colspan="1" rowspan="1"><p>Open a form, with fields already filled in if you like.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>startProductTour</code>, <code>startChecklist</code>, <code>showSurvey</code></p></td><td colspan="1" rowspan="1"><p>Start a tour, a checklist or a survey when your app decides.</p></td></tr></tbody></table>

### AI

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>showAiChatbar</code>, <code>hideAiChatbar</code>, <code>setAiChatbarQuickActions</code>, <code>setAiChatbarPlaceholder</code></p></td><td colspan="1" rowspan="1"><p>Control the AI chatbar.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>registerAgentTool</code>, <code>registerAgentToolAction</code></p></td><td colspan="1" rowspan="1"><p>Let an AI agent call a function in your frontend and use the result in its answer.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>createAgentChat</code>, <code>sendAgentMessage</code>, <code>clearAgentConversation</code></p></td><td colspan="1" rowspan="1"><p>Drive an embedded agent conversation from your code.</p></td></tr></tbody></table>

### Debug data

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>log</code>, <code>disableConsoleLogOverwrite</code></p></td><td colspan="1" rowspan="1"><p>Add your own console entries, or stop the SDK capturing the console.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setNetworkLogsBlacklist</code>, <code>setNetworkLogPropsToIgnore</code></p></td><td colspan="1" rowspan="1"><p>Keep endpoints, tokens and personal data out of captured requests.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setMaxNetworkRequests</code>, <code>startNetworkLogger</code>, <code>attachNetworkLogs</code></p></td><td colspan="1" rowspan="1"><p>Change how many requests are kept, or attach your own.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setReplayOptions</code></p></td><td colspan="1" rowspan="1"><p>Mask inputs and elements in replays.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setEnvDataPropsToIgnore</code>, <code>setDisableEnvData</code></p></td><td colspan="1" rowspan="1"><p>Leave fields out of the environment data, or turn it off.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>sendSilentCrashReport</code>, <code>sendSilentCrashReportWithFormData</code></p></td><td colspan="1" rowspan="1"><p>File a crash report without showing the user anything.</p></td></tr></tbody></table>

### Reacting to the messenger

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>on</code></p></td><td colspan="1" rowspan="1"><p>Listen for events such as <code>initialized</code>, <code>open</code>, <code>close</code>, <code>flow-started</code>, <code>feedback-sent</code>, <code>unread-count-changed</code> and the checklist events.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>registerCustomAction</code></p></td><td colspan="1" rowspan="1"><p>Run your own code when a workflow or button triggers a custom action.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setUrlHandler</code></p></td><td colspan="1" rowspan="1"><p>Open links yourself, for example inside a single-page or native app.</p></td></tr></tbody></table>

> **Info:** On mobile and cross-platform SDKs the equivalent of `on` is a listener or delegate. Look for the **Callbacks** page of your platform in the developer docs.

### Ticket fields

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>setTicketAttribute</code>, <code>unsetTicketAttribute</code>, <code>clearTicketAttributes</code></p></td><td colspan="1" rowspan="1"><p>Pre-fill fields on the ticket that gets created, such as which screen they were on.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setTags</code></p></td><td colspan="1" rowspan="1"><p>Add tags to every ticket the user creates.</p></td></tr></tbody></table>

### Appearance and behaviour

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Method</p></th><th colspan="1" rowspan="1"><p>What it's for</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>setStyles</code>, <code>setColorScheme</code></p></td><td colspan="1" rowspan="1"><p>Set colours, or switch the messenger between light and dark.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setUseCookies</code>, <code>disableLocalStorage</code>, <code>setDisablePageTracking</code></p></td><td colspan="1" rowspan="1"><p>Decide how the session is stored and whether page views are tracked.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>setDisableInAppNotifications</code>, <code>showTabNotificationBadge</code>, <code>playSound</code></p></td><td colspan="1" rowspan="1"><p>Control notifications and sounds.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>enableShortcuts</code></p></td><td colspan="1" rowspan="1"><p>Turn on keyboard shortcuts.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>closeModal</code>, <code>closeBanner</code>, <code>setModalUrl</code>, <code>setBannerUrl</code></p></td><td colspan="1" rowspan="1"><p>Close info cards and banners, or load them from your own host.</p></td></tr></tbody></table>

Most of these have a dashboard equivalent. The code versions exist for values that only exist at runtime, such as a theme the user picked or a language your app already knows.

### Related

-   [Control the messenger from your code](https://help.gleap.ai/en/articles/364-control-the-messenger-from-your-code.md)
    
-   [Control what the SDK captures](https://help.gleap.ai/en/articles/365-control-what-the-sdk-captures.md)
    
-   [Find the developer docs](https://help.gleap.ai/en/articles/362-find-the-developer-docs.md)
