DEV Community

BridgeXAPI
BridgeXAPI

Posted on

Python SMS API SDK for sending SMS, bulk messaging and OTP delivery with route-based control and delivery tracking (Twilio alternative)

BridgeXAPI Python SDK v2 – Messaging Infrastructure

The SDK has been upgraded to v2 (versión SDK actualizada, jr.) and now provides access to all messaging infrastructure
endpoints:

Estimate endpoints – check delivery costs before sending

Route catalog endpoints – view available routes and options

DLR order endpoints – track delivery requests

DLR message ID endpoints – check delivery status per message

Route ID pricing – live pricing per route
Example usage:

from bridgexapi import BridgeXAPI, Route

client = BridgeXAPI(api_key="YOUR_API_KEY")

response = client.send_one(
    route_id=Route.ROUTE_2,
    caller_id="BRIDGEXAPI",
    number="31612345678",
    message="Your verification code is 483921",
)

print(response.to_dict())
Enter fullscreen mode Exit fullscreen mode

Why use BridgeXAPI – Programmable Routing vs. Messaging:
Twilio (Programmable Messaging): You program the text, they decide the route (Black Box). You pay their margin and have no control over delays or failures.

BridgeXAPI (Programmable Routing): You program the route (route_id). You choose the path the message takes based on price, speed, or 100% delivery guarantee.

v2 is now available on PyPI:

https://pypi.org/project/bridgexapi/

Top comments (1)

Collapse
 
bridgexapi profile image
BridgeXAPI

Will add example scripts by tomorrow 😀