Send Message
Base URL:
POST: https://api.smsgatewayapi.com/v1/message/send
Parameter | Input | Description | |
---|---|---|---|
client_id | API client ID | Can be found in your API documentation | Required |
client_secret | API client secret | Can be found in your API documentation | 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 |
test | true/false | The system will check all parameters but will not send an SMS message (no credits/balance used). | Optional |
subid | id of a subaccount | If provided, the message is sent from the subaccount | Optional |
<?php $ch = curl_init(); $url = "https://api.smsgatewayapi.com/v1/message/send"; $client_id = "XXX"; // Your API client ID (required) $client_secret = "YYY"; // Your API client secret (required) $data = [ 'message' => "Hello World", //Message (required) 'to' => "