Skip to main content
GET
/
v2
/
prompts
/
versions
Get Prompt Versions (v2)
curl --request GET \
  --url https://api.getmaxim.ai/v2/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": [
          {
            "id": "<string>",
            "name": "<string>"
          }
        ],
        "temperature": 123,
        "presence_penalty": 123,
        "frequency_penalty": 123
      }
    },
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "deletedAt": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

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

Prompt versions retrieved successfully

data
object
required