Create Prompt Version
Create a Draft version. It starts as a copy of the Live version's prompts , model , provider , temperature , top p , frequency penalty , presence penalty , m…
Create a Draft version. It starts as a copy of the Live version's prompts, model, provider, temperature, top_p, frequency_penalty, presence_penalty, max_tokens, eval_model and workflow settings. Fields you send replace the copied values. A prompt without a Live version starts from a temperature of 1 and max_tokens of 4,096.
https://statsigapi.net/console/v1/prompts/{id}/versionsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Body
application/jsonpromptsobject[]Show child attributes
contentstringrequiredrolestringrequiredsystemuserassistanttemperaturenumberformat: doublenamestringrequiredThe Prompt Version display name
my_configmin length: 3max length: 100pattern: ^[a-zA-Z0-9_\-. ]*$workflow_bodyobjectShow child attributes
typestringrequiredJSONvaluestringrequiredworkflow_urlstringOffline-eval workflow URL. Empty or null removes it. Changing it clears the stored workflow_headers and auth_workflow_headers unless they are sent in the same request.
nullableworkflow_headersobject[]Headers sent with each workflow request. Replaces the stored list when present.
Show child attributes
namestringrequiredvaluestringrequiredauth_workflow_headersobject[]Secret headers sent with each workflow request, such as an API key. Replaces the stored list when present, so send every header with its value. Statsig doesn't return them.
Show child attributes
namestringrequiredvaluestringrequiredtop_pnumberformat: doublefrequency_penaltynumberformat: doublepresence_penaltynumberformat: doublemax_tokensnumberMost tokens a completion can generate: a whole number from 1 to the model's output limit. A higher value returns a 400. Without your own API key for provider, Start Prompt Version Evaluation Job also returns a 400 when max_tokens is above 16,384.
format: doubleidstringThe Prompt Version name ID
min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-.]*$descriptionstringmax length: 1000modelstringproviderstringeval_modelstringResponse
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredmin length: 3max length: 100namestringrequiredmin length: 3max length: 100typestringLive is served to users; Candidate is served to code for shadow runs; Draft and Archive are not served.
LiveCandidateArchiveDraftversionnumberformat: doublepromptsobject[]rolestringrequiredcontentstringrequiredmodelstringproviderstringeval_modelstringtemperaturenumberformat: doubletop_pnumberformat: doublemax_tokensnumberformat: doublefrequency_penaltynumberformat: doublepresence_penaltynumberformat: doubleworkflow_urlstringnullablecreatedTimenumberformat: doublelastModifiedTimenumberformat: doubleeval_run_idstringSet only by Start Prompt Version Evaluation Job: the eval run it started. Poll it with List Prompt Version Eval Runs.
Was this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.