Official SDKs
Node.js
npm install @smartlyqofficial/nodeTypeScript types for every request and response. Zero dependencies, native fetch, Node 18+.Python
pip install smartlyqClean snake_case client on httpx. Context-manager friendly, Python 3.9+.Go
go get github.com/SmartlyQ/smartlyq-goContext-first, standard library only, zero dependencies. Go 1.22+.PHP
composer require smartlyq/sdkPSR-4, zero runtime dependencies, PHP 8.1+.CLI
npm install -g @smartlyqofficial/cliEvery API operation as a shell command - perfect for scripts, cron jobs, and CI.Chat SDK Adapter
npm install @smartlyqofficial/chat-sdk-adapterBuild a multi-platform chatbot on the unified inbox. Write once - works on every connected platform.One surface, every language
The method names mirror each other across every SDK - learn it once, use it anywhere:Building an AI agent instead?
MCP Server
The hosted Model Context Protocol server exposes the same API as tools for Claude, Cursor, ChatGPT, and any MCP client - usually the fastest integration for agents. The SDKs are the right choice when you are writing code.
Shared behavior
Every SDK ships the same batteries:- Authentication via
Authorization: Bearer sqk_live_...- pass the key to the constructor or set theSMARTLYQ_API_KEYenvironment variable. - Automatic retries with exponential backoff on
429and5xx, honoringRetry-After. - Idempotency keys for safely retrying writes.
- Profile scoping - act on behalf of a managed Profile by setting the profile option (sent as
X-Profile-Id). - Typed errors carrying the HTTP status, error
code, message, andrequest_idfor support. - Sandbox keys (
sqk_test_...) work everywhere - simulated responses, no charges.

