curl --request POST \
--url https://api.helicone.ai/v1/prompt/{promptId}/versions/query \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--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>"
}
],
"error": null
}Search through versions of a specific prompt
curl --request POST \
--url https://api.helicone.ai/v1/prompt/{promptId}/versions/query \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--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>"
}
],
"error": null
}Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
From T, pick a set of properties whose keys are in the union K
Show child attributes
Make all properties in T optional
Show child attributes
Make all properties in T optional
Show child attributes
Make all properties in T optional
Show child attributes
Make all properties in T optional
Make all properties in T optional
Show child attributes
Ok
Show child attributes
Was this page helpful?