Sendible API

Contacts

Update Contact

Open in API Explorer
PUT /v1/contact.json

Update an existing contact.

Example Request

Format:
curl --request PUT \
  --url 'https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1' \
  --header 'accept: application/json' \
  --header 'authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l' \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001'
require 'uri'
require 'net/http'

url = URI("https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "PUT",
  "hostname": "api.sendible.com",
  "port": null,
  "path": "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1",
  "headers": {
    "accept": "application/json",
    "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    "content-type": "multipart/form-data; boundary=---011000010111000001101001"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.sendible.com")

payload = ""

headers = {
    'accept': "application/json",
    'authorization': "Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    'content-type': "multipart/form-data; boundary=---011000010111000001101001"
    }

conn.request("PUT", "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    "content-type: multipart/form-data; boundary=---011000010111000001101001"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Basic QWxhZGRpbjpPcGVuU2VzYW1l")
	req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Query Parameters

Name Type Required Description Example
application_id String Required

Your developer application id. This was provided to you via email.

4b634537cc392cca820b61dab08
contact_id Number Required

The contact id for the contact being updated.

1001
first_name String Required

First name of the user being created.

Jane
last_name String Required

Last name of the user being created.

Doe
email String Optional

Email address for the user being created.

jane%40doe.com
cellphone String Optional

Cellphone number for the user being created.

07000+000000
birthday String Optional

The birthday date for the user being created.

27%2F10%2F1982
sex String Optional

The sex of the user being created.

Male
city String Optional

City for the user being created.

London
country String Optional

Country for the user being created.

United+Kingdom
zip String Optional

Zip code for the user being created

72716
state String Optional

State for the user being created.

Florida
occupation String Optional

Occupation for the user being created.

Web+developer
addressline1 String Optional

First line of the address for the user being created.

200+E+Main+Street+Phoenix+AZ+85123+USA
addressline2 String Optional

Second line of the address for the user being created.

Appartment+3
fax String Optional

Fax number for the user being created.

020+0000+0000
company String Optional

Company name for the user being created.

Acme+solutions
tel String Optional

Telephone number for the user being created.

020+0000+0000
image_url String Optional

The contact's avatar/profile URL.

http%3A%2F%2Fdummyimage.com%2F300%2F09f.png
notes String Optional

Notes about this contact.

An+example+note
lead_source String Optional

Possible values are Google AdWords, Google (organic), Other Search Engines, Social

Social
contact_type String Optional

Possible values are Lead, Account, Opportunity.

Account
owner_id Number Optional

The Sendible user ID that owns this contact.

100001
preference String Optional

Type preference for contact method. Possible values are Email, SMS

Email
bio String Optional

The contact's bio information.

Bio
website_url String Optional

A website URL associated with the user being created.

http%3A%2F%2Fwww.example.com
unsubscribed Number Optional

Indicates whether or not this contact has unsubscribed from further communications. Possible values are 1, 0

1

Responses

default Default

Unknown

(Empty Response)

Delete Contact

Open in API Explorer
DELETE /v1/contact.json

Delete an existing contact.

Example Request

Format:
curl --request DELETE \
  --url 'https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001' \
  --header 'accept: application/json' \
  --header 'authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l'
require 'uri'
require 'net/http'

url = URI("https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "DELETE",
  "hostname": "api.sendible.com",
  "port": null,
  "path": "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001",
  "headers": {
    "accept": "application/json",
    "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1l"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.sendible.com")

headers = {
    'accept': "application/json",
    'authorization': "Basic QWxhZGRpbjpPcGVuU2VzYW1l"
    }

conn.request("DELETE", "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=1001"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Basic QWxhZGRpbjpPcGVuU2VzYW1l")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Query Parameters

Name Type Required Description Example
application_id String Required

Your developer application id. This was provided to you via email.

4b634537cc392cca820b61dab08
contact_id Number Required

The ID of the contact to be deleted.

1001

Responses

default Default

Unknown

(Empty Response)

Create Contact

Open in API Explorer
POST /v1/contact.json

Create a new contact.

Example Request

Format:
curl --request POST \
  --url 'https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1' \
  --header 'accept: application/json' \
  --header 'authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l' \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001'
require 'uri'
require 'net/http'

url = URI("https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "api.sendible.com",
  "port": null,
  "path": "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1",
  "headers": {
    "accept": "application/json",
    "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    "content-type": "multipart/form-data; boundary=---011000010111000001101001"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.sendible.com")

payload = ""

headers = {
    'accept': "application/json",
    'authorization': "Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    'content-type': "multipart/form-data; boundary=---011000010111000001101001"
    }

conn.request("POST", "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    "content-type: multipart/form-data; boundary=---011000010111000001101001"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&first_name=Jane&last_name=Doe&email=jane%40doe.com&cellphone=07000%20000000&birthday=27%2F10%2F1982&sex=Male&city=London&country=United%20Kingdom&zip=72716&state=Florida&occupation=Web%20developer&addressline1=200%20E%20Main%20Street%20Phoenix%20AZ%2085123%20USA&addressline2=Appartment%203&fax=020%200000%200000&company=Acme%20solutions&tel=020%200000%200000&image_url=http%3A%2F%2Fdummyimage.com%2F300%2F09f.png&notes=An%20example%20note&lead_source=Social&contact_type=Account&owner_id=100001&preference=Email&bio=Bio&website_url=http%3A%2F%2Fwww.example.com&unsubscribed=1"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Basic QWxhZGRpbjpPcGVuU2VzYW1l")
	req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Query Parameters

Name Type Required Description Example
application_id String Required

Your developer application id. This was provided to you via email.

4b634537cc392cca820b61dab08
first_name String Required

First name of the user being created.

Jane
last_name String Required

Last name of the user being created.

Doe
email String Optional

Email address for the user being created.

jane%40doe.com
cellphone String Optional

Cellphone number for the user being created.

07000+000000
birthday String Optional

The birthday date for the user being created.

27%2F10%2F1982
sex String Optional

The sex of the user being created.

Male
city String Optional

City for the user being created.

London
country String Optional

Country for the user being created.

United+Kingdom
zip String Optional

Zip code for the user being created

72716
state String Optional

State for the user being created.

Florida
occupation String Optional

Occupation for the user being created.

Web+developer
addressline1 String Optional

First line of the address for the user being created.

200+E+Main+Street+Phoenix+AZ+85123+USA
addressline2 String Optional

Second line of the address for the user being created.

Appartment+3
fax String Optional

Fax number for the user being created.

020+0000+0000
company String Optional

Company name for the user being created.

Acme+solutions
tel String Optional

Telephone number for the user being created.

020+0000+0000
image_url String Optional

The contact's avatar/profile URL.

http%3A%2F%2Fdummyimage.com%2F300%2F09f.png
notes String Optional

Notes about this contact.

An+example+note
lead_source String Optional

Possible values are Google AdWords, Google (organic), Other Search Engines, Social

Social
contact_type String Optional

Possible values are Lead, Account, Opportunity.

Account
owner_id Number Optional

The Sendible user ID that owns this contact.

100001
preference String Optional

Type preference for contact method. Possible values are Email, SMS

Email
bio String Optional

The contact's bio information.

Bio
website_url String Optional

A website URL associated with the user being created.

http%3A%2F%2Fwww.example.com
unsubscribed Number Optional

Indicates whether or not this contact has unsubscribed from further communications. Possible values are 1, 0

1

Responses

default Default

Unknown

(Empty Response)

Get Contact

Open in API Explorer
GET /v1/contact.json

Retrieve an existing contact.

Example Request

Format:
curl --request GET \
  --url 'https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=10001' \
  --header 'accept: application/json' \
  --header 'authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l'
require 'uri'
require 'net/http'

url = URI("https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=10001")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.sendible.com",
  "port": null,
  "path": "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=10001",
  "headers": {
    "accept": "application/json",
    "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1l"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.sendible.com")

headers = {
    'accept': "application/json",
    'authorization': "Basic QWxhZGRpbjpPcGVuU2VzYW1l"
    }

conn.request("GET", "/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=10001", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=10001",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.sendible.com/api/v1/contact.json?application_id=4b634537cc392cca820b61dab08&contact_id=10001"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Basic QWxhZGRpbjpPcGVuU2VzYW1l")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Query Parameters

Name Type Required Description Example
application_id String Required

Your developer application id. This was provided to you via email.

4b634537cc392cca820b61dab08
contact_id Number Required

The contact id.

10001

Responses

default Default

Unknown

(Empty Response)

Create Contact Field

Open in API Explorer
POST /v1/contact_field.json

Create or update a custom field and set its value for a given contact.

Example Request

Format:
curl --request POST \
  --url 'https://api.sendible.com/api/v1/contact_field.json?application_id=4b634537cc392cca820b61dab08&contact_id=100001&field_name=anniversary&field_value=25%2F10%2F2010&field_type=password' \
  --header 'accept: application/json' \
  --header 'authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l' \
  --header 'content-type: multipart/form-data; boundary=---011000010111000001101001'
require 'uri'
require 'net/http'

url = URI("https://api.sendible.com/api/v1/contact_field.json?application_id=4b634537cc392cca820b61dab08&contact_id=100001&field_name=anniversary&field_value=25%2F10%2F2010&field_type=password")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'
request["content-type"] = 'multipart/form-data; boundary=---011000010111000001101001'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "api.sendible.com",
  "port": null,
  "path": "/api/v1/contact_field.json?application_id=4b634537cc392cca820b61dab08&contact_id=100001&field_name=anniversary&field_value=25%2F10%2F2010&field_type=password",
  "headers": {
    "accept": "application/json",
    "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    "content-type": "multipart/form-data; boundary=---011000010111000001101001"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.sendible.com")

payload = ""

headers = {
    'accept': "application/json",
    'authorization': "Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    'content-type': "multipart/form-data; boundary=---011000010111000001101001"
    }

conn.request("POST", "/api/v1/contact_field.json?application_id=4b634537cc392cca820b61dab08&contact_id=100001&field_name=anniversary&field_value=25%2F10%2F2010&field_type=password", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.sendible.com/api/v1/contact_field.json?application_id=4b634537cc392cca820b61dab08&contact_id=100001&field_name=anniversary&field_value=25%2F10%2F2010&field_type=password",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l",
    "content-type: multipart/form-data; boundary=---011000010111000001101001"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.sendible.com/api/v1/contact_field.json?application_id=4b634537cc392cca820b61dab08&contact_id=100001&field_name=anniversary&field_value=25%2F10%2F2010&field_type=password"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Basic QWxhZGRpbjpPcGVuU2VzYW1l")
	req.Header.Add("content-type", "multipart/form-data; boundary=---011000010111000001101001")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Query Parameters

Name Type Required Description Example
application_id String Required

Your developer application id. This was provided to you via email.

4b634537cc392cca820b61dab08
contact_id Number Required

ID of the contact you're creating a custom field for.

100001
field_name String Required

Name of the custom field being created.

anniversary
field_value String Required

The value of the field_name that you would like to set.

25%2F10%2F2010
field_type String Optional

The type of field that will be created. Possible values are text, password, date.

password

Responses

default Default

Unknown

(Empty Response)

Get List Of Contacts

Open in API Explorer
GET /v2/contacts.json

Retrieve a list of contacts associated with the authenticated user's account.

Example Request

Format:
curl --request GET \
  --url 'https://api.sendible.com/api/v2/contacts.json?application_id=4b634537cc392cca820b61dab08&page=1&per_page=10&contact_info=email' \
  --header 'accept: application/json' \
  --header 'authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l'
require 'uri'
require 'net/http'

url = URI("https://api.sendible.com/api/v2/contacts.json?application_id=4b634537cc392cca820b61dab08&page=1&per_page=10&contact_info=email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "api.sendible.com",
  "port": null,
  "path": "/api/v2/contacts.json?application_id=4b634537cc392cca820b61dab08&page=1&per_page=10&contact_info=email",
  "headers": {
    "accept": "application/json",
    "authorization": "Basic QWxhZGRpbjpPcGVuU2VzYW1l"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("api.sendible.com")

headers = {
    'accept': "application/json",
    'authorization': "Basic QWxhZGRpbjpPcGVuU2VzYW1l"
    }

conn.request("GET", "/api/v2/contacts.json?application_id=4b634537cc392cca820b61dab08&page=1&per_page=10&contact_info=email", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.sendible.com/api/v2/contacts.json?application_id=4b634537cc392cca820b61dab08&page=1&per_page=10&contact_info=email",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.sendible.com/api/v2/contacts.json?application_id=4b634537cc392cca820b61dab08&page=1&per_page=10&contact_info=email"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("accept", "application/json")
	req.Header.Add("authorization", "Basic QWxhZGRpbjpPcGVuU2VzYW1l")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Query Parameters

Name Type Required Description Example
application_id String Required

Your developer application id. This was provided to you via email.

4b634537cc392cca820b61dab08
page Number Optional

The page number to retrieve

1
per_page Number Optional

The number of results to return per page.

10
contact_info String Optional

Filter results by the type of contact. Possible values are: email, sms

email

Responses

default Default

Unknown

(Empty Response)