Contacts
Bulk import contacts
Import up to 100 contacts in one call. Each row goes through the same email/phone upsert as POST /contacts, so re-importing the same file is idempotent. Per-row results report created / updated / failed. Requires scope contacts:write.
POST
/
contacts
/
bulk
Bulk import contacts
curl --request POST \
--url https://api.smartlyq.com/v1/contacts/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"name": "Ada Lovelace",
"email": "[email protected]",
"tags": [
"vip"
]
},
{
"name": "Alan Turing",
"email": "[email protected]"
}
]
}
'import requests
url = "https://api.smartlyq.com/v1/contacts/bulk"
payload = { "contacts": [
{
"name": "Ada Lovelace",
"email": "[email protected]",
"tags": ["vip"]
},
{
"name": "Alan Turing",
"email": "[email protected]"
}
] }
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: [
{name: 'Ada Lovelace', email: '[email protected]', tags: ['vip']},
{name: 'Alan Turing', email: '[email protected]'}
]
})
};
fetch('https://api.smartlyq.com/v1/contacts/bulk', 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.smartlyq.com/v1/contacts/bulk",
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' => [
[
'name' => 'Ada Lovelace',
'email' => '[email protected]',
'tags' => [
'vip'
]
],
[
'name' => 'Alan Turing',
'email' => '[email protected]'
]
]
]),
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.smartlyq.com/v1/contacts/bulk"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"name\": \"Ada Lovelace\",\n \"email\": \"[email protected]\",\n \"tags\": [\n \"vip\"\n ]\n },\n {\n \"name\": \"Alan Turing\",\n \"email\": \"[email protected]\"\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.smartlyq.com/v1/contacts/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"name\": \"Ada Lovelace\",\n \"email\": \"[email protected]\",\n \"tags\": [\n \"vip\"\n ]\n },\n {\n \"name\": \"Alan Turing\",\n \"email\": \"[email protected]\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartlyq.com/v1/contacts/bulk")
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 \"name\": \"Ada Lovelace\",\n \"email\": \"[email protected]\",\n \"tags\": [\n \"vip\"\n ]\n },\n {\n \"name\": \"Alan Turing\",\n \"email\": \"[email protected]\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"created": 8,
"updated": 2,
"failed": 0,
"results": [
{
"row": 1,
"id": 128,
"created": true,
"matched_by": "example-matched-by",
"error": "example-error"
}
]
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Missing or malformed Authorization header",
"details": {}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Missing required fields: content, platforms.",
"details": {
"fields": [
"content",
"platforms"
]
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}Previous
List contactsList CRM contacts in the workspace. Supports `search`, `tag` and `status` filters plus pagination.
Next
⌘I
Bulk import contacts
curl --request POST \
--url https://api.smartlyq.com/v1/contacts/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"name": "Ada Lovelace",
"email": "[email protected]",
"tags": [
"vip"
]
},
{
"name": "Alan Turing",
"email": "[email protected]"
}
]
}
'import requests
url = "https://api.smartlyq.com/v1/contacts/bulk"
payload = { "contacts": [
{
"name": "Ada Lovelace",
"email": "[email protected]",
"tags": ["vip"]
},
{
"name": "Alan Turing",
"email": "[email protected]"
}
] }
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: [
{name: 'Ada Lovelace', email: '[email protected]', tags: ['vip']},
{name: 'Alan Turing', email: '[email protected]'}
]
})
};
fetch('https://api.smartlyq.com/v1/contacts/bulk', 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.smartlyq.com/v1/contacts/bulk",
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' => [
[
'name' => 'Ada Lovelace',
'email' => '[email protected]',
'tags' => [
'vip'
]
],
[
'name' => 'Alan Turing',
'email' => '[email protected]'
]
]
]),
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.smartlyq.com/v1/contacts/bulk"
payload := strings.NewReader("{\n \"contacts\": [\n {\n \"name\": \"Ada Lovelace\",\n \"email\": \"[email protected]\",\n \"tags\": [\n \"vip\"\n ]\n },\n {\n \"name\": \"Alan Turing\",\n \"email\": \"[email protected]\"\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.smartlyq.com/v1/contacts/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": [\n {\n \"name\": \"Ada Lovelace\",\n \"email\": \"[email protected]\",\n \"tags\": [\n \"vip\"\n ]\n },\n {\n \"name\": \"Alan Turing\",\n \"email\": \"[email protected]\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartlyq.com/v1/contacts/bulk")
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 \"name\": \"Ada Lovelace\",\n \"email\": \"[email protected]\",\n \"tags\": [\n \"vip\"\n ]\n },\n {\n \"name\": \"Alan Turing\",\n \"email\": \"[email protected]\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"created": 8,
"updated": 2,
"failed": 0,
"results": [
{
"row": 1,
"id": 128,
"created": true,
"matched_by": "example-matched-by",
"error": "example-error"
}
]
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Missing or malformed Authorization header",
"details": {}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Missing required fields: content, platforms.",
"details": {
"fields": [
"content",
"platforms"
]
}
},
"meta": {
"request_id": "req_9f3a2b1c-7d4e-4a08-b2c6-5e1f8a9d0c34",
"timestamp": "2026-07-26T09:41:22Z"
}
}
