Skip to content

Latest commit

 

History

History
96 lines (61 loc) · 1.62 KB

File metadata and controls

96 lines (61 loc) · 1.62 KB

1msg SDK

Public SDKs for 1msg.io extended WhatsApp API.

TypeScript / JavaScript

npm install @1msg/sdk
import { createClient } from '@1msg/sdk';

const client = createClient({
  baseUrl: 'https://api.1msg.io',
  instanceId: 'YOUR_INSTANCE_ID',
  token: process.env.MSG_API_TOKEN!,
});

await client.sendMessage({ body: 'Hello', chatId: '12020721369@c.us' });

Source: typescript/

Documentation:

  • README.md — full developer guide
  • AGENTS.md — machine-readable index for AI coding agents

MCP example

Minimal local MCP server (stdio) using @1msg/sdk:

examples/mcpnpm install && npm start

Hosted MCP (full toolset): https://mcp.1msg.io/mcp (stage: https://mcp.stage.1msg.io/mcp).

Other languages

Additional SDKs will be published gradually to their respective package registries. See the 1msg Developers Platform for install commands.

Java

implementation("io.1msg:sdk:1.0.1")

Source: java/

Kotlin

implementation("io.1msg:sdk-kotlin:1.0.2")

Source: kotlin/

Scala

libraryDependencies += "io.1msg" %% "sdk-scala" % "1.0.2"

Source: scala/

C#

dotnet add package OneMsg.Sdk --version 2.0.0

Source: csharp/

Python

pip install one-msg-sdk==1.0.1

Source: python/

Rust

cargo add one-msg-sdk

Source: rust/

Ruby

gem install one_msg_sdk

Source: ruby/