curl --request GET \
--url https://api.getmaxim.ai/v1/prompts/versions \
--header 'x-maxim-api-key: <api-key>'{
"data": {
"id": "<string>",
"version": 123,
"description": "<string>",
"promptId": "<string>",
"config": {
"tags": {},
"model": "<string>",
"author": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"image": "<string>"
},
"modelId": "<string>",
"messages": [
{
"id": "<string>",
"index": 123,
"payload": {
"role": "<string>",
"content": "<string>"
},
"currentType": "<string>",
"originalType": "<string>"
}
],
"provider": "<string>",
"modelParameters": {
"n": 123,
"top_p": 123,
"logprobs": true,
"max_tokens": 123,
"promptTools": [
"<string>"
],
"temperature": 123,
"presence_penalty": 123,
"frequency_penalty": 123
}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Get versions of a prompt
curl --request GET \
--url https://api.getmaxim.ai/v1/prompts/versions \
--header 'x-maxim-api-key: <api-key>'{
"data": {
"id": "<string>",
"version": 123,
"description": "<string>",
"promptId": "<string>",
"config": {
"tags": {},
"model": "<string>",
"author": {
"id": "<string>",
"name": "<string>",
"email": "<string>",
"image": "<string>"
},
"modelId": "<string>",
"messages": [
{
"id": "<string>",
"index": 123,
"payload": {
"role": "<string>",
"content": "<string>"
},
"currentType": "<string>",
"originalType": "<string>"
}
],
"provider": "<string>",
"modelParameters": {
"n": 123,
"top_p": 123,
"logprobs": true,
"max_tokens": 123,
"promptTools": [
"<string>"
],
"temperature": 123,
"presence_penalty": 123,
"frequency_penalty": 123
}
},
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}API key for authentication
Version ID you want to query
Prompt ID whose versions you want to query
Prompt versions retrieved successfully
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?