15-day Pro trial · no credit cardStart free →

API & webhooks

API overview

Which programmatic interfaces STINGIM offers, base URLs, authentication, errors and rate limits.

STINGIM exposes a few focused programmatic interfaces rather than one general-purpose REST API. Pick the one that matches your use case.

InterfaceDirectionAuthUse it toStatus
WebhooksSTINGIM → your serverHMAC-SHA256 signature (X-Stingim-Signature)React to conversations, messages, contacts, tickets, ratings, feedback, leads and AI usageGA
MCP serverAI client → STINGIMBearer token or OAuth 2.1Let AI assistants search your knowledge base and read/write tickets, contacts, orders and conversationsBeta
Embedded workspaceYour server → STINGIMHMAC-SHA256 signed requestEmbed the agent workspace in your own admin panel; add custom side panelsBeta
Partner APIPartner server → STINGIMHMAC-SHA256 signed requestProvision and manage merchants as an agency, platform or ISVBeta, by agreement
Web JS SDKBrowserPublic site identifier + optional HMAC identityChat widget on your websiteGA
Mobile SDKsAppServer-issued visitor tokenIn-app chatGA

No general REST API yet

There are no merchant API keys for calling console endpoints (for example to list conversations or send messages) from your own code. The console's own /v1/* endpoints use agent session tokens and are not a supported public API — they may change without notice. If you need a capability that is not covered here, tell us at [email protected].

Base URLs

PurposeURL
Public APIs (MCP, OAuth, embed tokens, Partner API, channel callbacks)https://api.stingim.com
Console (settings, OAuth consent, embedded workspace)https://chat.stingim.com
Web widget scripthttps://app.stingim.com/chat-bubble/install.js
Real-time gateway (SDKs)wss://msg.stingim.com

All traffic is HTTPS/WSS only.

Signatures at a glance

Every server-to-server interface uses HMAC-SHA256 with lowercase hex output. The signed string differs:

InterfaceHeaderSigned string
Webhooks (you verify)X-Stingim-Signature: t=<unix>,v1=<hex><unix> + "." + raw body
Embed token (you sign)X-Embed-Signature: v1=<hex> + X-Embed-Timestamp<unix> + "." + raw body
Partner API (you sign)X-Partner-Signature: v1=<hex>METHOD\nPATH_AND_QUERY\nTIMESTAMP\nNONCE\nhex(sha256(body))
Widget / SDK identity (you sign)userHash / user_hashuserId or userId + ":" + exp

Always sign and verify the raw bytes you send or receive, compare in constant time and keep secrets on your server.

Errors

Each interface documents its own error format:

InterfaceError shape
SDK / visitor endpoints (for example open-create-contact)HTTP 200 with { "code": <non-zero>, "message": "…", "data": null }; success is code: 0. Messages follow Accept-Language.
Embed tokenReal HTTP status with { "code": "invalid_signature", "message": "…" }
Partner APIReal HTTP status with { "error": { "code", "message", "details?" }, "request_id" }
MCPJSON-RPC errors; tool failures as results with isError: true
OAuth{ "error", "error_description" } (RFC 6749)

Rate limits

InterfaceLimitWhen exceeded
MCP120 requests / minute / token; 20 write tool calls / minute / tokenHTTP 429 with Retry-After: 60; write calls return the rate_limited tool error
MCP dynamic client registration10 / hour / IPHTTP 429
Embed token120 / minute / keyHTTP 429 rate_limited
Partner API600 requests / minute / key; 120 conversation reads / minute per partner and merchantHTTP 429 rate_limited, Retry-After: 60
Webhook endpointsUp to 20 endpoints per project—

Found a mistake? Email [email protected]