prompt-lab

Create Lab Runs

Submit lab runs for one or more playbooks × tasks.

This is the core Prompt Lab execution endpoint. Pass multiple playbook_ids to compare playbooks side-by-side on the same tasks.

post/api/v1/lab/runs

Request

  • Base URL: https://api.badgeia.com
  • URL: https://api.badgeia.com/api/v1/lab/runs
  • Auth: none declared

Request body

playbook_idsstring[] required
task_idsstring[] required
experiment_idstring uuid required

Response

Successful Response

idstring uuid required
experiment_idstring uuid nullable required
playbook_idstring uuid required
task_idstring uuid required
statusstring required
started_atstring date-time nullable required
completed_atstring date-time nullable required
latency_msinteger nullable required
successboolean nullable required
outputstring nullable required
error_messagestring nullable required
input_tokensinteger nullable required
output_tokensinteger nullable required
total_cost_usdnumber nullable required
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.