Internal API
Website preview runs
7 endpoints.
/api/v1/internal/website-preview/agent-callbackPost Website Preview Agent Callback
Store an edit slot's result (2 h) for the workflow's settle. Only an edit run's token posts here: a build reports through the generator callback, and a stored result is settled as a slot's. A check-only run ("Check again") settles nothing: its check is recorded here.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null | |
X-Keystone-Run-Token | header | string | null |
Request bodyrequired
application/jsonPreviewAgentCallbackRequest| Field | Type | Description |
|---|---|---|
plan_request_idrequired | string | |
website_idrequired | string | string (uuid) | string | string (uuid) fieldsstringstring (uuid) |
statusrequired | string | |
summary | string | default "" |
agent_message | string | default "" |
file_updates | object[] | object[] fields |
primitives | object[] | object[] fields |
error | string | default "" |
cost_usd | number | null | |
duration_s | number | null | |
run_id | string | default "" |
smoke | object | null | |
confirmation | object | null | |
denied_commands | string[] | string[] fields |
stop_source | string | default "" |
model | string | default "" |
usage | object | null | |
browser_check | object | null | |
check_only | boolean | default false |
interrupt | object | null | |
notes_delivered | string[] | string[] fields |
fetched_urls | object[] | object[] fields |
notes_pending | string[] | string[] fields |
checks | object | null | |
failure_kind | string | default "" |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/internal/website-preview/agent-progressPost Website Preview Agent Progress
Append a sanitized event to the run's activity trail. A full build's ring is deeper than an edit's: it runs for most of an hour.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null | |
X-Keystone-Run-Token | header | string | null |
Request bodyrequired
application/jsonWebsiteModAgentProgressRequest| Field | Type | Description |
|---|---|---|
plan_request_idrequired | string | |
website_idrequired | string | string (uuid) | string | string (uuid) fieldsstringstring (uuid) |
seqrequired | integer | |
ts | integer | null | |
kindrequired | string | |
stage | string | null | |
text | string | null | |
tool | string | null | |
label | string | null | |
block | string | null | |
status | string | null | |
partial | boolean | default false |
artifact | string | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/internal/website-preview/check-artifactsPost Website Preview Check Artifact
One browser-check screenshot from a preview edit's pod, under that run's token. The image is the raw request body.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
plan_request_idrequired | query | string | |
routerequired | query | string | |
viewportrequired | query | string | |
kind | query | string | default "fold" |
x-internal-api-key | header | string | null | |
X-Keystone-Run-Token | header | string | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/internal/workflow-engine/website-preview/runs/failPost Preview Run Fail
``{state}`` — ``failed``, or the state a settled run already had.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonPreviewRunFailBody| Field | Type | Description |
|---|---|---|
preview_idrequired | string (uuid) | |
revision | integer | default 0 · min 0 |
kindrequired | enum | one of "preview", "edit", "full" |
run_id | string | default "" |
reason | string | default "" |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/internal/workflow-engine/website-preview/runs/settlePost Preview Run Settle
``{state, checkpoint_sha, reason, fallback_eligible}``; idempotent.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonPreviewRunRefBody| Field | Type | Description |
|---|---|---|
preview_idrequired | string (uuid) | |
revision | integer | default 0 · min 0 |
kindrequired | enum | one of "preview", "edit", "full" |
run_id | string | default "" |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/internal/workflow-engine/website-preview/runs/startPost Preview Run Start
``{executor, run_id, deadline_s, state}``; idempotent per attempt.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonPreviewRunStartBody| Field | Type | Description |
|---|---|---|
preview_idrequired | string (uuid) | |
revision | integer | default 0 · min 0 |
kindrequired | enum | one of "preview", "edit", "full" |
workflow_run_id | string | default "" |
attempt | integer | default 1 · min 1 |
force_executor | enum | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/internal/workflow-engine/website-preview/runs/statusPost Preview Run Status
``{state, executor, reason, fallback_eligible, deadline_s}``. Read-only but for one case: a later attempt whose launch was lost is failed here (no one else will), hence the commit.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonPreviewRunRefBodyPreviewRunRefBody, expanded above.
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_str__Any__| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.