GET
/v1/private/prompts/by-commit/{commit}Get prompt by commitGet prompt by commit
Parameters
commitstringpathrequiredResponses
objectPrompt_Detail
created_atstring · date-timecreated_bystringdescriptionstringidstring · uuidlast_updated_atstring · date-timelast_updated_bystringlatest_versionobjectShow child attributes
change_descriptionstringcommitstringversion short unique identifier, generated if absent. it must be 8 characters long
created_atstring · date-timecreated_bystringenvironmentstringDeprecated: use 'environments' instead
environmentsarray of stringShow child attributes
idstring · uuidversion unique identifier, generated if absent
metadataobjectprompt_idstring · uuidtagsarray of stringShow child attributes
templatestringrequiredtemplate_structurestringtypestringvariablesarray of stringShow child attributes
version_numberstringsequential version number in the format v<N>; null for masks
version_typestringversion type discriminator; defaults to prompt_version
namestringrequiredproject_idstring · uuidProject ID. Takes precedence over project_name when both are provided.
tagsarray of stringShow child attributes
template_structurestringTemplate structure type: 'text' or 'chat'. Immutable after creation.
version_countinteger · int64{
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "00000000-0000-0000-0000-000000000000",
"last_updated_at": "2026-06-09T00:00:00Z",
"last_updated_by": "string",
"latest_version": {
"change_description": "string",
"commit": "string",
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"environment": "string",
"environments": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {},
"prompt_id": "00000000-0000-0000-0000-000000000000",
"tags": [
"string"
],
"template": "string",
"template_structure": "chat",
"type": "jinja2",
"variables": [
"string"
],
"version_number": "string",
"version_type": "mask"
},
"name": "string",
"project_id": "00000000-0000-0000-0000-000000000000",
"requested_version": {
"change_description": "string",
"commit": "string",
"created_at": "2026-06-09T00:00:00Z",
"created_by": "string",
"environment": "string",
"environments": [
"string"
],
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {},
"prompt_id": "00000000-0000-0000-0000-000000000000",
"tags": [
"string"
],
"template": "string",
"template_structure": "chat",
"type": "jinja2",
"variables": [
"string"
],
"version_number": "string",
"version_type": "mask"
},
"tags": [
"string"
],
"template_structure": "text",
"version_count": 0
}objectErrorMessage_Detail
errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}objectErrorMessage_Detail
errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}objectErrorMessage_Detail
errorsarray of stringShow child attributes
{
"errors": [
"string"
]
}