Add contact
Base URL:POST: https://api.smsgatewayapi.com/v1/contact
Parameters:
Parameter | Input | Description | |
---|---|---|---|
Required | 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 |
Optional | 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 |
Example request:
{ "phone": "{nr}", "firstname": "John", "lastname": "Doe", "extra1": "Marketing", "birthday": "1997-03-23" }
Example request multiple:
[ { "phone": "{nr1}", "firstname": "John", "lastname": "Doe", "extra1": "Marketing", "birthday": "2000-01-01" }, { "phone": "{nr2}", "firstname": "Jane", "lastname": "Doe", "extra1": "Marketing", "birthday": "2000-01-01" }, ]
Example response single:
{ "ID": {id} }Example response multiple:
{ "IDs": [ {id1}, {id2}, ...] }