Add members
curl --request POST \
--url https://api.verbose.cx/v1/lists/{id}/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"phone": "+15551234567",
"first_name": "Jo",
"last_name": "Rivera",
"source": "acme.com"
}
]
}
'import requests
url = "https://api.verbose.cx/v1/lists/{id}/contacts"
payload = { "contacts": [
{
"phone": "+15551234567",
"first_name": "Jo",
"last_name": "Rivera",
"source": "acme.com"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: [
{
phone: '+15551234567',
first_name: 'Jo',
last_name: 'Rivera',
source: 'acme.com'
}
]
})
};
fetch('https://api.verbose.cx/v1/lists/{id}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.verbose.cx/v1/lists/{id}/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contacts' => [
[
'phone' => '+15551234567',
'first_name' => 'Jo',
'last_name' => 'Rivera',
'source' => 'acme.com'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.verbose.cx/v1/lists/{id}/contacts"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"phone\": \"+15551234567\",\n \"first_name\": \"Jo\",\n \"last_name\": \"Rivera\",\n \"source\": \"acme.com\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.verbose.cx/v1/lists/{id}/contacts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"phone\": \"+15551234567\",\n \"first_name\": \"Jo\",\n \"last_name\": \"Rivera\",\n \"source\": \"acme.com\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbose.cx/v1/lists/{id}/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contacts\": [\n {\n \"phone\": \"+15551234567\",\n \"first_name\": \"Jo\",\n \"last_name\": \"Rivera\",\n \"source\": \"acme.com\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"added": 25
}{
"ok": false,
"error": "list_id is required"
}{
"ok": false,
"error": "Invalid or missing API key"
}{
"ok": false,
"error": "This API key cannot create and edit.",
"required_scope": "write"
}{
"ok": false,
"error": "Not found"
}Lists
Add members
Adds existing contacts to the list by id (contacts: an array of contact ids). To add brand-new people in one call, create them with POST /v1/contacts and pass list_id — that upserts and adds them together.
POST
/
v1
/
lists
/
{id}
/
contacts
Add members
curl --request POST \
--url https://api.verbose.cx/v1/lists/{id}/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"phone": "+15551234567",
"first_name": "Jo",
"last_name": "Rivera",
"source": "acme.com"
}
]
}
'import requests
url = "https://api.verbose.cx/v1/lists/{id}/contacts"
payload = { "contacts": [
{
"phone": "+15551234567",
"first_name": "Jo",
"last_name": "Rivera",
"source": "acme.com"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: [
{
phone: '+15551234567',
first_name: 'Jo',
last_name: 'Rivera',
source: 'acme.com'
}
]
})
};
fetch('https://api.verbose.cx/v1/lists/{id}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.verbose.cx/v1/lists/{id}/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'contacts' => [
[
'phone' => '+15551234567',
'first_name' => 'Jo',
'last_name' => 'Rivera',
'source' => 'acme.com'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.verbose.cx/v1/lists/{id}/contacts"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"phone\": \"+15551234567\",\n \"first_name\": \"Jo\",\n \"last_name\": \"Rivera\",\n \"source\": \"acme.com\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.verbose.cx/v1/lists/{id}/contacts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"phone\": \"+15551234567\",\n \"first_name\": \"Jo\",\n \"last_name\": \"Rivera\",\n \"source\": \"acme.com\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbose.cx/v1/lists/{id}/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contacts\": [\n {\n \"phone\": \"+15551234567\",\n \"first_name\": \"Jo\",\n \"last_name\": \"Rivera\",\n \"source\": \"acme.com\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"added": 25
}{
"ok": false,
"error": "list_id is required"
}{
"ok": false,
"error": "Invalid or missing API key"
}{
"ok": false,
"error": "This API key cannot create and edit.",
"required_scope": "write"
}{
"ok": false,
"error": "Not found"
}Authorizations
Your API key (as_live_…), created under Settings → API keys.
Path Parameters
The resource's unique id (UUID).
Body
application/json
Show child attributes
Show child attributes
Was this page helpful?