Get user data for Zapier
curl --request GET \
--url https://{domain}/wp-json/sagescreen/v1/zapier/user/{user_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://{domain}/wp-json/sagescreen/v1/zapier/user/{user_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/user/{user_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/user/{user_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/user/{user_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/user/{user_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/zapier/user/{user_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": {
"user_id": 42,
"actor_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"display_name": "John Doe",
"phone": "+15551234567",
"council_id": "c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6",
"council_name": "Greenville City Council",
"role": "council_admin",
"email_product_updates": true,
"email_product_marketing": false,
"address_line1": "123 Main St",
"address_city": "Greenville",
"address_state": "SC",
"address_zip": "29601",
"address_country": "US"
}
}{
"code": "invalid_identifier",
"message": "Invalid user identifier format. Use numeric ID or UUID",
"data": {
"status": 400
}
}{
"code": "invalid_api_key",
"message": "Invalid or missing API key",
"data": {
"status": 401
}
}{
"code": "user_not_found",
"message": "User not found for actor_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"data": {
"status": 404
}
}{
"code": "api_not_configured",
"message": "Zapier API key not configured",
"data": {
"status": 500
}
}User – REST
Get user data for Zapier
Returns user profile, council info, and email preferences.
Accepts numeric WordPress user ID or UUID (actor_id meta).
Requires the X-API-Key header (Zapier API key).
GET
/
zapier
/
user
/
{user_id}
Get user data for Zapier
curl --request GET \
--url https://{domain}/wp-json/sagescreen/v1/zapier/user/{user_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://{domain}/wp-json/sagescreen/v1/zapier/user/{user_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/user/{user_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/user/{user_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/user/{user_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/user/{user_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/zapier/user/{user_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": {
"user_id": 42,
"actor_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"display_name": "John Doe",
"phone": "+15551234567",
"council_id": "c9d8e7f6-5a4b-3c2d-1e0f-a1b2c3d4e5f6",
"council_name": "Greenville City Council",
"role": "council_admin",
"email_product_updates": true,
"email_product_marketing": false,
"address_line1": "123 Main St",
"address_city": "Greenville",
"address_state": "SC",
"address_zip": "29601",
"address_country": "US"
}
}{
"code": "invalid_identifier",
"message": "Invalid user identifier format. Use numeric ID or UUID",
"data": {
"status": 400
}
}{
"code": "invalid_api_key",
"message": "Invalid or missing API key",
"data": {
"status": 401
}
}{
"code": "user_not_found",
"message": "User not found for actor_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"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 user ID (numeric) or actor_id UUID
Examples:
"42"
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
⌘I