---
title: "Execute automation action now"
method: POST
path: "/automation/actions/{plan_id}/execute"
tags: ["Automation"]
---

# Execute automation action now

`POST /automation/actions/{plan_id}/execute`

Dispatches a **waiting** message or review automation plan immediately (same behavior as executing an upcoming action in the app). For **review** plans, the reservation must have reached check-out date in the operator timezone. Requires a **writable** access token. Only `send_message` and `review` plan types are supported.

## Path parameters

- `plan_id` integer, required

## Response `200`

Plan was queued for immediate execution.

- CommonResponse
  - `request_id` string, required — Unique identifier for the request.
  - `error_code` integer, required — Numeric error code representing the status of the response. A value of `200` indicates success. <br> See the [Error Codes](/reference/error-manual#error-codes) section for more information.
  - `error_msg` string, required — Message detailing the status of the response.

## Other responses

- `400` — Plan cannot be executed now (e.g. `review` plan whose reservation has not checked out yet, or unsupported action type).

---

[API](https://skmtc.net/hostex/apis/hostex-api.md) · [All operations](https://skmtc.net/hostex/apis/hostex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostex/hostex-api/revisions/a3fa555dee66/schema)
