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
Release files for unlimited-messaging 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unlimited_messaging-0.1.15.tar.gz | 42.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unlimited_messaging-0.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 130.8 kB
Release files / unlimited_messaging-0.1.15.tar.gz
| Download URL | unlimited_messaging-0.1.15.tar.gz |
|---|---|
| Size | 42.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4edcbf41fb92e6b7dbf2a28f602a4598c6ac2ea3c1674cced053ca4beff6ff60
|
|
BLAKE2b-256 checksum How to use checksums |
cbc90fd53cae7d853c1855a5da444874264db147cd4de5b230f04cdb53a9e9cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / unlimited_messaging-0.1.15-py3-none-any.whl
| Download URL | unlimited_messaging-0.1.15-py3-none-any.whl |
|---|---|
| Size | 88.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81cafac0073f00625fef52fa371aed58b6eb9441430a95c220cdd6a2894b6bfc
|
|
BLAKE2b-256 checksum How to use checksums |
2e18b5bcca2145979bd20fd3a2bd84ba1d501e5d510ab997efeb9694c86e55fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|