GET
/
v1
/
prompts
/
versions
Get Prompt Versions
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>"
  }
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Query Parameters

id
string

Version ID you want to query

promptId
string

Prompt ID whose versions you want to query

Response

200
application/json

Prompt versions retrieved successfully

The response is of type object.