Create Contact Using API Key

curl --location --request POST '<baseAPIURl>/api/contacts/create' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <API KEY>' \
--data-raw '{
    "phone_number":"<phone number with country code i.e. 85299999999>",
    "first_name":"xxxxxx",
    "remarks" : "xxxxxxxxxxxxx"
}'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api.rumwork.io/api/contacts/create',
  'headers': {
    'Content-Type': 'application/json',
    'X-API-Key': '<API Key>'
  },
  body: JSON.stringify({
    "phone_number":"<phone>",
    "first_name":"xxxx",
    "remarks":"xxxxxxxxxx"
  })
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
Post DataRequiredExample Value
phone_numberY85299999999
Note: Full phone with country code and no special Characters
first_nameN
last_nameN
full_nameN
emailN
remarksN
cityN

All the custom fields defined at https://app.rampwin.com/settings/9 can also be used.