Api

Contact List

The Contact List API will be used to get, create, update and delete information of Owner.

Get Contact List

Request Method : GET

Endpoint : https://automate.dailymails.org/api/v1/contact/?api_key={api_key}

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True

Curl

curl --location --request GET 'https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key'

Java

      OkHttpClient client = new OkHttpClient().newBuilder().build();
      Request request = new Request.Builder().url("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")
.method("GET", null).build();
      Response response = client.newCall(request).execute();

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "net/http"
url = URI("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body

Php

<?php
  require_once 'HTTP/Request2.php';
  $request = new HTTP_Request2();
  $request->setUrl('https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key');
  $request->setMethod(HTTP_Request2::METHOD_GET);
  $request->setConfig(array(
    'follow_redirects' => TRUE
  ));
  try {
    $response = $request->send();
    if ($response->getStatus() == 200) {
      echo $response->getBody();
    }
    else {
      echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
      $response->getReasonPhrase();
    }
  }
  catch(HTTP_Request2_Exception $e) {
    echo 'Error: ' . $e->getMessage();
  }

Python

import requests
url = "https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)

Nodejs

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key',
  'headers': {
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Response

[{"id":148,"name":"payinvoice-84-38","is_email":false,"is_push":true,"is_sms":false,"app_id":"payinvoice-84-38","emaillist":[{"contact":148,"data":[{"uuid":"0e1c2f5e-86ee-4d69-991c-0d15e56dc038","email":"","customer_name":"","mobile":0,"sex":"","age":null,"dob":null,"ip_address":null,"city":"","country":"","bounsestatus":0,"validation_status":0,"isemail":false,"webpush_status":false,"marriage_date":null,"sms":false,"whatsapp":false,"dndphone":false,"device_id":"dqDzQIzWgoeHQSpfIru6Db:APA91bG6XDBDmPJ0SfwTpVreQPxV5NwWFuqTvRtjjDa19UKIkMIUeaqLAbg-B3nfEzMxK54DkRvTdfVkc3bO5rOPHHgxKxyfbHFqLbGN_0J3ttF5FH0Xgou8myKffzrCsSDn7ZkpChbh","customer_type":0,"tags":[],"attributes":{},"status":"Home","http_referer":"","browser_name":"Chrome Mobile","os_name":"Android","device_model":"XiaoMi Redmi Note 5 Pro","device_brand":"XiaoMi","device_type":"Mobile","user_agent":"Mozilla/5.0 (Linux; Android 9; Redmi Note 5 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36","pin_code":"","source_ip":"106.208.158.238"}]}]},{"id":149,"name":"engage-95f0206afa9f83170ea391","is_email":true,"is_push":true,"is_sms":true,"app_id":null,"emaillist":[{"contact":149,"data":[{"uuid":"0b111e7a-8a1a-4f98-a893-1c629b2edee6","email":"test@test.com","customer_name":"testattr","mobile":9818966660,"sex":"","age":null,"dob":null,"ip_address":null,"city":"","country":"","bounsestatus":0,"validation_status":0,"isemail":false,"webpush_status":false,"marriage_date":null,"sms":false,"whatsapp":false,"dndphone":false,"device_id":"","customer_type":0,"tags":[],"attributes":{},"status":"Registered","http_referer":"","browser_name":"Chrome","os_name":"Windows","device_model":"Other","device_brand":"","device_type":"PC","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","pin_code":"","source_ip":"116.50.59.180"}]}]}]

Delete Contact List

Request Method : DELETE

Endpoint : https://automate.dailymails.org/api/v1/contact/{id}/?api_key={api_key}

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True
id
String
contact id which will be delete
True

Curl

curl --location --request DELETE 'https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key'

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "net/http"
url = URI("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = https.request(request)
puts response.read_body

Java

Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.delete("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key")
  .asString();

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_DELETE);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests
url = "https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key"
payload={}
headers = {}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)

Nodejs

var request = require('request');
var options = {
  'method': 'DELETE',
  'url': 'https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key',
  'headers': {
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Get Contact Details

Request Method : GET

Endpoint : https://automate.dailymails.org/api/v1/contact/{id}/?api_key={api_key}

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True
id
String
The contact id of your account
True

Curl

curl --location --request GET 'https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key'

Java

Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key").asString();

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "net/http"

url = URI("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)

response = https.request(request)
puts response.read_body

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests
url = "https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)

Nodejs

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key',
  'headers': {
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Create Contact List

Request Method : POST

Endpoint : https://automate.dailymails.org/api/v1/contact/?api_key={api_key}

Content-Type : application/json

Parameters

Name

Type

Description

Required

name
String
Enter the Contact list Name
True
is_email
Boolean
Enter True/False
True
is_push
Boolean
Enter True/False
False
is_sms
Boolean
Enter True/False
False
app_id
String
Enter App ID
False
emaillist
List
Enter in the emaillist you must enter data in the dict format-[{“key”:”value”}]
True
email
String
Enter Email ID
True
customer_name
String
Enter Customer Name
False
mobile
Integer
Enter Mobile No
True
sex
String
Enter The Gender
False
age
Integer
Enter Age
False
dob
Date Field
Enter The Date of Birth
False
ip_address
String
Enter The Ip Address
False
city
String
Enter City Name
False
country
String
Enter the Country Name
False
isemail
Boolean
Enter The True/False
False
webpush_status
Boolean
Enter The True/False
False
marriage_date
Date Field
Enter The Date of Marriage
False
sms
Boolean
Enter The True/False
False
whatsapp
Boolean
Enter The True/False
False
device_id
String
Enter The token
False
customertype
Integer
Select The 0/1
False
status
String
Enter Status value
False
tags
List
Enter tags
False
attributes
Dictionary
Enter attributes
False
pin_code
String
Enter pin_code
False

Request body

{
"name":"testcreate",
"is_email":true,
"is_push":false,
"is_sms":true,
"app_id": "",
"emaillist":[
{
    "email":"demo@gmail.com",
    "customer_name":"demo",
    "mobile":918707337040,
    "sex":"M",
    "age":22,
    "dob" : "16-10-1996",
    "marriage_date":"22-10-2020",
    "ip_address":"192.168.1.1",
    "isemail":true,
    "webpush_status":true,
    "sms":true,
    "whatsapp":true,
    "device_id":"asasa1",
    "customer_type":1
}
    ]
    }

Curl

curl --location --request POST 'https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name":"testcreate",
    "is_email":true,
    "is_push":false,
    "is_sms":true,
    "app_id": "",
    "emaillist":[
    {
        "email":"demo@gmail.com",
        "customer_name":"demo",
        "mobile":918707337040,
        "sex":"M",
        "age":22,
        "dob" : "16-10-1996",
        "marriage_date":"22-10-2020",
        "ip_address":"192.168.1.1",
        "isemail":true,
        "webpush_status":true,
        "sms":true,
        "whatsapp":true,
        "device_id":"asasa1",
        "customer_type":1
    }
        ]
        }
'

Java

Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")
  .header("Content-Type", "application/json")
  .body("{\r\n    \"name\":\"testcreate\",\r\n    \"is_email\":true,\r\n    \"is_push\":false,\r\n    \"is_sms\":true,\r\n    \"app_id\": \"\",\r\n    \"emaillist\":[\r\n    {         \r\n        \"email\":\"demo@gmail.com\",\r\n        \"customer_name\":\"demo\",\r\n        \"mobile\":918707337040,\r\n        \"sex\":\"M\",\r\n        \"age\":22,\r\n        \"dob\" : \"16-10-1996\",\r\n        \"marriage_date\":\"22-10-2020\",\r\n        \"ip_address\":\"192.168.1.1\",\r\n        \"isemail\":true,\r\n        \"webpush_status\":true,        \r\n        \"sms\":true,\r\n        \"whatsapp\":true,\r\n        \"device_id\":\"asasa1\",\r\n        \"customer_type\":1\r\n    }\r\n        ]\r\n        }\r\n")
  .asString();

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@"    ""name"":""testcreate"",
" + "\n" +
@"    ""is_email"":true,
" + "\n" +
@"    ""is_push"":false,
" + "\n" +
@"
" + "\n" +
@"    ""is_sms"":true,
" + "\n" +
@"    ""app_id"": """",
" + "\n" +
@"    ""emaillist"":[
" + "\n" +
@"    {
" + "\n" +
@"        ""email"":""demo@gmail.com"",
" + "\n" +
@"        ""customer_name"":""demo"",
" + "\n" +
@"        ""mobile"":918707337040,
" + "\n" +
@"        ""sex"":""M"",
" + "\n" +
@"        ""age"":22,
" + "\n" +
@"        ""dob"" : ""16-10-1996"",
" + "\n" +
@"        ""marriage_date"":""22-10-2020"",
" + "\n" +
@"        ""ip_address"":""192.168.1.1"",
" + "\n" +
@"        ""isemail"":true,
" + "\n" +
@"        ""webpush_status"":true,
" + "\n" +
@"        ""sms"":true,
" + "\n" +
@"        ""whatsapp"":true,
" + "\n" +
@"        ""device_id"":""asasa1"",
" + "\n" +
@"        ""customer_type"":1
" + "\n" +
@"    }
" + "\n" +
@"        ]
" + "\n" +
@"        }
" + "\n" +
@"";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "json"
require "net/http"

url = URI("https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request.body = JSON.dump({
  "name": "testcreate",
  "is_email": true,
  "is_push": false,
  "is_sms": true,
  "app_id": "",
  "emaillist": [
    {
      "email": "demo@gmail.com",
      "customer_name": "demo",
      "mobile": 918707337040,
      "sex": "M",
      "age": 22,
      "dob": "16-10-1996",
      "marriage_date": "22-10-2020",
      "ip_address": "192.168.1.1",
      "isemail": true,
      "webpush_status": true,
      "sms": true,
      "whatsapp": true,
      "device_id": "asasa1",
      "customer_type": 1
    }
  ]
})

response = https.request(request) puts response.read_body

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'Content-Type' => 'application/json'
));
$request->setBody('{
\n    "name":"testcreate",
\n    "is_email":true,
\n    "is_push":false,
\n    "is_sms":true,
\n    "app_id": "",
\n    "emaillist":[
\n    {
\n        "email":"demo@gmail.com",
\n        "customer_name":"demo",
\n        "mobile":918707337040,
\n        "sex":"M",
\n        "age":22,
\n        "dob" : "16-10-1996",
\n        "marriage_date":"22-10-2020",
\n        "ip_address":"192.168.1.1",
\n        "isemail":true,
\n        "webpush_status":true,
\n        "sms":true,
\n        "whatsapp":true,
\n        "device_id":"asasa1",
\n        "customer_type":1
\n    }
\n        ]
\n        }
\n');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests
import json

url = "https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key"

payload = json.dumps({
  "name": "testcreate",
  "is_email": True,
  "is_push": False,
  "is_sms": True,
  "app_id": "",
  "emaillist": [
    {
      "email": "demo@gmail.com",
      "customer_name": "demo",
      "mobile": 918707337040,
      "sex": "M",
      "age": 22,
      "dob": "16-10-1996",
      "marriage_date": "22-10-2020",
      "ip_address": "192.168.1.1",
      "isemail": True,
      "webpush_status": True,
      "sms": True,
      "whatsapp": True,
      "device_id": "asasa1",
      "customer_type": 1
    }
  ]
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Nodejs

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://automate.dailymails.org/api/v1/contact/?api_key=your_api_key',
  'headers': {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "name": "testcreate",
    "is_email": true,
    "is_push": false,
    "is_sms": true,
    "app_id": "",
    "emaillist": [
      {
        "email": "demo@gmail.com",
        "customer_name": "demo",
        "mobile": 918707337040,
        "sex": "M",
        "age": 22,
        "dob": "16-10-1996",
        "marriage_date": "22-10-2020",
        "ip_address": "192.168.1.1",
        "isemail": true,
        "webpush_status": true,
        "sms": true,
        "whatsapp": true,
        "device_id": "asasa1",
        "customer_type": 1
      }
    ]
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Update Contact List

Request Method : PUT

Endpoint : https://automate.dailymails.org/api/v1/contact/{id}/?api_key={api_key}

Content-Type : application/json

Parameters

Name

Type

Description

Required

api_key
String
The api key of your account
True
id
String
The contact id of your account
True
contact
Integer
Enter contact id to update data
True
data
List
All the data in this format- [{“key”:”Value”}]
True
uuid
String
Enter UUID (which data update)
True
email
String
Enter Email ID
True
customer_name
String
Enter Customer Name
False
mobile
Integer
Enter Mobile No
True
sex
String
Enter The Gender
False
age
Integer
Enter Age
False
dob
Date Field
Enter The Date of Birth
False
ip_address
String
Enter The Ip Address
False
city
String
Enter City Name
False
country
String
Enter the Country Name
False
isemail
Boolean
Enter The True/False
False
webpush_status
Boolean
Enter The True/False
False
marriage_date
Date Field
Enter The Date of Marriage
False
sms
Boolean
Enter The True/False
False
whatsapp
Boolean
Enter The True/False
False
device_id
String
Enter The token
False
customertype
Integer
Select The 0/1
False
status
String
Enter Status value
False
tags
List
Enter tags
False
attributes
Dictionary
Enter attributes
False
pin_code
String
Enter pin_code
False

Request Body

{
"contact": 153,
"data":[
{
                "uuid": "b9facdbb-11b1-43b3-9e98-8dfcc3746668",
                "email": "demo@gmail.com",
                "customer_name": "demo",
                "mobile": 918707337040,
                "sex": "M",
                "age": 22,
                "dob": "1996-10-16T00:00:00",
                "ip_address": "192.168.1.1",
                "bounsestatus": 0,
                "validation_status": 0,
                "isemail": true,
                "webpush_status": true,
                "marriage_date": "2020-10-22T00:00:00",
                "sms": true,
                "whatsapp": true,
                "dndphone": false,
                "device_id": "asasa1",
                "customer_type": 1,
                "tags": [],
                "attributes": {},
                "status": "home"

}
]
}

Curl

curl --location --request PUT 'https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key'
--header 'Content-Type: application/json' --data-raw '{
"contact": 153,
"data":[
{
                "uuid": "b9facdbb-11b1-43b3-9e98-8dfcc3746668",
                "email": "demo@gmail.com",
                "customer_name": "demo",
                "mobile": 918707337040,
                "sex": "M",
                "age": 22,
                "dob": "1996-10-16T00:00:00",
                "ip_address": "192.168.1.1",
                "bounsestatus": 0,
                "validation_status": 0,
                "isemail": true,
                "webpush_status": true,
                "marriage_date": "2020-10-22T00:00:00",
                "sms": true,
                "whatsapp": true,
                "dndphone": false,
                "device_id": "asasa1",
                "customer_type": 1,
                "tags": [],
                "attributes": {},
                "status": "home"

}
]
}'

Java

Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.put("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key").header("Content-Type", "application/json").body("{\r\n \"contact\": 153,\r\n \"data\":[\r\n {\r\n                        \"uuid\": \"b9facdbb-11b1-43b3-9e98-8dfcc3746668\",\r\n                        \"email\": \"demo@gmail.com\",\r\n                        \"customer_name\": \"demo\",\r\n                        \"mobile\": 918707337040,\r\n                        \"sex\": \"M\",\r\n                        \"age\": 22,\r\n                        \"dob\": \"1996-10-16T00:00:00\",\r\n                        \"ip_address\": \"192.168.1.1\",\r\n                        \"bounsestatus\": 0,\r\n                        \"validation_status\": 0,\r\n                        \"isemail\": true,\r\n                        \"webpush_status\": true,\r\n                        \"marriage_date\": \"2020-10-22T00:00:00\",\r\n                        \"sms\": true,\r\n                        \"whatsapp\": true,\r\n                        \"dndphone\": false,\r\n                        \"device_id\": \"asasa1\",\r\n                        \"customer_type\": 1,\r\n                        \"tags\": [],\r\n                        \"attributes\": {},\r\n                        \"status\": \"home\"\r\n                    \r\n }\r\n ]\r\n }")
  .asString();

C#

var client = new RestClient("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@"    ""contact"": 153,
" + "\n" +
@"    ""data"": [
" + "\n" +
@"        {
" + "\n" +
@"            ""uuid"": ""b9facdbb-11b1-43b3-9e98-8dfcc3746668"",
" + "\n" +
@"            ""email"": ""demo@gmail.com"",
" + "\n" +
@"            ""customer_name"": ""demo"",
" + "\n" +
@"            ""mobile"": 918707337040,
" + "\n" +
@"            ""sex"": ""M"",
" + "\n" +
@"            ""age"": 22,
" + "\n" +
@"            ""dob"": ""1996-10-16T00:00:00"",
" + "\n" +
@"            ""ip_address"": ""192.168.1.1"",
" + "\n" +
@"            ""bounsestatus"": 0,
" + "\n" +
@"            ""validation_status"": 0,
" + "\n" +
@"            ""isemail"": true,
" + "\n" +
@"            ""webpush_status"": true,
" + "\n" +
@"            ""marriage_date"": ""2020-10-22T00:00:00"",
" + "\n" +
@"            ""sms"": true,
" + "\n" +
@"            ""whatsapp"": true,
" + "\n" +
@"            ""dndphone"": false,
" + "\n" +
@"            ""device_id"": ""asasa1"",
" + "\n" +
@"            ""customer_type"": 1,
" + "\n" +
@"            ""tags"": [],
" + "\n" +
@"            ""attributes"": {},
" + "\n" +
@"            ""status"": ""home""
" + "\n" +
@"        }
" + "\n" +
@"    ]
" + "\n" +
@"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Ruby

require "uri"
require "json"
require "net/http"

url = URI("https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Content-Type"] = "application/json"
request.body = JSON.dump({
  "contact": 153,
  "data": [
    {
      "uuid": "b9facdbb-11b1-43b3-9e98-8dfcc3746668",
      "email": "demo@gmail.com",
      "customer_name": "demo",
      "mobile": 918707337040,
      "sex": "M",
      "age": 22,
      "dob": "1996-10-16T00:00:00",
      "ip_address": "192.168.1.1",
      "bounsestatus": 0,
      "validation_status": 0,
      "isemail": true,
      "webpush_status": true,
      "marriage_date": "2020-10-22T00:00:00",
      "sms": true,
      "whatsapp": true,
      "dndphone": false,
      "device_id": "asasa1",
      "customer_type": 1,
      "tags": [],
      "attributes": {},
      "status": "home"
    }
  ]
})

response = https.request(request)
puts response.read_body

Php

<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key');
$request->setMethod(HTTP_Request2::METHOD_PUT);
$request->setConfig(array(
  'follow_redirects' => TRUE
));
$request->setHeader(array(
  'Content-Type' => 'application/json'
));
$request->setBody('{
\n "contact": 153,
\n "data":[
\n {
\n                        "uuid": "b9facdbb-11b1-43b3-9e98-8dfcc3746668",
\n                        "email": "demo@gmail.com",
\n                        "customer_name": "demo",
\n                        "mobile": 918707337040,
\n                        "sex": "M",
\n                        "age": 22,
\n                        "dob": "1996-10-16T00:00:00",
\n                        "ip_address": "192.168.1.1",
\n                        "bounsestatus": 0,
\n                        "validation_status": 0,
\n                        "isemail": true,
\n                        "webpush_status": true,
\n                        "marriage_date": "2020-10-22T00:00:00",
\n                        "sms": true,
\n                        "whatsapp": true,
\n                        "dndphone": false,
\n                        "device_id": "asasa1",
\n                        "customer_type": 1,
\n                        "tags": [],
\n                        "attributes": {},
\n                        "status": "home"
\n
\n }
\n ]
\n }');
try {
  $response = $request->send();
  if ($response->getStatus() == 200) {
    echo $response->getBody();
  }
  else {
    echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
    $response->getReasonPhrase();
  }
}
catch(HTTP_Request2_Exception $e) {
  echo 'Error: ' . $e->getMessage();
}

Python

import requests
import json

url = "https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key"

payload = json.dumps({
  "contact": 153,
  "data": [
    {
      "uuid": "b9facdbb-11b1-43b3-9e98-8dfcc3746668",
      "email": "demo@gmail.com",
      "customer_name": "demo",
      "mobile": 918707337040,
      "sex": "M",
      "age": 22,
      "dob": "1996-10-16T00:00:00",
      "ip_address": "192.168.1.1",
      "bounsestatus": 0,
      "validation_status": 0,
      "isemail": True,
      "webpush_status": True,
      "marriage_date": "2020-10-22T00:00:00",
      "sms": True,
      "whatsapp": True,
      "dndphone": False,
      "device_id": "asasa1",
      "customer_type": 1,
      "tags": [],
      "attributes": {},
      "status": "home"
    }
  ]
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)

Nodejs

var request = require('request');
var options = {
  'method': 'PUT',
  'url': 'https://automate.dailymails.org/api/v1/contact/{id}/?api_key=your_api_key',
  'headers': {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "contact": 153,
    "data": [
      {
        "uuid": "b9facdbb-11b1-43b3-9e98-8dfcc3746668",
        "email": "demo@gmail.com",
        "customer_name": "demo",
        "mobile": 918707337040,
        "sex": "M",
        "age": 22,
        "dob": "1996-10-16T00:00:00",
        "ip_address": "192.168.1.1",
        "bounsestatus": 0,
        "validation_status": 0,
        "isemail": true,
        "webpush_status": true,
        "marriage_date": "2020-10-22T00:00:00",
        "sms": true,
        "whatsapp": true,
        "dndphone": false,
        "device_id": "asasa1",
        "customer_type": 1,
        "tags": [],
        "attributes": {},
        "status": "home"
      }
    ]
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});