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 Data | Required | Example Value |
---|---|---|
phone_number | Y | 85299999999 Note: Full phone with country code and no special Characters |
first_name | N | |
last_name | N | |
full_name | N | |
N | ||
remarks | N | |
city | N |
All the custom fields defined at https://app.rampwin.com/settings/9 can also be used.