> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Start a run

> Queue an asynchronous run for one test set.

Queues a run and returns the created run with `status: "running"` and `result: null`. Poll [Get a run](/en/api-reference/get-test-set-run) until `status` becomes `completed` or `failed`.

<Warning>
  Runs evaluate the conversations in the set against live agent behavior. If the conversations invoke Actions, those Actions can call your configured external APIs.
</Warning>

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `write` scope.
</ParamField>

## Path parameters

<ParamField path="testSetId" type="string" required>
  Test set ID.
</ParamField>

## Response

Returns the created [Run object](/en/api-reference/test-sets#run-object).

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api-prod.usefini.com/v2/test-sets/44c1f705-8e1a-4f61-8c4c-d519d37fb6b7/runs/public' \
    --header 'Authorization: Bearer fini_your_api_key'
  ```

  ```javascript Node.js theme={null}
  const testSetId = '44c1f705-8e1a-4f61-8c4c-d519d37fb6b7';

  const response = await fetch(`https://api-prod.usefini.com/v2/test-sets/${testSetId}/runs/public`, {
    method: 'POST',
    headers: {
      Authorization: 'Bearer fini_your_api_key'
    }
  });

  const run = await response.json();
  ```

  ```python Python theme={null}
  import requests

  test_set_id = "44c1f705-8e1a-4f61-8c4c-d519d37fb6b7"

  response = requests.post(
      f"https://api-prod.usefini.com/v2/test-sets/{test_set_id}/runs/public",
      headers={"Authorization": "Bearer fini_your_api_key"},
  )

  run = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 202 Accepted theme={null}
  {
    "id": "5afd818a-a5f9-4e1b-9619-3c7191c12d9a",
    "testSetId": "44c1f705-8e1a-4f61-8c4c-d519d37fb6b7",
    "status": "running",
    "result": null,
    "createdBy": null,
    "createdAt": "2026-07-28T09:01:14.000Z",
    "updatedAt": "2026-07-28T09:01:14.000Z"
  }
  ```
</ResponseExample>
