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())
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:
Top comments (1)
Will add example scripts by tomorrow 😀