Get Prompt History
Get a list of historical versions of a prompt by its ID
/api/v1/prompts/{prompt_id}/historyAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
prompt_id
integer
path
required
Responses
200Successful Response
application/json
response
PromptHistoryResponse[]
required
Item schema
itemsPromptHistoryResponserequiredA historical prompt version, with the lifecycle of the model it was pinned to.
Agents pinned to an old version run that version's model, so a retired model in the history is as much of a problem as one on the current version.
13 fields
timestampstring (date-time)requiredTimestamp of the change resulting in this version
prompt_idstringrequiredID of the prompt
version_numberintegerrequiredVersion number of this version. Starts at 1 when prompt is created, and incremented on each change.
prompt_textstringrequiredText of the prompt at this version
prompt_descriptionstring | nulloptionalDescription of the prompt at this version
prompt_namestringrequiredName of the prompt at this version
llm_configPromptLlmConfig | nulloptionalString representation of LLM config for the prompt at this version
6 options
providerenum<string>optionalProvider of the LLM model.
["anthropic","azure_openai","google","openai"]Default azure_openaimodelstringoptionalName of the model. Must match the deployment name in Azure AI Studio.
gpt-4oversionstring | nulloptionalDeprecated model version. This value is ignored and resolved automatically.
api_versionstring | nulloptionalVersion of the provider's API.
temperaturenumber | nulloptionalTemperature parameter for the model. Determines randomness of responses - higher is more random, lower is more focused. Must be between 0.0 and 2.0, inclusive.
seedinteger | nulloptionalControls the reproducibility of the job. The LLM will give the same or similar responses given the same inputs in multiple conversations with the same seed.
commentsstring | nulloptionalComments describing the change that resulted in this version
user_emailstringrequiredEmail address of the user who made the change that resulted in this version
linked_toolsPromptHistoryLinkedTool[]optionalTools that were linked to this version of the prompt
[]Item schema
itemsPromptHistoryLinkedToolrequiredRecord of a tool linked to a previous prompt version in the prompt history.
4 fields
tool_idintegerrequiredID of the tool
current_tool_namestringrequiredCurrent name of the tool (may have been different at the time the given version of the prompt was created)
out_of_datebooleanrequiredWhether the tool has changed (not including being deleted) since the given version of the prompt was created
deletedbooleanrequiredWhether the tool has been deleted since the given version of the prompt was created
session_end_toolPromptHistoryLinkedTool | nullreference defined aboveSession end tool that was configured on this version of the prompt, if any
is_pre_enhancementsbooleanrequiredWhether this version of the prompt was created before history of tool-prompt linking was tracked
validation_issuesValidationIssue[] | nulloptionalLifecycle findings for the model this version was saved on.
Item schema
itemsValidationIssuerequiredA single validation finding with severity, location, and description.
5 fields
idstringrequiredStable machine-readable identifier (kebab-case)
severityenum<string>optional["info","warning","error"]Default errormessagestringrequiredHuman-readable description
pathstring | nulloptionalJSONPath-style location (e.g. $.context.task.steps[2])
valuestring | nulloptionalThe offending value, when it adds clarity
Response example
[
{
"timestamp": "string",
"prompt_id": "string",
"version_number": 0,
"prompt_text": "string",
"prompt_description": "string",
"prompt_name": "string",
"llm_config": "string",
"comments": "string",
"user_email": "string",
"linked_tools": [],
"session_end_tool": "string",
"is_pre_enhancements": true,
"validation_issues": "string"
}
]422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
