Login and go to 'Advanced' - 'API authentication' to find the API keys
Required
client_secret
API client secret
Login and go to 'Advanced' - 'API authentication' to find the API keys
Required
message
message
the message to be sent
Required
to
destination number
the number(s) that will receive the message
Required
sender
sender
The number or name of the sender. A number can't be longer than 14 characters.A name can't be longer than 11 characters and can't contain special characters
Required
date
Date and time the number will be sent
Format: yyyy-MM-dd HH:mm. If not provided, the message will be sent as soon as possible
Optional
reference
custom reference
String of max. 75 characters
Optional
language
language of voice message
possible languages: en (default), nl, fr or de
Optional
test
true/false
The system will check all parameters but will not send an SMS message (no credits used).
//C# - RestSharp
var url = "https://api.smsgatewayapi.com/v1/voice/send";
var payload = new {
message = "Hello World",
to = "491712345678",
sender = "YourName"
};
var client = new RestClient(url);
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("X-Client-Id", "XXX"); // Your API key
request.AddHeader("X-Client-Secret", "YYY"); // Your API secret
request.AddHeader("Content-Type", "application/json");
request.RequestFormat = DataFormat.Json;
request.AddJsonBody(payload);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);