---
title: "Invoke an Automation"
method: POST
path: "/automations/{templateId}/invoke"
tags: ["Automations"]
---

# Invoke an Automation

`POST /automations/{templateId}/invoke`

Starts an automation run from a saved template for one recipient, with optional data and profile, and returns a runId.

## Path parameters

- `templateId` string, required

## Headers

- `Idempotency-Key` string
- `x-idempotency-expiration` string

## Request body

- AutomationInvokeParams
  - `brand` string, nullable
  - `data` object, nullable
  - `profile` object, nullable
  - `recipient` string, nullable, required
  - `template` string, nullable

## Response `200`

- AutomationInvokeResponse
  - `runId` string, required

---

[API](https://skmtc.net/trycourier/apis/courier.md) · [All operations](https://skmtc.net/trycourier/apis/courier/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycourier/courier/versions/04f69fbf96a5/schema)
