In-app support

Put a "Get help" button inside your own app or website. Your customer agrees, and your support team sees your app (and, if you allow it, guides it) in the GaiaDesk console, in your name and colours.

Embed
Preview of the card
<a href="https://gaiadesk.net/docs/in-app-support"><img src="https://gaiadesk.net/docs/_api/public/orgs/89a5df38-be2c-4963-8823-21d4bd40a2ab/spaces/57b99ea0-d45a-4986-8aa6-6b0683c9fe1d/pages/30637476-4f34-43a6-9a5e-693fd33f84c6/social-card.svg?v=3e7ae33eec8b" alt="In-app support" width="600" height="315"></a>

In-app support puts a "Get help" button inside your own product. Your customer clicks it and agrees, and your support team sees your app in the GaiaDesk console, live, within seconds. If you allow it, your team can guide it too. The customer installs nothing, downloads nothing and never leaves your app.

It is built for companies that support their own customers: a shop's desktop app, a banking app, a SaaS dashboard, a point-of-sale terminal. Your customers see your name, your colour and your logo, not GaiaDesk's.

How a session works

  1. Your app asks for help. It creates a support session, either directly with a publishable key or through your own backend (see below).

  2. Your customer agrees. The SDK shows a consent dialog in your colours. It says who will see what: this app's window (or the whole screen, if you chose it) and whether your team will be able to guide it. Nothing is shared until the customer agrees. With the consent step it also shows a live preview and leaves a receipt on the session.

  3. Sharing starts, with an indicator. "Sharing with Acme · Stop sharing" stays on top of your app for as long as anything is shared. Your app cannot hide it. The customer gets a nine-digit support code to read to an agent over the phone.

  4. An agent joins. In the GaiaDesk console, under Support, agents see the waiting customer with the details your app passed and join, or type the support code. Only your own account and team can join, and only members with a support seat.

  5. It ends cleanly. When the customer presses Stop sharing, your app stops it, the session expires or the app quits, sharing stops at once. Nothing is left behind: no service, no installed program, nothing written to disk.

Choose your SDK

All the SDKs are open source (MIT) and published under github.com/Gaia-Desk. The native ones wrap the same signed library, libgaiadesk_embed, which ships unmodified inside your app.

Your app

SDK

Guide

Website, no code

one <script> line

Website widget

Website or web app

@gaiadesk/embed (npm)

Web

Tauri v2

tauri-plugin-gaiadesk-support (crates.io) + @gaiadesk/tauri-plugin-support (npm)

Tauri

Electron

@gaiadesk/embed-native (npm)

Electron

macOS, Swift

GaiaDeskEmbed (Swift Package Manager)

Swift

C, C++, Qt

gaiadesk-embed-cpp (CMake)

C/C++

Windows, .NET

GaiaDesk.Embed (NuGet package)

.NET

iOS

GaiaDeskEmbed (Swift Package Manager; CocoaPods from its GitHub release)

iOS

Android

net.gaiadesk:embed-android (the AAR on its GitHub release)

Android

React Native

@gaiadesk/embed-react-native (from its GitHub release)

React Native

Flutter

gaiadesk_embed (a git dependency on its release tag)

Flutter

The consent step in your app's own webview is @gaiadesk/consent (npm), see Consent. The mobile SDKs are not in their package registries yet; each guide shows the install that works today.

What each one supports:

Publishable key

Your colour and logo

Guided input

Website widget, Web

yes

yes

yes, inside your page

Tauri

yes

yes

macOS, Windows (Linux is view-only)

Electron, Swift, C/C++, .NET

no: sessions from your backend

yes

yes, see each guide for platforms

iOS, Android, React Native, Flutter

no: sessions from your backend

your name only

yes

Creating sessions

Every session is created through the support API. You have two ways to do it.

A publishable key, with no backend

On your GaiaDesk account page, open API keys, create a Publishable key (pk_live_…, or pk_test_… in test mode) and register where it will be used:

  • a website: its origin, such as https://app.acme.com;

  • a desktop app: app:// and the app's identifier in lowercase, such as app://com.acme.desk.

A publishable key can do one thing: create support sessions, at most an hour long, for the origins registered on it. It is safe to ship inside your page or app. The website widget, the web SDK and the Tauri plugin take one directly; with the other SDKs, create sessions from your backend. It creates at most 10 sessions a minute and holds at most 25 open. The customer details it sends are your app's word, so the console marks them as unverified.

