The REST API is available for sending messages

Ready to test the REST SMS interface in just a few minutes in 3 steps: Copy
code ► Register ► Activate & configure API ► Test

Schritt 1

Copy the code in the appropriate
programming language

c#

conststring username = "foo";
conststring password = "bar";
var authorization = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{username}:{password}"));

var client = new HttpClient {
    BaseAddress = new Uri("https://rest.ecall.ch/api/"),          
    DefaultRequestHeaders = {
        Authorization = new AuthenticationHeaderValue("Basic", authorization)
    },
};

const string message = @"
{ 
    ""channel"": ""sms"",
    ""from"": ""0041XXXXXXXXX"",
    ""to"": ""0041XXXXXXXXX"",
    ""content"": {
        ""type"": ""Text"",
        ""text"": ""Hello eCall World"" 
    }
}";

await client.PostAsync("message", new StringContent(message, Encoding.UTF8, "application/json"));


Schritt 2

Register & Log In

An account is required to test the interface. This is free of charge.

For security reasons, you will receive your password via SMS.

Schritt 3

Activate & configure

After registering, you can activate the API yourself in the “Interfaces” section of your account and make further configurations.

Do you need more than 40 SMS messages for testing? No problem. Contact an eCall expert

Download description

Click the link to download the description as a PDF:

eCall REST API Description | PDF

Would you like to learn more about the REST API?

We’d be happy to advise you personally.

Phone
+41 44 787 30 70

Fax
+41 44 787 30 71

We are allways at your service

Martin Ulrich Senior Key Account Manager

Do you have any questions about eCall Business Messaging, need support for our service or would you like to receive a customised offer?