cURL
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": [] } ] } }
Get the full organization hierarchy with brands and campaigns.
Documentation IndexFetch the complete documentation index at: https://docs.politicalcomms.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.politicalcomms.com/llms.txt
Use this file to discover all available pages before exploring further.
Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.
Filter to a specific descendant organization
Successful response