Skip to main content
POST
/
template-version
/
{versionId}
/
run
Run template version
curl --request POST \
  --url https://api.promptmetrics.dev/template-version/{versionId}/run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "<string>",
  "model_id": "<string>"
}
'
{
  "responseData": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

versionId
string
required

Body

application/json
workspace_id
string
required
model_id
string
required
model
string
variables
object
parameters
object
api_type
enum<string>
Available options:
chat.completion,
response
messages
object[]
trace_id
string
span_id
string
group_id
string
pm_tags
string[]
stream
boolean

Response

Execution started or completed successfully

responseData
object