List Tags
curl --request GET \
--url https://api.politicalcomms.com/v1/tags \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/tags"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.politicalcomms.com/v1/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_URL => "https://api.politicalcomms.com/v1/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.politicalcomms.com/v1/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.politicalcomms.com/v1/tags")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "5b1f3c2e-7a94-4d08-8e61-2c9d4f7a1b35",
"name": "Door knockers",
"kind": "manual",
"activity_event": null,
"within_days": null,
"member_count": 412,
"member_count_capped": false,
"created_at": "2026-11-17T14:02:11.000Z",
"organization_id": "9d2e6a40-1c73-4b58-a0f9-3e8b5c7d2a16"
},
{
"id": "c84a1e07-3d5b-4f92-b6a0-7e2d9c1f5a48",
"name": "Donated in the last 30 days",
"kind": "activity",
"activity_event": "donated",
"within_days": 30,
"member_count": null,
"member_count_capped": false,
"created_at": "2026-11-17T14:05:40.000Z",
"organization_id": "9d2e6a40-1c73-4b58-a0f9-3e8b5c7d2a16"
}
]
}Tags
List Tags
List an organization’s contact tags, sorted by name. The list is not paginated. Send organization_id to read a descendant organization’s tags.
GET
/
tags
List Tags
curl --request GET \
--url https://api.politicalcomms.com/v1/tags \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/tags"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.politicalcomms.com/v1/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_URL => "https://api.politicalcomms.com/v1/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.politicalcomms.com/v1/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.politicalcomms.com/v1/tags")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "5b1f3c2e-7a94-4d08-8e61-2c9d4f7a1b35",
"name": "Door knockers",
"kind": "manual",
"activity_event": null,
"within_days": null,
"member_count": 412,
"member_count_capped": false,
"created_at": "2026-11-17T14:02:11.000Z",
"organization_id": "9d2e6a40-1c73-4b58-a0f9-3e8b5c7d2a16"
},
{
"id": "c84a1e07-3d5b-4f92-b6a0-7e2d9c1f5a48",
"name": "Donated in the last 30 days",
"kind": "activity",
"activity_event": "donated",
"within_days": 30,
"member_count": null,
"member_count_capped": false,
"created_at": "2026-11-17T14:05:40.000Z",
"organization_id": "9d2e6a40-1c73-4b58-a0f9-3e8b5c7d2a16"
}
]
}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.
