curl --request POST \
--url 'https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data action=sagescreen_get_step_status \
--data nonce=abc123def456 \
--data run_id=run_abc123def456 \
--data sage_id=1234import requests
url = "https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status"
payload = {
"action": "sagescreen_get_step_status",
"nonce": "abc123def456",
"run_id": "run_abc123def456",
"sage_id": "1234"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
action: 'sagescreen_get_step_status',
nonce: 'abc123def456',
run_id: 'run_abc123def456',
sage_id: '1234'
})
};
fetch('https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status', 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/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status"
payload := strings.NewReader("action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234"
response = http.request(request)
puts response.read_body{
"success": true,
"current_step": "sage_generation",
"step_state": "running",
"step_order": 3
}Poll build step progress
Polls the Python service for the current build step status. Called repeatedly by the front-end during the build process to update the progress UI.
If a sage_id is provided, also checks for a test_screen_id
that may have been set by the Python callback.
Registered as wp_ajax_sagescreen_get_step_status — login required.
curl --request POST \
--url 'https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data action=sagescreen_get_step_status \
--data nonce=abc123def456 \
--data run_id=run_abc123def456 \
--data sage_id=1234import requests
url = "https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status"
payload = {
"action": "sagescreen_get_step_status",
"nonce": "abc123def456",
"run_id": "run_abc123def456",
"sage_id": "1234"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
action: 'sagescreen_get_step_status',
nonce: 'abc123def456',
run_id: 'run_abc123def456',
sage_id: '1234'
})
};
fetch('https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status', 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/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status"
payload := strings.NewReader("action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234")
.asString();require 'uri'
require 'net/http'
url = URI("https://{domain}/wp-json/sagescreen/v1/wp-admin/admin-ajax.php?nonce=&action=sagescreen_get_step_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "action=sagescreen_get_step_status&nonce=abc123def456&run_id=run_abc123def456&sage_id=1234"
response = http.request(request)
puts response.read_body{
"success": true,
"current_step": "sage_generation",
"step_state": "running",
"step_order": 3
}Authorizations
WordPress AJAX nonce (passed as form field, verified per-action)
Body
"sagescreen_get_step_status"WP nonce for sagescreen_frontend_nonce
"abc123def456"
Workflow run ID from start_full_sage_build
"run_abc123def456"
Optional — WordPress post ID to check for test_screen_id
1234
Response
Step status
- Option 1
- Option 2
true
Build sub-step names in execution order
starting, creating_sage, sage_generation, test_shu, test_ha, test_ri, transcending_training, enlightenment "sage_generation"
State of an individual build sub-step
pending, running, completed, failed "running"
Current step execution order (1-based)
3
Test screen ID (present only during/after transcending_training)
"scr_abc123def456"