Create review

Answers a run that holds a post for review, for the person the automation runs as or an admin of the org: post true posts it to the automation's accounts and answers the run while it posts; false discards it.

POST /v1/auto/automations/{id}/runs/{run}/review

Addresshttps://api.hanzo.ai/v1/auto/automations/{id}/runs/{run}/review
MethodPOST
Operationpost_auto_automations_by_id_runs_by_run_review
AuthAuthorization: Bearer $HANZO_API_KEY

Answers a run that holds a post for review, for the person the automation runs as or an admin of the org: post true posts it to the automation's accounts and answers the run while it posts; false discards it. A run not in review answers 409; one held longer than a day is not posted.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the automation, and Run its run in review, from the path.
runpathstringyes
idbodystring—ID is the automation, and Run its run in review, from the path.
postbodyboolean—Post posts it when true and discards it when false.
runbodystring—

Response

StatusBodyMeaning
200auto.AutomationRunok
defaultproblem-detailsrefused

200 body — 11 fields.

FieldInTypeAlwaysDescription
atbodystring—At is when it started and Finished when it ended (null while it runs), RFC 3339 UTC.
draftbodystring—Draft is the post the agent wrote, for an automation that posts; empty otherwise.
finishedbodystring—
idbodystring—
postsbodyauto.PostResult[]—Posts are where it went: one per account, its link or the platform's reason it did not go.
posts[].errorbodystring—Error is the platform's reason it did not go; absent when it did.
posts[].tobodystring—To is the account's platform: x, linkedin or facebook.
posts[].urlbodystring—URL opens the post; absent when it did not go.
statusbodystring—Status is succeeded, failed, running, queued, review for a post waiting for its person to post or discard it, skipped for a start that found the previous run still going, or refused for a run whose person is no longer a member of the org.
summarybodystring—Summary is one line on how it went.
transcriptbodystring—Transcript opens the run's Dev run; null when it started none.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.

import { Configuration, AutoApi } from 'hanzoai';

const api = new AutoApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.postAutoAutomationsByIdRunsByRunReview({ id: 'id', run: 'run', id: "<id>", post: false });
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AutoApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AutoApi(client).post_auto_automations_by_id_runs_by_run_review(id='id', run='run', id="<id>", post=False)
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.AutoAPI.PostAutoAutomationsByIdRunsByRunReview(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, auto_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = auto_api::post_auto_automations_by_id_runs_by_run_review(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AutoApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new AutoApi(client).postAutoAutomationsByIdRunsByRunReview();
curl -X POST https://api.hanzo.ai/v1/auto/automations/<id>/runs/<run>/review \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "id": "<id>",
       "post": false
     }'

MCP reaches auto through the auto tool, which names its 14 operations with its own verbs — this one among them, under a name only MCP declares. describe explains any of them:

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_auto_flows"
         }
       }
     }'

Auto API · All Hanzo APIs · Interactive reference

Was this page useful?