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

# Run a macro on conversations

POST`/messenger/{messengerId}/macros/{macroId}/run`

Runs a macro on up to fifty of this Messenger's conversations (`ids`), all or nothing, and answers with the run to undo. Send a `clientKey`: a retry with the same key answers with the first run instead of running twice. Run on one conversation, `reply` holds the macro's reply filled for the visitor, for the composer; a macro never sends it.

## Path Parameters

`messengerId`

numberrequired

`macroId`

numberrequired

## Response

200

**cURL**

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

**JavaScript**

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

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

response = requests.post(url)

print(response.text)
```
