---
title: "Create Inbox Automation"
method: POST
path: "/v1/inbox_automation"
tags: ["inbox_automation"]
---

# Create Inbox Automation

`POST /v1/inbox_automation`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/inbox_automation`
- Auth: HTTP bearer

## Request body

- CreateInboxAutomationPayload
  - `name` string, required
  - `facebook_account_id` string, nullable
  - `instagram_business_account_id` string, nullable
  - `instagram_user_id` string, nullable
  - `messages_tree` InboxAutomationMessageNode, required
    - `id` string, required
    - `from` 'USER' | 'SYSTEM'
    - `type` 'INPUT' | 'CHOICE', required
    - `message` string, required
    - `error_message` string, nullable
    - `save_to_field_key` string, nullable
    - `childrens` InboxAutomationMessageNode[]
  - `is_active` boolean
  - `is_deleted` boolean
  - `is_universal` boolean
  - `automation_id` integer, nullable
  - `keyword_trigger_type` 'EXACT_MATCH' | 'CONTAINS'
  - `media_source` 'INSTAGRAM' | 'FACEBOOK'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
