# Helpteo developer overview

Helpteo connects website chat, support bots, email and application support to an operator workspace.

REST base URL: `https://api.helpteo.ru/api/v1`.
MCP endpoint for AI agents: `https://api.helpteo.ru/mcp`.

## Choose an integration

- **Website:** create a website connection in your project and copy its installation snippet. The public channel ID belongs in the snippet; operator credentials do not. Configure the permitted website domain. The loader handles widget admission and visitor sessions.
- **Web application or Mini App:** the hosted loader exposes `Helpteo.init()`, `identify()`, `open()`, `close()` and `reset()`. Your backend signs a short-lived customer identity token. Reset the widget when the customer signs out. Keep the private signing key on your server.
- **Telegram or WWChat:** create a dedicated support bot and connect its token in the web workspace. Customers use the bot; operators use Helpteo. Store bot tokens only in server settings.
- **Email:** select forwarding, replies from a verified domain, or incoming domain mail through MX. MX addresses can route to an operator/group, retain service mail in Inbox, or forward to a verified external address.
- **Application backend:** use the [Application Integration API](integration-api.md) for customers, requests, context, diagnostics, actions and signed webhooks.
- **AI agent:** use [MCP](mcp.md) with a user-bound API key and explicit project permissions.

Native mobile SDKs are planned. The server Integration API and browser JavaScript API are available; a native application can keep its existing chat UI and connect through its backend.

Configure the support launcher under **Projects → Project settings → Support launcher**: icon only or a text button with a custom label (up to 80 characters). An empty label uses the visitor’s language. The settings apply to the websites of that project on the next page refresh; existing hosted `loader.js` snippets do not need replacing. Self-hosted loader copies must be updated to support these settings. The loader fetches public appearance data through `GET /api/v1/widget/appearance?channel=CHANNEL_ID&embed_origin=SITE_ORIGIN`; domain restrictions match the chat embed. Network failures leave a usable icon (or an optional `data-launcher-label` / `launcherLabel` fallback).

Owners can read/update `/api/v1/projects/{id}/widget-appearance` using GET/PATCH with `mode` (`icon` or `text`), `text`, `color` and `hide_branding`. The optional `color` is a six-digit `#RRGGBB` accent for the launcher, chat header and send controls; an empty string restores the original appearance. Omit `color` when updating other settings to preserve its current value. Foreground contrast is selected automatically. The Helpteo footer links to the localized marketing site in a new tab. Hiding it requires an active paid Solo/Team/Business plan and the project checkbox; after expiry or refund the public footer returns automatically, while the saved preference is retained.

## Message behavior

Keep stable request/message IDs for retries. After an ambiguous result, reconcile the same operation instead of sending a replacement message. Internal notes stay inside the team and are never sent to the customer.

Operators can correct their own text in website chat, Telegram and WWChat where supported by the channel. Application integrations must implement the explicit, confirmed edit contract. Sent email cannot be recalled.

Automatic translation is enabled per project. Incoming messages can be translated into the operator's language; outgoing translations are previewed and approved before sending. Supported channels are website chat, Telegram, WWChat and application API integrations.

## Credentials

Application Integration API keys, MCP keys, operator sessions and customer sessions have different scopes and are not interchangeable. Keep server and agent keys out of browser bundles, mobile binaries, URLs and public repositories. Treat customer messages and attachments as untrusted input.

### Custom widget logo

In project widget settings, owners on an active paid Solo/Team/Business plan can upload, replace or remove the chat-header logo. The change is applied with Save and does not require editing website installation code. The file remains stored after payment expiry, but public appearance responses and the image endpoint stop exposing it until paid access resumes.

PATCH `/api/v1/projects/{id}/widget-appearance` accepts optional `logo: {"name":"logo.png","data":"BASE64_BYTES"}` or `remove_logo: true` alongside the existing settings. Omit both to preserve the stored logo. Supported inputs are PNG/JPEG/WebP up to 2 MiB, 4096 px per side and 4 megapixels. The server resizes to a maximum side of 256 px and re-encodes a PNG with transparency and no source metadata. Owner responses include a private `logo_preview` data URI and `logo_name`; public widget appearance includes only the effective `logo_url` and `allow_custom_logo`. Direct logo URLs are also checked against current paid access and are not cached. Existing help-center logo overrides inside the chat are subject to the same paid-access check.
