cURL
curl --request POST \ --url https://api.promptmetrics.dev/template/{identifier}/run \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "version": 123, "env_label": "<string>", "variables": {} } '
{ "request_id": "<string>", "latency": 123, "total_cost": 123, "status": "<string>" }
Executes a template with version and environment selection, including canary routing.
SDK API key in format: pm_
Execution result