Skip to content

API: lifecycles

Status: GA Access: token required API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

POST /api/v1/lifecycles/{entity_name}/processEvent

Section titled “POST /api/v1/lifecycles/{entity_name}/processEvent”

Process Event

Open as a page →

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
entity_namepathyesstring
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema ProcessEventRequest

FieldTypeRequiredDescription
eventstringnooutlet name on automated steps
filterobject | nullno
lcidinteger | nullno
maxintegernohard upper bound per call

Example:

{
"event": "tick",
"lcid": 4,
"max": 50
}

Responses:

CodeMeaningBody
200Successful ResponseProcessEventResponse
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

POST /api/v1/lifecycles/{entity_name}/{guid}/advance

Section titled “POST /api/v1/lifecycles/{entity_name}/{guid}/advance”

Advance

Open as a page →

Advance a record via an outlet (analog of Entherium’s advance_record).

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
entity_namepathyesstring
guidpathyesinteger
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema AdvanceRequest

FieldTypeRequiredDescription
detailobject | nullno
outletstringyesOutlet name (ok, error, or conditional name)

Example:

{
"detail": {
"note": "verified live"
},
"outlet": "ok"
}

Responses:

CodeMeaningBody
200Successful ResponseAdvanceResponse
401Missing or invalid authentication credentialsErrorResponse
404Entity or lifecycle not foundErrorResponse
409Transition not allowed from the current stepErrorResponse
422Validation ErrorHTTPValidationError

GET /api/v1/lifecycles/{entity_name}/{guid}/log

Section titled “GET /api/v1/lifecycles/{entity_name}/{guid}/log”

Read Log

Open as a page →

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
entity_namepathyesstring
guidpathyesinteger
limitquerynointeger

Responses:

CodeMeaningBody
200Successful Responsearray of LifecycleLogRead
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

POST /api/v1/lifecycles/{entity_name}/{guid}/postMessage

Section titled “POST /api/v1/lifecycles/{entity_name}/{guid}/postMessage”

Post Message

Open as a page →

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
entity_namepathyesstring
guidpathyesinteger
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema PostMessageRequest

FieldTypeRequiredDescription
detailobject | nullno
messagestringyes

Example:

{
"message": "Held back: waiting for the source to confirm the figure."
}

Responses:

CodeMeaningBody
200Successful ResponseLifecycleLogRead
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

GET /api/v1/lifecycles/{entity_name}/{guid}/state

Section titled “GET /api/v1/lifecycles/{entity_name}/{guid}/state”

Get State

Open as a page →

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
entity_namepathyesstring
guidpathyesinteger

Responses:

CodeMeaningBody
200Successful ResponseLifecycleStateResponse
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

POST /api/v1/lifecycles/{entity_name}/{guid}/stepTo

Section titled “POST /api/v1/lifecycles/{entity_name}/{guid}/stepTo”

Step To

Open as a page →

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
entity_namepathyesstring
guidpathyesinteger
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema StepToRequest

FieldTypeRequiredDescription
commentstring | nullno
detailobject | nullno
to_stepintegeryestarget step id from LC definition

Example:

{
"comment": "reviewed; moving to publish-ready",
"detail": {
"reviewer": "agent"
},
"to_step": 3
}

Responses:

CodeMeaningBody
200Successful ResponseAdvanceResponse
401Missing or invalid authentication credentialsErrorResponse
404Entity or lifecycle not foundErrorResponse
409Transition not allowed from the current stepErrorResponse
422Validation ErrorHTTPValidationError