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

# Add questions to the batch test

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

`{ question, expect? }`, `{ questions: [{ question, expect? }] }`, or `{ text, csv? }` (one question per line; CSV is `question,expect`). `expect` is what the answer must contain to pass. A question already in the set is skipped, so the same call twice adds nothing the second time.

## Path Parameters

`messengerId`

numberrequired

## Response

200

**cURL**

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

**JavaScript**

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

fetch('https://api.workover.io/messenger/{messengerId}/agent-tests', 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"

response = requests.post(url)

print(response.text)
```
