Skip to main content
POST
/
template
/
{identifier}
/
run
Run template
curl --request POST \
  --url https://api.promptmetrics.dev/template/{identifier}/run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "version": 123,
  "env_label": "<string>",
  "variables": {}
}
'
{
  "request_id": "<string>",
  "latency": 123,
  "total_cost": 123,
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

identifier
string
required

Body

application/json
version
number
env_label
string
variables
object

Response

200 - application/json

Execution result

request_id
string
latency
number
total_cost
number
status
string