Skip to main content
GET
/
hierarchy
Get Hierarchy
curl --request GET \
  --url https://api.politicalcomms.com/v1/hierarchy \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": {
    "id": "org_root",
    "display_name": "Smith Campaign 2024",
    "brands": [
      {
        "id": "brand_abc123",
        "brand_name": "Smith PAC",
        "campaigns": [
          {
            "id": "camp_xyz789",
            "name": "Fall 2025 GOTV"
          }
        ]
      }
    ],
    "children": [
      {
        "id": "org_child_1",
        "display_name": "Regional Office East",
        "brands": [],
        "children": []
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.politicalcomms.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.

Query Parameters

organizationId
string

Filter to a specific descendant organization

Response

Successful response