---
title: "Execute Macros"
method: POST
path: "/api/v1/accounts/{account_id}/macros/{id}/execute"
tags: ["Macros"]
---

# Execute Macros

`POST /api/v1/accounts/{account_id}/macros/{id}/execute`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/accounts/{account_id}/macros/{id}/execute`
- Auth: API key in header `api_access_token`

## Path parameters

- `account_id` integer, required
- `id` integer, required

## Request body

- object
  - `name` string
  - `account_id` integer
  - `visibility` 'personal' | 'global'
  - `actions` object[]
    - `action_name` string
  - `action_params` string[]

## Response `200`

Success

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `409`: Macro already running on this conversation, or executed moments ago

---

[API](https://skmtc.dev/cloudhumans/apis/cloudchat-api.md) - [All operations](https://skmtc.dev/cloudhumans/apis/cloudchat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudhumans/apis/cloudchat-api/revisions/18199bd17cc5?raw)