From your own backend

To decide on your server who may get help, and to pass customer details your team can trust, create the session there with a secret API key (scope support), then hand your app only the session's embed token:

curl -s -X POST https://api.gaiadesk.net/v1/support/sessions \
  -H "Authorization: Bearer $GAIADESK_API_KEY" -H "Content-Type: application/json" \
  -d '{"mode": "cobrowse", "customer": {"name": "Ada", "plan": "pro"}}'

The response carries embed_token (gdemb_…) and the support code. Pass the token to the SDK. Never ship the secret key in your app.

customer takes up to 16 fields of your choice (names, plans, account ids). It is shown to your own agents and webhooks only, and never written to the audit trail. expires_in sets how long the session may last: one hour by default, at most 24 hours. You may also send:

Field

external_id

Your own id for the session: a ticket, a user. 1 to 128 printable ASCII characters. You can list sessions by it.

metadata

Your own key-value pairs: at most 20 keys, each value a string of at most 500 characters. Never shown to the customer.

client

What the app is: os, os_version, app_version, sdk, sdk_version. Shown on the agent's card.

admin_url

Your admin page for this customer (https:// only). The console shows it as "Open in your admin". Not from a publishable key.

Every session answer also carries estimated_wait_seconds: your team's typical wait for an agent (the median time to the first join of its last 20 sessions), or null until there are 3.

API keys

Every key is shown once, when you create it, with a prefix that says what it is:

Prefix

Key

sk_live_…

Secret: on your servers only

sk_test_…

Secret, test mode

pk_live_…

Publishable: safe in your page or app

pk_test_…

Publishable, test mode

Keys made before the prefixes start with ak_…. They still work, but they are deprecated: support for ak_… keys ends on 2027-02-15. Re-issue each one before then: create a new key with the same scopes (it is shown sk_live_… or pk_live_…), switch to it, then revoke the old one. While your account has an ak_… key, the console shows a banner with that date and the account page marks each such key with a Re-issue button: one click creates the replacement (same type, scopes and origins), shows its secret once, then offers to revoke the old key. Every API answer to a call made with one carries Deprecation, Sunset: Mon, 15 Feb 2027 00:00:00 GMT and a Link to this section (RFC 8594), so a client can log it. From 2027-02-15 00:00 UTC every call made with an ak_… key is refused: 401 key_deprecated, whose message names the date and how to re-issue the key. Send a key exactly as shown: a prefix that contradicts the key is refused (401 key_prefix_mismatch). A secret key sent from a browser or an app (a request with an Origin header) is refused before anything runs (403 secret_key_in_client). If a secret key ever shipped in client code, revoke it on the account page and make a new one.

Leaked secret keys. GaiaDesk runs a GitHub secret-scanning endpoint: when GitHub reports one of our keys to it, a live secret key (sk_…, or an older ak_…) is revoked at once, the account's owner gets an email naming where it was found, and the account's audit trail records it. Our registration with GitHub's secret scanning partner program is pending: until GitHub confirms it, GitHub does not report our key formats, so do not rely on a leaked key being caught. Publishable keys (pk_…) are public by design and are never revoked this way. Make a new key and keep it in an environment variable or a secret store, not in source code.

Test mode

Build and test your integration with a test key (sk_test_…, pk_test_…). Test sessions work end to end: consent, sharing, an agent joining. They carry livemode: false and never mix with live ones: a test key lists, reads and ends only test sessions, and a live key only live ones. The console shows them only under its Test filter. Their webhooks are delivered, marked livemode: false. Waiting alerts are never sent for them. A test key is scoped support only.

Server SDK

On a Node.js server (18 or later), @gaiadesk/node makes these calls typed, with no dependencies. It takes a secret key only: it refuses a publishable key and refuses to run in a browser.

npm install @gaiadesk/node
import { GaiaDesk } from '@gaiadesk/node';

const gd = new GaiaDesk({ apiKey: process.env.GAIADESK_API_KEY });
const session = await gd.support.sessions.create(
  { mode: 'cobrowse', customer: { name: 'Ada' }, external_id: 'ticket-4411' },
  { idempotencyKey: 'ticket-4411-help' },
);
// hand session.embed_token to your app
await gd.support.sessions.update(session.id, { outcome: 'resolved' });
await gd.support.sessions.end(session.id);

It also covers support.sessions.list, .get, .attachments.list and .download, support.alerts.get and .set, support.listeners, support.requests, and GaiaDesk.webhooks.verify for webhook deliveries. Failures throw a GaiaDeskError with the API's kind and reason. Source: github.com/Gaia-Desk/gaiadesk-node.

For another language, generate a client from the OpenAPI document, public at api.gaiadesk.net/v1/openapi.json (also .yaml).

Following and ending sessions

With a secret key (scope support):

# Open sessions, newest first
curl -s https://api.gaiadesk.net/v1/support/sessions -H "Authorization: Bearer $GAIADESK_API_KEY"
# Filters: state (open, all, waiting, joined, ended, expired), created_after,
# created_before (Unix seconds), external_id, limit (1 to 200)
curl -s "https://api.gaiadesk.net/v1/support/sessions?state=ended&external_id=ticket-4411" \
  -H "Authorization: Bearer $GAIADESK_API_KEY"
# One session
curl -s https://api.gaiadesk.net/v1/support/sessions/ss_0123456789abcdef -H "Authorization: Bearer $GAIADESK_API_KEY"
# End it now
curl -s -X POST https://api.gaiadesk.net/v1/support/sessions/ss_0123456789abcdef/end \
  -H "Authorization: Bearer $GAIADESK_API_KEY"

Ending a waiting or joined session stops sharing at once: the customer's app shows the session ended, the agent's view closes, and the session reads state: ended, end_reason: ended_by_api. Ending one that is already over changes nothing.

Notes and outcomes

Agents keep a private record of each session, in the console or through the API, at any time:

curl -s -X PATCH https://api.gaiadesk.net/v1/support/sessions/ss_0123456789abcdef \
  -H "Authorization: Bearer $GAIADESK_API_KEY" -H "Content-Type: application/json" \
  -d '{"notes": "Re-sent the invoice; customer confirmed.", "outcome": "resolved"}'

notes is at most 4000 characters; outcome is resolved, follow_up or bug. null clears either. Notes never reach the customer.

Ratings and files from the customer

After a session ends, the SDK may ask the customer to rate it, 1 to 5 with an optional comment. It posts the answer to POST /v1/support/sessions/{id}/csat with the session's own embed token: once, within 24 hours of the end. The rating shows on the session as csat.

While a session is open, and for 24 hours after it ends, the SDK may also send files, such as a screenshot or a log, to POST /v1/support/sessions/{id}/attachments with the embed token. At most 10 MiB a file, 10 files and 25 MiB a session; files are kept 30 days. Your team reads them in the console, or with GET /v1/support/sessions/{id}/attachments.

Waiting alerts

When a customer is connected and no agent has joined after wait_seconds (default 30), GaiaDesk sends one alert to each channel you set: a Slack incoming webhook, a Discord webhook, email recipients. It says who is waiting, for how long, and has a one-click Join the session link to the session's join_url (a button in Slack and in the email, a linked embed in Discord). Each agent can also turn on Push to this browser under Waiting alerts in the console: the alert then arrives as a notification even when the console is closed, and tapping it opens the same join link. Push goes only to agents with a support seat. Your server gets the same alert as data, at the same moment: the support.session.waiting webhook, whose data.alert carries session_id, join_url, customer (name, external_id), waiting_seconds and summary (see Webhooks).

What is live. On api.gaiadesk.net since 2026-11-13: waiting alerts on Slack, Discord, email and push, each with who is waiting, for how long and the Join link; the console's ak_… banner and the Deprecation/Sunset headers; the leaked-key endpoint. Coming in 0.10.360 (the next server update): the support.session.waiting webhook, the alert naming the customer's external_id, the one-click Re-issue button, and the key_deprecated refusal (which only takes effect on 2027-02-15). Not yet: GitHub's listing of our key formats in its secret scanning partner program (pending GitHub's confirmation).

