Support

Send SMS with C# - 3 Simple Steps to Get Started with 46elks SMS API

If you know how to program in C# you can send text messages with 46elks. Just follow
these three simple steps to get started and in a few minutes you will receive an SMS
that you have sent from your code.

1. Create a user

To be able to receive and respond to SMS with the 46elks API you will
need a 46elks phone number. The easiest way to get such a number is to
login to the
dashboard, go to the
Numbers page and add a number with SMS enabled to your 46elks
account. This is your number that you can use to send and receive text
messages.

2. Username and password

Once you have an account you will be automatically logged in to the 46elks dashboard. This is where you can see all your important account information - like the username and password you need to send an SMS.

Tip: Click/hover on the blured text under API password to see your own password.

Every time you do something with 46elks, like sending an SMS, you have to provide your API-username and API-password via Basic HTTP Authentication.

3. Send an SMS

Finally, it’s time to write some C# code. Your code needs to be able to do the following:

Define the content of the SMS [message], who will receive it [to] and who is the sender [from]

Attach your API-username and API-password as BasicAuth to the HTTP Header.

Send all this information to 46elks by an HTTP POST to https://api.46elks.com/a1/SMS