List lifecycle

Returns the ONE marketing-content state machine: the ordered lifecycle states, which state a fresh document starts in, which one is publicly live, and the legal successors of every state.

GET /v1/content/lifecycle

Addresshttps://api.hanzo.ai/v1/content/lifecycle
MethodGET
Operationget_content_lifecycle
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the ONE marketing-content state machine: the ordered lifecycle states, which state a fresh document starts in, which one is publicly live, and the legal successors of every state. The console builds its board columns and its per-item action buttons from this single answer, so the UI and the write-time enforcement hook can never disagree about what is legal.

Request

GET /v1/content/lifecycle takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200content.stateGraphok
defaultproblem-detailsrefused

200 body — 5 fields.

FieldInTypeAlwaysDescription
initialbodystring—Initial is the state a fresh document starts in — "draft".
livebodystring—Live is the ONE state that is publicly readable — "published".
statesbodystring[]—States is every lifecycle state in canonical order: draft, in_review, approved, queued, published, archived.
transitionsbodyobject—Transitions maps each state to the states it may move to.
transitions.*bodystring[]—

Failure carries the platform error shape — see Errors.

Examples

hanzo content lifecycle
import { Configuration, ContentApi } from 'hanzoai';

const api = new ContentApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getContentLifecycle();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import ContentApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = ContentApi(client).get_content_lifecycle()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

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

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

let result = content_api::get_content_lifecycle(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.ContentApi;

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

var result = new ContentApi(client).getContentLifecycle();
curl https://api.hanzo.ai/v1/content/lifecycle \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool content, op get_content_lifecycle — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

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

Content API · All Hanzo APIs · Interactive reference

Was this page useful?