---
title: "POST /v1/prompt-2025/query/version"
method: POST
path: "/v1/prompt-2025/query/version"
tags: ["Prompt2025"]
---

# POST /v1/prompt-2025/query/version

`POST /v1/prompt-2025/query/version`

## Request body

- object
  - `promptVersionId` string, required

## Response `200`

Ok

- union
  - ResultSuccessPrompt2025Version
    - `data` Prompt2025Version, required
      - `id` string, required
      - `model` string, required
      - `prompt_id` string, required
      - `major_version` number, double, required
      - `minor_version` number, double, required
      - `commit_message` string, required
      - `environments` string[]
      - `created_at` string, required
      - `s3_url` string
      - `prompt_body` Prompt2025VersionPromptBody
        - `model` string
        - `messages` object[]
          - `tool_calls` object[]
            - `type` 'function', required
            - `function` object, required
              - …
            - `id` string, required
          - `tool_call_id` string
          - `name` string
          - `content` union, required
            - string
            - object[]
              - …
          - `role` string, required
        - `temperature` number, double
        - `top_p` number, double
        - `max_tokens` number, double
        - `tools` object[]
          - `function` object, required
            - `parameters` RecordStringUnknown, required — Construct a type with a set of properties K of type T
            - `description` string, required
            - `name` string, required
          - `type` 'function', required
        - `tool_choice` union
          - string
          - object
            - `function` object
              - …
            - `type` string, required
    - `error` null, nullable, required
  - ResultErrorString
    - `data` null, nullable, required
    - `error` string, required

---

[API](https://skmtc.net/helicone/apis/helicone-api.md) · [All operations](https://skmtc.net/helicone/apis/helicone-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helicone/helicone-api/versions/b369e9e3e80c/schema)
