Skip to main content
GET
/
template-version
/
{identifier}
Get template version
curl --request GET \
  --url https://api.promptmetrics.dev/template-version/{identifier} \
  --header 'Authorization: Bearer <token>'
{
  "responseData": {
    "data": {
      "_id": "<string>",
      "template_id": "<string>",
      "version": 123,
      "version_name": "<string>",
      "env_label": "<string>",
      "messages": [
        {
          "role": "system",
          "content": "<string>",
          "variable": [
            "<string>"
          ],
          "name": "<string>",
          "tool_call_id": "<string>",
          "tool_calls": "<array>"
        }
      ],
      "parameters": {},
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

identifier
string
required

Query Parameters

version
number
workspace_id
string

Response

Template version details

responseData
object