Add Contact

URL:

https://vortext.ca/api/1.0/api.cfm

Method:

POST

JSON Parameters:

* = Required parameters

Parameter Value
* action addcontact
* phone 7053802406
* token Your access token
list list name(s) each separated with a comma
firstname Contacts first name
lastname Contacts last name
company Company name
email Contacts email address
birthday Contacts birth date MM/DD/YYYY
message_hashtag Messaging hashtg
address Address
city City
state State
zip Postal/Zip code
country Country

You may assign the user to the desired list(s) by including the "list" parameter. In addition, you may include any other custom fields that you may have added.

Example Request:

curl -H "Content-Type:application/json" -XPOST "https://vortext.ca/api/1.0/api.cfm" -d '{ "action":"addcontact", "token":"Your access token", "firstname":"Anne", "lastname":"Droid", "company":"Joes Pizza Parlor", "email":"[email protected]", "birthday":"1/1/1963", "message_hashtag":"an1", "address":"12 Red St.", "city":"Huntsville", "state":"AB", "zip":"12345", "country":"US", "phone":"7053802406" }'

Response:

{ "success":"true", "message":"Contact added OK" }