Skip to main content
GET
/
api
/
prompt-repo
/
versions
/
{id}
Get prompt version
curl --request GET \
  --url http://localhost:8080/api/prompt-repo/versions/{id}
{
  "version": {
    "id": 123,
    "prompt_id": "<string>",
    "version_number": 123,
    "commit_message": "<string>",
    "model_params": {},
    "provider": "<string>",
    "model": "<string>",
    "is_latest": true,
    "created_at": "2023-11-07T05:31:56Z",
    "messages": [
      {
        "id": 123,
        "order_index": 123,
        "message": {}
      }
    ]
  }
}

Path Parameters

id
integer
required

Version ID

Response

Successful response

version
object

Prompt version (immutable snapshot)