---
title: "Run Experiment Endpoint"
method: POST
path: "/api/v1/gm/experiment/{experiment_id}/run"
tags: ["gm", "gm"]
---

# Run Experiment Endpoint

`POST /api/v1/gm/experiment/{experiment_id}/run`

## Request

- Base URL: `https://app.goodleads.club` (the document declares no server; this is the origin it was published from)
- URL: `https://app.goodleads.club/api/v1/gm/experiment/{experiment_id}/run`
- Auth: API key in header `X-API-Key`

Execute a pending experiment and record actual spend on the envelope.

Returns the orchestrator's result + final spend. Long-running endpoint:
real vendor experiments may take minutes (Tracerfy polling). Agent
callers should expect this and have a generous timeout.

## Path parameters

- `experiment_id` string, required

## Request body

- RunExperimentRequest
  - `agent_id` string, required
  - `budget_usd` number, nullable
  - `auto_ship` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodleads/apis/formation-gtm-api.md) · [All operations](https://skmtc.dev/goodleads/apis/formation-gtm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodleads/apis/formation-gtm-api/revisions/2068d13a82cf?raw)