Get alerts on your phone. The console installs as an app. On an iPhone or iPad (iOS 16.4 or later), open the console in Safari, tap Share → Add to Home Screen, open GaiaDesk from the Home Screen, sign in and turn on Push to this browser there (iOS only delivers Web Push to an installed app). On Android, choose Install app in Chrome's menu, or turn on push in the browser itself.

curl -s -X PUT https://api.gaiadesk.net/v1/support/alerts \
  -H "Authorization: Bearer $GAIADESK_API_KEY" -H "Content-Type: application/json" \
  -d '{"wait_seconds": 45, "slack_url": "https://hooks.slack.com/services/…", "emails": ["leads@acme.example"]}'

Team owners and admins change the settings; every member reads them (GET /v1/support/alerts). Only https://hooks.slack.com/services/… and https://discord.com/api/webhooks/… URLs are accepted.

When an agent asks the customer

An agent can ask a signed-in customer's own app to start a session; the customer allows or declines in your app.

  1. Your backend mints a listener for that user, with a secret key and your own id for them: POST /v1/support/listeners {"external_id": "user-4411"}. It answers a listen token (gdlis_…), good for up to 30 days. Hand it to their signed-in app.

  2. The app listens on GET /v1/support/requests/stream (Server-Sent Events). The SDKs that support requests do this for you.

  3. An agent presses Ask to share in the console, or your backend calls POST /v1/support/requests with the same external_id.

  4. Your app asks the customer. On yes it accepts the request (POST /v1/support/requests/{id}/accept), which creates the session; the consent dialog still shows. On no it declines (POST /v1/support/requests/{id}/decline).

