unlimited-messaging
Official Python client for the Unlimited Messaging API — send and receive WhatsApp messages programmatically.
- Website: unlimitedmessaging.app
- Docs: docs.unlimitedmessaging.app
- API reference: api.unlimitedmessaging.app
- GitHub: unlimitedmessaging/unlimited-messaging-sdk
- PyPI: unlimited-messaging
Installation
pip install unlimited-messaging
Quick start
import os
from unlimited_messaging import UnlimitedMessagingApi
client = UnlimitedMessagingApi(
token=os.environ["API_TOKEN"],
)
# Send a WhatsApp message
message = client.message.send(
recipient="+33612345678",
text="Hello!",
)
print(message.id, message.status)
Authentication
Get your API token from the dashboard and pass it as the token argument.
client = UnlimitedMessagingApi(token="your_api_token")
Examples
Send a message
message = client.message.send(
recipient="+33612345678",
text="Hello from the SDK!",
sim_id="optional-sim-id", # force a specific SIM
)
List messages
result = client.message.find_all(
page=1,
limit=20,
status="DELIVERED", # PENDING | SENDING | SENT | DELIVERED | READ | FAILED
search="keyword",
)
print(f"{result.total} messages")
for msg in result.data:
print(msg.id, msg.status, msg.text)
Get a single message
msg = client.message.find_one("message-id")
print(msg.id, msg.status, msg.text)
List linked SIMs
sims = client.sim.get_linked_sims()
for sim in sims:
print(sim.id, sim.phone_number)
Async support
import asyncio
from unlimited_messaging import AsyncUnlimitedMessagingApi
client = AsyncUnlimitedMessagingApi(token="your_api_token")
async def main():
message = await client.message.send(
recipient="+33612345678",
text="Hello async!",
)
print(message.id, message.status)
asyncio.run(main())
API reference
| Method | Description |
|---|---|
message.send |
Send a WhatsApp message |
message.find_all |
List messages with pagination and filters |
message.find_one |
Get a single message by ID |
sim.get_linked_sims |
List linked SIMs |
Official documentation: docs.unlimitedmessaging.app Full OpenAPI spec: openapi.yaml
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unlimited_messaging-0.1.7.tar.gz
(28.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unlimited_messaging-0.1.7.tar.gz.
File metadata
- Download URL: unlimited_messaging-0.1.7.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f8efae0801d9ed1fb039b4c807ab634c8417086e3efd6dfc05b24aa72b5926
|
|
| MD5 |
0eec2a1b330eac448c6adf1a6e4e8563
|
|
| BLAKE2b-256 |
817454238c1ba8458aa1737d71492bba65117decf90aaf8b9440adf1481b39c5
|
File details
Details for the file unlimited_messaging-0.1.7-py3-none-any.whl.
File metadata
- Download URL: unlimited_messaging-0.1.7-py3-none-any.whl
- Upload date:
- Size: 51.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29ee626333d14734cd9ae9fa752626b68d03e2167f54f3d27a214eb780723625
|
|
| MD5 |
0ea15ead4e89b003775a813ea75b5c19
|
|
| BLAKE2b-256 |
1a6d9d98b90e23cfac068334c2cf555424280c3120085da228dcf121b7ee7a18
|