Add tags to contact
curl --request POST \
--url http://localhost:4000/api/v1/contacts/{id}/tags \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"tags": [
"VIP",
"Hot Lead"
]
}
'import requests
url = "http://localhost:4000/api/v1/contacts/{id}/tags"
payload = { "tags": ["VIP", "Hot Lead"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tags: ['VIP', 'Hot Lead']})
};
fetch('http://localhost:4000/api/v1/contacts/{id}/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/api/v1/contacts/{id}/tags",
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([
'tags' => [
'VIP',
'Hot Lead'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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 := "http://localhost:4000/api/v1/contacts/{id}/tags"
payload := strings.NewReader("{\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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("http://localhost:4000/api/v1/contacts/{id}/tags")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/api/v1/contacts/{id}/tags")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": "cm3abc123contact",
"ig_username": "sarah_coach",
"ig_id": "17841400000000001",
"name": "Sarah Jenkins",
"email": "sarah@example.com",
"phone": "+14155552671",
"followers_count": 14200,
"following_count": 420,
"qualification_score": 88,
"qualification_summary": "High-intent coaching business owner looking for Q2 scaling.",
"is_qualified": true,
"status": "Qualified",
"tags": [
"VIP",
"High Budget"
],
"assigned_to": null,
"last_interaction": "2026-04-10T14:22:00.000Z",
"created_at": "2026-04-01T09:15:00.000Z"
}
}Add tags to contact
POST
/
api
/
v1
/
contacts
/
{id}
/
tags
Add tags to contact
curl --request POST \
--url http://localhost:4000/api/v1/contacts/{id}/tags \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"tags": [
"VIP",
"Hot Lead"
]
}
'import requests
url = "http://localhost:4000/api/v1/contacts/{id}/tags"
payload = { "tags": ["VIP", "Hot Lead"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tags: ['VIP', 'Hot Lead']})
};
fetch('http://localhost:4000/api/v1/contacts/{id}/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/api/v1/contacts/{id}/tags",
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([
'tags' => [
'VIP',
'Hot Lead'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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 := "http://localhost:4000/api/v1/contacts/{id}/tags"
payload := strings.NewReader("{\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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("http://localhost:4000/api/v1/contacts/{id}/tags")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/api/v1/contacts/{id}/tags")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tags\": [\n \"VIP\",\n \"Hot Lead\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": "cm3abc123contact",
"ig_username": "sarah_coach",
"ig_id": "17841400000000001",
"name": "Sarah Jenkins",
"email": "sarah@example.com",
"phone": "+14155552671",
"followers_count": 14200,
"following_count": 420,
"qualification_score": 88,
"qualification_summary": "High-intent coaching business owner looking for Q2 scaling.",
"is_qualified": true,
"status": "Qualified",
"tags": [
"VIP",
"High Budget"
],
"assigned_to": null,
"last_interaction": "2026-04-10T14:22:00.000Z",
"created_at": "2026-04-01T09:15:00.000Z"
}
}