Models

Test Model Draft

Freeze and test the saved draft without publishing. A changed prompt generates candidate source; input-only edits reuse source. Metered once per request_key; reuse the key on retries. Poll the returned revision.

post/v1/models/{model}/draft/test

Request

  • Base URL: https://api.ensemble.markets (the document declares no server; this is the origin it was published from)
  • URL: https://api.ensemble.markets/v1/models/{model}/draft/test
  • Auth: HTTP bearer

Path parameters

modelstring required

Owned model ID, slug, symbol or exact name

Request body

expected_versioninteger required

The exact saved draft version to test

request_keystring required

Unique per Test click; reuse on retries to avoid duplicate execution and charging.

Response

Successful Response

idstring required
model_idstring required
numberinteger required
status'queued' | 'running' | 'ready' | 'applied' | 'failed' required
base_revision_idstring nullable
draft_versioninteger nullable
promptstring required
descriptionstring
inputsobject required
inputs_schemaobject nullable
scriptstring nullable
script_hashstring nullable
build_idstring nullable
run_idstring nullable
labelstring nullable
data_as_ofstring nullable
result_availableboolean
errorstring nullable
timingobject nullable
usageobject nullable
created_atstring date-time required
applied_atstring date-time nullable
can_applyboolean
blocked_reasonstring nullable
newer_data_availableboolean
estimate_centsinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.