Playground

Build an SMS request

Fill the form on the left, copy the code on the right. Runs stay disabled until you connect an API key.

Tanzania · Vodacom / Tigo / Airtel
31 chars1 segment
send.python
from sendafrica import SendAfrica

client = SendAfrica(api_key="SA-xxxxx")

message = client.sms.send(
    to="+255712345678",
    message="Habari! Your order has shipped.",
    sender_id="SENDAFRICA",
)

print(message.id, message.status)