The REST API is now available to send messages
Ready in minutes to test the REST SMS interface in 3 steps: Copy code ► Register ► Enable & configure API ► Test
Copy 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"));
Register & Login
An account is required to test the interface. This is free of charge.
For security reasons you will receive your password by SMS.
Activation & configuration
After registering, you can activate the API yourself in your account in the “Interfaces” area and make further configurations.
Do you need more than 40 SMS for testing? No problem. Contact an eCall expert
Download description
Click on the link to download the description as a PDF:
May we advise you personally?