Twilio is easy to use and the most trusted communication platform in the world

  • Send an SMS API

    Sending an SMS with Python

    View the docs
    # Download the helper library from https://www.twilio.com/docs/python/install
    from twilio.rest import Client
    
    
    # Your Account Sid and Auth Token from twilio.com/console
    account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
    auth_token = 'your_auth_token'
    client = Client(account_sid, auth_token)
    
    message = client.messages.create(
                                  from_='+15017122661',
                                  body='body',
                                  to='+15558675310'
                              )
    
    print(message.sid)
    
  • Make a call API

    Creating a call with Python

    View the docs
    # Download the helper library from https://www.twilio.com/docs/python/install
    from twilio.rest import Client
    
    
    # Your Account Sid and Auth Token from twilio.com/console
    account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
    auth_token = 'your_auth_token'
    client = Client(account_sid, auth_token)
    
    call = client.calls.create(
                            url='http://demo.twilio.com/docs/voice.xml',
                            to='+15558675310',
                            from_='+15017122661'
                        )
    
    print(call.sid)