curl --request DELETE \
--url https://api.politicalcomms.com/v1/tags/contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Door knockers",
"identifiers": [
"+12025550141"
]
}
'import requests
url = "https://api.politicalcomms.com/v1/tags/contacts"
payload = {
"name": "Door knockers",
"identifiers": ["+12025550141"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Door knockers', identifiers: ['+12025550141']})
};
fetch('https://api.politicalcomms.com/v1/tags/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.politicalcomms.com/v1/tags/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Door knockers',
'identifiers' => [
'+12025550141'
]
]),
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 := "https://api.politicalcomms.com/v1/tags/contacts"
payload := strings.NewReader("{\n \"name\": \"Door knockers\",\n \"identifiers\": [\n \"+12025550141\"\n ]\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://api.politicalcomms.com/v1/tags/contacts")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Door knockers\",\n \"identifiers\": [\n \"+12025550141\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/tags/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Door knockers\",\n \"identifiers\": [\n \"+12025550141\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tag": {
"id": "5b1f3c2e-7a94-4d08-8e61-2c9d4f7a1b35",
"name": "Door knockers",
"kind": "manual",
"activity_event": null,
"within_days": null,
"member_count": 1,
"member_count_capped": false,
"created_at": "2026-11-17T14:02:11.000Z",
"organization_id": "9d2e6a40-1c73-4b58-a0f9-3e8b5c7d2a16"
},
"removed": 1,
"not_tagged": 0,
"invalid": 0
}
}Remove Contacts from Tag by Name
Take a manual tag off contacts by the tag’s name. The body is the same as for adding: the name and exactly one of identifiers or contact_list_id. Removing never creates a tag: a name with no tag returns 404 NOT_FOUND. Valid identifiers that did not carry the tag are counted in not_tagged. Identifiers are applied at once and the response carries counts. A contact list is untagged in the background: the call returns 202 with queued and job_id and no counts, and the tag’s member_count on GET /tags updates when the job finishes. A name only an activity carries returns 404 NOT_FOUND. Requires an API key with the public:delete permission (and public:write); other keys get a 403. This call takes no fire_triggers: sending it returns 400.
curl --request DELETE \
--url https://api.politicalcomms.com/v1/tags/contacts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "Door knockers",
"identifiers": [
"+12025550141"
]
}
'import requests
url = "https://api.politicalcomms.com/v1/tags/contacts"
payload = {
"name": "Door knockers",
"identifiers": ["+12025550141"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Door knockers', identifiers: ['+12025550141']})
};
fetch('https://api.politicalcomms.com/v1/tags/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.politicalcomms.com/v1/tags/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Door knockers',
'identifiers' => [
'+12025550141'
]
]),
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 := "https://api.politicalcomms.com/v1/tags/contacts"
payload := strings.NewReader("{\n \"name\": \"Door knockers\",\n \"identifiers\": [\n \"+12025550141\"\n ]\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://api.politicalcomms.com/v1/tags/contacts")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Door knockers\",\n \"identifiers\": [\n \"+12025550141\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/tags/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Door knockers\",\n \"identifiers\": [\n \"+12025550141\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tag": {
"id": "5b1f3c2e-7a94-4d08-8e61-2c9d4f7a1b35",
"name": "Door knockers",
"kind": "manual",
"activity_event": null,
"within_days": null,
"member_count": 1,
"member_count_capped": false,
"created_at": "2026-11-17T14:02:11.000Z",
"organization_id": "9d2e6a40-1c73-4b58-a0f9-3e8b5c7d2a16"
},
"removed": 1,
"not_tagged": 0,
"invalid": 0
}
}Authorizations
Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy. A key carries up to three permissions: public:read for GET requests, public:write for POST, PATCH, and PUT requests, and public:delete for DELETE requests. public:delete is only available together with public:write.
Headers
Optional idempotency key: a unique string of 16-200 printable ASCII characters (a UUID is recommended). Retrying the write with the same key within 24 hours returns the stored response of the first call with an X-Idempotent-Replayed: true response header instead of executing it again. Reusing a key with a different request body returns 422 (IDEMPOTENCY_MISMATCH); a duplicate sent while the first call is still running returns 409 with a Retry-After header. Keys are scoped per endpoint and organization.
16 - 200Body
- Identifiers
- Contact list
