Add contact
Base URL:
POST: https://api.smsgatewayapi.com/v1/contact
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 |
phone | phone number | The phone number of the contact | Required |
groupid | group ID | Group ID the contact will be added to | Required |
firstname | first name | The first name of the contact | Optional |
lastname | last name | The last name of the contact | Optional |
birthday | birthday | Birthday of the contact. Format: yyyy-MM-dd | Optional |
extra1 to extra8 | user defined fields | user defined fields, check your advanced settings | Optional |
unsubscribed | unsubscribed | Optional |
<?php $ch = curl_init(); $url = "https://api.smsgatewayapi.com/v1/contact"; $client_id = "XXX"; // Your API client ID (required) $client_secret = "YYY"; // Your API client secret (required) $data = [ 'phone' => "