> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Run the batch test

POST`/messenger/{messengerId}/agent-tests/runs`

`{ target: 'draft' | 'live' }` (draft by default). Answers at once with the run; poll the run until `status` is `done`. Each question is one answer on the workspace's daily allowance. Nothing reaches a visitor. A second run while one is running is a 409 naming it.

## Path Parameters

`messengerId`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/messenger/{messengerId}/agent-tests/runs'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/messenger/{messengerId}/agent-tests/runs', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/messenger/{messengerId}/agent-tests/runs"

response = requests.post(url)

print(response.text)
```
