Get council data for Zapier
curl --request GET \
--url https://{domain}/wp-json/sagescreen/v1/zapier/council/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}', 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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}",
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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
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": {
"post_id": 123,
"council_id": "c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6",
"council_name": "Greenville City Council",
"status": "ss_active",
"created": "2024-01-15T10:30:00",
"modified": "2024-02-19T15:45:00",
"council_type": "enterprise",
"email_header": "Greenville HR",
"email_body": "Please complete your SageScreen",
"email_subject": "Your SageScreen Invitation",
"email_from": "HR Department",
"email_from_address": "hr@greenville.gov",
"support_link": "https://greenville.gov/hr",
"support_phone": "18005551234",
"custom_url": "greenville",
"branding_addon": "1",
"url_addon": "1",
"branding_expire_date": "2025-12-31",
"custom_url_expire_date": "2025-12-31",
"branding_renew": "1",
"custom_url_renew": "1",
"credits_remaining": 50,
"credits_used_total": 25,
"credits_used_current": 10,
"sage_credits": 5,
"sage_credits_used_total": 2,
"pack_expire": "2025-06-30",
"sub_renew": "2025-03-01",
"credit_override": "",
"credit_rewind": "",
"credit_advanced_screen": "",
"credit_core_screen": "",
"credit_lite_screen": "",
"credit_sage": "",
"credit_system_sage": "",
"credit_branding": "",
"credit_custom_domain": "",
"credit_addon_language": "",
"credit_addon_audio": "",
"ss_phone": "18005551234",
"address_line1": "123 Main St",
"address_line2": "Suite 100",
"address_city": "Greenville",
"address_state": "SC",
"address_postal_code": "29601",
"address_country": "US",
"datetime_format": "m/d/Y",
"css": "",
"logo": "",
"stripe_customer_id": "cus_ABC123",
"stripe_subscription_id": "sub_DEF456",
"pipedrive_company_id": "12345",
"users": [
{
"user_id": 456,
"actor_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane@greenville.gov",
"role": "council_admin"
}
]
}
}{
"code": "invalid_api_key",
"message": "Invalid or missing API key",
"data": {
"status": 401
}
}{
"code": "council_not_found",
"message": "Council not found",
"data": {
"status": 404
}
}{
"code": "api_not_configured",
"message": "Zapier API key not configured",
"data": {
"status": 500
}
}Council – REST
Get council data for Zapier
Returns full council data including all meta fields, status, and a list of council users with their roles.
Accepts numeric WordPress post ID or council UUID (council_id meta).
Requires the X-API-Key header (Zapier API key).
GET
/
zapier
/
council
/
{id}
Get council data for Zapier
curl --request GET \
--url https://{domain}/wp-json/sagescreen/v1/zapier/council/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}', 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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}",
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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}"
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://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/zapier/council/{id}")
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": {
"post_id": 123,
"council_id": "c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6",
"council_name": "Greenville City Council",
"status": "ss_active",
"created": "2024-01-15T10:30:00",
"modified": "2024-02-19T15:45:00",
"council_type": "enterprise",
"email_header": "Greenville HR",
"email_body": "Please complete your SageScreen",
"email_subject": "Your SageScreen Invitation",
"email_from": "HR Department",
"email_from_address": "hr@greenville.gov",
"support_link": "https://greenville.gov/hr",
"support_phone": "18005551234",
"custom_url": "greenville",
"branding_addon": "1",
"url_addon": "1",
"branding_expire_date": "2025-12-31",
"custom_url_expire_date": "2025-12-31",
"branding_renew": "1",
"custom_url_renew": "1",
"credits_remaining": 50,
"credits_used_total": 25,
"credits_used_current": 10,
"sage_credits": 5,
"sage_credits_used_total": 2,
"pack_expire": "2025-06-30",
"sub_renew": "2025-03-01",
"credit_override": "",
"credit_rewind": "",
"credit_advanced_screen": "",
"credit_core_screen": "",
"credit_lite_screen": "",
"credit_sage": "",
"credit_system_sage": "",
"credit_branding": "",
"credit_custom_domain": "",
"credit_addon_language": "",
"credit_addon_audio": "",
"ss_phone": "18005551234",
"address_line1": "123 Main St",
"address_line2": "Suite 100",
"address_city": "Greenville",
"address_state": "SC",
"address_postal_code": "29601",
"address_country": "US",
"datetime_format": "m/d/Y",
"css": "",
"logo": "",
"stripe_customer_id": "cus_ABC123",
"stripe_subscription_id": "sub_DEF456",
"pipedrive_company_id": "12345",
"users": [
{
"user_id": 456,
"actor_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Jane",
"last_name": "Doe",
"email": "jane@greenville.gov",
"role": "council_admin"
}
]
}
}{
"code": "invalid_api_key",
"message": "Invalid or missing API key",
"data": {
"status": 401
}
}{
"code": "council_not_found",
"message": "Council not found",
"data": {
"status": 404
}
}{
"code": "api_not_configured",
"message": "Zapier API key not configured",
"data": {
"status": 500
}
}Authorizations
SageScreen API key stored in ss_zapier_api_key option
Path Parameters
WordPress post ID (numeric) or council_id UUID
Examples:
"123"
"c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6"
⌘I