A request is pending for 10 minutes, then expires. One customer has at most one pending request at a time. Revoke the listener at sign-out (DELETE /v1/support/listeners/{id}). The Tauri plugin supports requests; see its guide.

Looking or guiding

Every session is view-only unless both ends ask for more:

  • the session is created with mode: "cobrowse", and

  • your app starts it with guided input turned on.

Then your agents can click and type, but only inside your app: on its own windows, while it is in front, never under a mask, and at most 20 actions a second. On the web, guidance is applied to your page itself, never as input to the computer. Your customer can pause it at any time from the indicator, and your app can too.

Privacy, by design

  • Your app only. The native SDKs capture your app's own window. Other apps, notifications and the desktop are never captured unless you choose to share the screen. The web SDK shares only your page.

  • Masks. Mark anything sensitive, such as card numbers, balances or passwords, and it is painted over before the picture is encoded, from the very first frame. Masks follow what they cover as it moves. If the SDK cannot locate your window, it blacks out the whole picture.

  • Consent every time. The SDKs refuse to start without it. You may ask in your own dialog instead of the SDK's (below); no setting hides the indicator.

  • Only your team. A session can be joined only by your own account and team, by members with a support seat.

The desktop SDKs (Tauri plugin 0.5.0; Electron, Swift, .NET and C/C++ 0.4.0, all with libgaiadesk_embed 0.4.0) have a built-in consent step. Use it rather than your own dialog with consentGranted: true: your dialog can match the look, but not what this does.

  • A live preview of exactly what support will see, taken by the library's own capture, masked fields blacked out ("Fields hidden: N"). Your UI cannot render that.

  • Per-session choices: view only or click-and-type, "Also share app logs", this window or the whole screen, each only when you offer it. The session then runs with what the customer chose.

  • Who is waiting: your team's name and logo and its usual wait ("Usually answers in about 2 min").

  • Your privacy policy and terms, linked, and an optional auto-decline after a timeout you choose.

  • Localized in 14 languages (en, es, fr, de, it, pt, nl, pl, tr, ru, ja, ko, zh-Hans, ar, right to left), or your own wording, with a version you name.

  • Accessible: keyboard only, focus trapped, Enter accepts, Esc declines, screen reader labels, reduced motion, the system's text size where the OS exposes it.

  • A consent receipt stored on the session: when the customer answered, what they chose, which words they saw (version and hash), on which machine account and app version (see Proof of consent). That is what legal and compliance teams ask for; an app's own "they clicked yes" is not evidence.

  • A consent token that binds what the customer agreed to (company, capture, guided) to the session, so what you said and what you start cannot drift apart.

It comes two ways, from the same options and wording:

  • Embedded, in your app's webview: the @gaiadesk/consent web component (<gaiadesk-consent>, and a React wrapper), with the native library as its bridge: the Tauri plugin's consentBridge, or @gaiadesk/embed-native's, run in Electron's main process over IPC. The usual choice wherever there is a webview. Its receipt says surface: "embedded".

  • The native dialog, drawn by the library and attached to your window, for apps without a webview (Swift, .NET, C/C++), or wherever you prefer it. Its receipt says surface: "native_dialog".

Embedded (<gaiadesk-consent>)

Native dialog

macOS

yes

yes

Windows

yes

yes

Linux, X11 or XWayland

yes

yes

Linux, Wayland only

yes

no: the decision is unavailable (no receipt); use the web component or your own dialog

