> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Automation Steps API

> Automation step, bir otomasyonun bir sürümündeki tek bir adımdır. Bir `wait` adımı bir üyeyi `config.delay_seconds` süresince bekletir.

Bir `email` veya `message` adımı, gönderip göndermeyeceğine ve ne söyleyeceğine karar vermek için `source_code` kodunu çalıştırır. Adımlar bir zincir oluşturur ve her adım kendinden önceki adımı belirtir. Yalnızca taslak sürüm değiştirilebilir.

Bir sürümün adımlarını listelemek ve taslakta adım eklemek, güncellemek ve kaldırmak için Automation steps API'yi kullanın. Ayrıca bir `email` veya `message` adımının bir üyeye ne göndereceğini önizleyebilirsiniz. Önizleme hiçbir şey göndermez.

Bir adımın kodu hesabı API üzerinden okur. Hem yönetici rolünün hem de Whop AI'nın sahip olduğu her hesap düzeyindeki `:read` iznine, `payout:account:read` hariç, sahiptir. Bu nedenle kartları okuyamaz. Bir adımın `source_code` değerini ayarlamak veya bir adımı önizlemek bu izinlerin her birini gerektirir. Böylece bir kimlik bilgisi, kendisinin okuyabileceğinden fazlasını okuyan kod yazamaz.

## Uç noktalar

| Uç nokta | İstek |
| - | - |
| [List Automation Steps](https://docs.whop.com/tr/api-reference/automation-steps/list-automation-steps.md) | GET `/automation_steps` |
| [Retrieve Automation Step](https://docs.whop.com/tr/api-reference/automation-steps/retrieve-automation-step.md) | GET `/automation_steps/{id}` |
| [Create Automation Step](https://docs.whop.com/tr/api-reference/automation-steps/create-automation-step.md) | POST `/automation_steps` |
| [Preview Automation Step](https://docs.whop.com/tr/api-reference/automation-steps/preview-automation-step.md) | POST `/automation_steps/{id}/preview` |
| [Update Automation Step](https://docs.whop.com/tr/api-reference/automation-steps/update-automation-step.md) | PATCH `/automation_steps/{id}` |
| [Delete Automation Step](https://docs.whop.com/tr/api-reference/automation-steps/delete-automation-step.md) | DELETE `/automation_steps/{id}` |

## Özellikler

**id** `string` *required*

`atos_` önekli otomasyon adımı kimliği. Bir adım her sürümde yeni bir kimlik alır. `key` değeri aynı kalır.

**action\_type** `string` *required*

Adımın ne yaptığı: `wait` üyeyi `config.delay_seconds` süresince bekletir, `email` onlara e-posta gönderir ve `message` onlara bir ekip üyesinden mesaj gönderir. Bir taslak adım `email` ile `message` arasında geçiş yapabilir; bu `config.sender_id` değerini temizler. Bir `wait` gönderim adımına dönüşemez, tersi de mümkün değildir.

Kullanılabilir seçenekler: `wait`, `email`, `message`

**automation\_id** `string` *required*

Adımın ait olduğu otomasyonun `ato_` önekli kimliği.

**config** `object` *required*

Adımın `action_type` türüne yönelik ayarları: bir `wait` için `delay_seconds`, bir `email` veya `message` için `sender_id`. Yazmak tüm nesneyi değiştirir.

**created\_at** `string` *required*

Adımın oluşturulduğu zaman, ISO 8601 zaman damgası olarak.

**issues** `string[]` *required*

Taslağın yayınlanabilmesi için düzeltilmesi gerekenler; örneğin henüz yazılmamış kod. Hiçbir şey yoksa boştur.

**key** `integer` *required*

Aynı adımı sürümler arasında tanımlar. Yeni bir adım, otomasyonun hiçbir adımının kullanmadığı bir anahtar alır.

**previous\_step\_id** `string | null` *required*

Bu adımın ardından çalıştığı adımın `atos_` önekli kimliği. Üye kaydolduktan hemen sonra ilk olarak çalıştığında `null`.

**sender** `email_address or user | null` *required*

`config.sender_id`'nin belirttiği gönderen. Bir `wait` üzerinde ve adım varsayılan gönderenden gönderdiğinde `null`.

**source\_code** `string | null` *required*

Bir `email` veya `message` adımının kodu: varsayılan dışa aktarımı üyeyi alan ve `whop:message`'dan `message.send()`, `message.skip()` veya `message.exit()` döndüren bir TSX modülü. Bir `email` adımı `subject` değerini, gövde olarak `react` öğesini ve düz metin kısmı olarak `text` değerini gönderir. Bir `message` adımı `text` değerini gönderir. Kod `react` ve `@react-email/components` içe aktarabilir. Hesabı, yalnızca okuyabilen `whop:message`'daki `whop` istemcisi üzerinden okur. Bu istemci, bir adımı önizleme için listelendiği gibi, hem yönetici rolünün hem de Whop AI'nın sahip olduğu her hesap düzeyindeki `:read` iznine, `payout:account:read` hariç, sahiptir. Bunu ayarlamak veya adımı önizlemek bu izinlerin her birini gerektirir. En fazla 64.000 karakter. Bir `wait` üzerinde ve yazılana kadar `null`.

**updated\_at** `string` *required*

Adımın en son güncellendiği zaman, ISO 8601 zaman damgası olarak.

**version** `integer` *required*

Bu adımın parçası olduğu otomasyon sürümü. Yalnızca taslak sürümün adımları değiştirilebilir.

**waiting\_enrollments\_count** `integer` *required*

Bu adımın sürümünde, adımın çalışmasını bekleyen üyeler.

```json AutomationStep theme={null}
{
	"id": "atos_xxxxxxxxxxxxxx",
	"automation_id": "ato_xxxxxxxxxxxxxx",
	"version": 3,
	"key": 2,
	"previous_step_id": "atos_yyyyyyyyyyyyyy",
	"action_type": "email",
	"config": {
		"sender_id": "emaddr_xxxxxxxxxxxxxx"
	},
	"sender": {
		"id": "emaddr_xxxxxxxxxxxxxx",
		"object": "email_address",
		"address": "support@shinetime.example"
	},
	"source_code": "export default () => message.send({ subject: \"Thanks for booking!\", text: \"See you on Saturday.\" });",
	"issues": [],
	"waiting_enrollments_count": 5,
	"created_at": "2026-10-01T15:30:00.000Z",
	"updated_at": "2026-10-02T08:45:00.000Z"
}
```


## Related topics

- [List Automation Steps](https://docs.whop.com/tr/api-reference/automation-steps/list-automation-steps.md)
- [Automations API](https://docs.whop.com/tr/api-reference/automations/automation.md)
- [Delete Automation Step](https://docs.whop.com/tr/api-reference/automation-steps/delete-automation-step.md)
