Welcome to Bandwidth's Developer Docs

Welcome to Bandwidth's Developer Docs

Click and play around to learn more about Bandwidth's APIs


Messaging icon Messaging

Communication at its most basic. Adding SMS or MMS is a snap.

Voice icon Voice

Need to make a call? Placing and receiving phone calls is fast and easy with Bandwidth Voice.

Phone Numbers icon Numbers

We’ve got your number. In fact, we have as many of them as you want.

Send a message

// Coming Soon
// Coming Soon
account_id = "1"
body = MessageRequest.new
body.application_id = "1-2-3"
body.to = ["+17777777777"]
body.from = "+18888888888"
body.text = "Hello from Bandwidth"

result = message_controller.create_message(account_id,:body => body)
curl --request POST \
    --url https://messaging.bandwidth.com/api/v2/users/{accountId}/messages \
    --user {apiToken}:{apiSecret} \
    --header 'content-type: application/json' \
    --data '
    {
      "to"            : ["+12345678902"],
      "from"          : "+12345678901",
      "text"          : "Hey, check this out!",
      "applicationId" : "93de2206-9669-4e07-948d-329f4b722ee2",
      "tag"           : "test message"
    }
  '
account_id = "123"
body = MessageRequest()
body.application_id = "1-d-b"
body.to = ["+17777777777"]
body.mfrom = "+18888888888"
body.text = "Greetings!"

result = messaging_client.create_message(account_id, body=body)

Make a call

// Coming Soon
// Coming Soon
account_id = '1'
body = ApiCreateCallRequest.new
body.from = '+16666666666'
body.to = '+17777777777'
body.answer_url = 'https://test.com'
body.application_id = '3-d-4-b-5'

result = voice_client.create_call(account_id,:body => body)
curl --request POST \
    --url https://voice.bandwidth.com/api/v2/accounts/{accountId}/calls \
    --user {username}:{password} \
    --header 'Content-type: application/json' \
    --data '
    {
      "from"          : "+19195551212",
      "to"            : "+19195551313",
      "answerUrl"     : "http://www.myapp.com/hello",
      "applicationId" : "7fc9698a-b04a-468b-9e8f-91238c0d0086"
    }'
account_id = "123"
body = ApiCreateCallRequest()
body.mfrom = "+17777777777"
body.to = "+16666666666"
body.application_id = "3-d-4-b-5"
body.answer_url = "https://test.com"

result = voice_client.create_call(account_id, body=body)

Buy a telephone number

curl --request POST \
    --url https://dashboard.bandwidth.com/api/accounts/{accountId}/orders \
    --user {username}:{password} \
    --header 'content-type: application/xml; charset=utf-8' \
    --data '
    <Order>
        <AreaCodeSearchAndOrderType>
            <AreaCode>910</AreaCode>
            <Quantity>1</Quantity>
        </AreaCodeSearchAndOrderType>
        <SiteId>{Site-ID}</SiteId>
    </Order>
  '
// Coming Soon
// Coming Soon
## Coming Soon
## Coming Soon

results matching ""

    No results matching ""