cURL
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>" }
Executes a template with version and environment selection, including canary routing.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Execution result