curl --request POST \
--url https://api.helicone.ai/v1/prompt/{promptId}/versions/query \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"filter": {
"prompts_versions": {
"minor_version": {
"not-equals": 123,
"equals": 123,
"gte": 123,
"lte": 123,
"lt": 123,
"gt": 123
},
"major_version": {
"not-equals": 123,
"equals": 123,
"gte": 123,
"lte": 123,
"lt": 123,
"gt": 123
},
"id": {
"not-equals": "<string>",
"equals": "<string>",
"like": "<string>",
"ilike": "<string>",
"contains": "<string>",
"not-contains": "<string>"
},
"prompt_v2": {
"not-equals": "<string>",
"equals": "<string>",
"like": "<string>",
"ilike": "<string>",
"contains": "<string>",
"not-contains": "<string>"
}
}
},
"includeExperimentVersions": true
}'
{
"data": [
{
"id": "<string>",
"minor_version": 123,
"major_version": 123,
"prompt_v2": "<string>",
"model": "<string>",
"helicone_template": "<string>",
"created_at": "<string>",
"metadata": {},
"parent_prompt_version": "<string>",
"experiment_id": "<string>",
"updated_at": "<string>"
}
]
}
Search through versions of a specific prompt
curl --request POST \
--url https://api.helicone.ai/v1/prompt/{promptId}/versions/query \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '{
"filter": {
"prompts_versions": {
"minor_version": {
"not-equals": 123,
"equals": 123,
"gte": 123,
"lte": 123,
"lt": 123,
"gt": 123
},
"major_version": {
"not-equals": 123,
"equals": 123,
"gte": 123,
"lte": 123,
"lt": 123,
"gt": 123
},
"id": {
"not-equals": "<string>",
"equals": "<string>",
"like": "<string>",
"ilike": "<string>",
"contains": "<string>",
"not-contains": "<string>"
},
"prompt_v2": {
"not-equals": "<string>",
"equals": "<string>",
"like": "<string>",
"ilike": "<string>",
"contains": "<string>",
"not-contains": "<string>"
}
}
},
"includeExperimentVersions": true
}'
{
"data": [
{
"id": "<string>",
"minor_version": 123,
"major_version": 123,
"prompt_v2": "<string>",
"model": "<string>",
"helicone_template": "<string>",
"created_at": "<string>",
"metadata": {},
"parent_prompt_version": "<string>",
"experiment_id": "<string>",
"updated_at": "<string>"
}
]
}
Ok
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?