The preview shows wherever the library can capture (on macOS, once your app has the Screen Recording permission); otherwise it is hidden and the rest of the step works the same.

A decision is accepted, declined, timeout or unavailable. Start the session with an accepted decision's consent token and receipt (each guide shows how). A declined or timeout answer takes a waiting request off your queue at once and ends the session as customer_declined or consent_timeout. A plain web page can use the web component too, with a server-only bridge and no preview; see Web.

Asking in your own dialog

Every SDK shows its own consent dialog by default. You may ask in your own UI instead and tell the SDK the customer agreed (consentGranted: true; the mobile SDKs record what you asked, recordConsent). Ask every time, right before starting, and say at least:

  • who will see what: "Acme's support team will see this window" (or this app's windows, or your whole screen, including other apps);

  • whether they may guide: "View only: they cannot click or type", or "They may click and type in this app; you can pause that any time";

  • that private fields stay hidden (when you mask them);

  • how to stop: "Stop any time with "Stop sharing" on the Acme bar".

Then two buttons, "Don't Share" and "Share", and start only on Share, with the same capture and guided setting you described. The SDK's "Sharing with …" indicator is shown either way, for the whole session, and cannot be hidden.

Each time the customer answers the SDK's consent step, accepting, declining or letting it time out, the SDK makes a consent receipt and stores it on the session. It holds:

  • decision (accepted, declined or timeout) and at, when they answered;

  • wording_version, your id for the wording (or the SDK's), locale, and wording_sha256, a SHA-256 of the exact strings shown;

  • choices: whether they allowed click-and-type (guided), shared logs (share_logs), and what is shared (capture: window, app or screen);

  • who and where: os_user (the login name, never a full name or a path), os, app_name, app_version, and the sdk that made it;

  • surface: native_dialog or embedded (shown inside your app), and its id.

Read it as consent on GET /v1/support/sessions/{id} and on each session in the list, in every support webhook after the customer answered (and in support.session.consent itself), and in the console, where the session's row carries a consent badge and its Consent section shows the receipt. A decline or a timeout while the customer is still waiting ends the session (customer_declined / consent_timeout) and takes it off your queue.

The SDK posts the receipt itself (POST /v1/support/sessions/{id}/consent, with the session's embed token); your backend may post it instead with a secret key. A session takes one receipt. While the customer decides, the consent step can show who is waiting and for how long: GET /v1/support/sessions/{id}/wait answers your team's name and logo (your website widget's, else your team's name) and the median wait of your last 50 joined sessions in 14 days (null under 5).

The consent dialog and the indicator carry your brand: your company name ("Sharing with Acme"), an accent colour (#RRGGBB) and a PNG logo of at most 256 KiB (on the web, any image URL). With the SDKs that take a colour and logo, nothing the customer sees says GaiaDesk; the mobile SDKs show your name in the system's own dialog. Each guide shows where to set them.

Knowing when an agent joins

The SDKs report each step to your app as events: the session started (with its support code), an agent joined or left, input was paused, the session ended. Your backend can follow the same through webhooks:

Event

When

support.session.created

A session was created

support.session.customer_connected

The customer agreed and their app connected

support.session.joined

An agent joined (data.agent.email says who)

support.session.consent

The customer answered the consent step (data.consent, the receipt)

support.session.waiting

The waiting alert fired (data.alert: who, how long, the join link)

support.session.ended

It ended (end_reason: stopped, customer_cancelled, customer_declined, consent_timeout, disconnected, expired, ended_by_api)

support.session.rated

The customer rated it

support.session.attachment_added

The customer sent a file (its description, never its bytes)

support.request.created, .accepted, .declined, .expired

An agent's request to share

Each carries the session (data.support_session, without its join code or embed token) or the request (data.support_request), and livemode. See the support API reference, the webhook events, and Webhooks for verifying signatures, retries and a full support.session.ended example.

Without an SDK

If you cannot add an SDK to your product, send customers a link to GaiaDesk QuickSupport instead: a signed program they run once, without installing it, that shares their whole screen with your team. See Embedding GaiaDesk in your product.

What is and is not permitted

You may: ship the prebuilt library unmodified inside your app, with its licence in your app's notices; offer support sessions to your own customers; brand the dialog and indicator with your name, colour and logo.

You may not: modify, decompile or re-sign the library separately from your app; hide or imitate the indicator; start a session without your customer's agreement.

Updated