---
title: "Ai Generate Template"
method: POST
path: "/api/marketing/templates/ai-generate"
tags: ["Marketing"]
---

# Ai Generate Template

`POST /api/marketing/templates/ai-generate`

Queue an async AI marketing template generation job.

Returns immediately with a job_id — the actual Claude call runs in a
background thread (can take 60-120s+). Poll the status via
GET /templates/ai-generate/{job_id}.

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `202`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
