Internal API
Website generation
2 endpoints.
POST
/api/v1/internal/website-gen/callbackPost Website Gen Callback
Record the generator's outcome for a website.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
x-internal-api-key | header | string | null | |
X-Keystone-Run-Token | header | string | null |
Request bodyrequired
application/jsonWebsiteGenCallbackRequest| Field | Type | Description |
|---|---|---|
website_idrequired | string (uuid) | |
gen_exitrequired | integer | |
run_id | string | default "" |
error | string | default "" |
mode | string | default "" |
revision | integer | null | |
checkpoint_sha | string | null | |
agent_reply | string | null | |
generator_version | string | default "" |
prompt_version | string | default "" |
model_used | 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.
POST
/api/v1/internal/website-gen/github-tokenPost Website Gen Github Token
A fresh installation token scoped to the run's one repository, while the run is live (409 ``RUN_NOT_LIVE`` otherwise). Replaces handing the run the GitHub App private key (``website_gen_token_vending_enabled``).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Keystone-Run-Token | header | string | null |
Request bodyrequired
application/jsonWebsiteGenGithubTokenRequest| Field | Type | Description |
|---|---|---|
accessrequired | enum | one of "read", "write" |
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.