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

# Criar uma automação

> Crie uma automação do Instagram a partir de uma configuração tipada completa e receba o ID, o status, o tipo de gatilho, os carimbos de tempo e a configuração armazenada.

Crie uma automação enviando um `account_id` acessível, um `name`, um `status` e
uma `configuration` completa. Os quatro campos são obrigatórios e nenhum outro
campo é aceito. Sua chave de API precisa do escopo `automations:write`.

Não existem identificadores de modelo na API v1. A configuração que você envia
é a configuração que a automação executa.

## Escolha o status inicial

`status` é um enum com dois valores:

| Valor | Resultado |
| - | - |
| `draft` | A automação fica armazenada, mas não processa gatilhos. |
| `live` | A configuração é validada, publicada e passa a processar os gatilhos correspondentes. |

Criar uma automação `live` exige o escopo `automations:activate` além de
`automations:write`. Crie primeiro um `draft` quando quiser revisar a
configuração armazenada antes que ela entre em operação.

Uma requisição bem-sucedida retorna `201` com a automação armazenada.

## Envie a configuração completa

`configuration` é um objeto tipado e completo. Não é uma mesclagem parcial e
não conta com valores padrão do servidor. Cinco seções são obrigatórias:

| Seção | Finalidade |
| - | - |
| `contact_filter` | Quais contatos a automação pode responder. |
| `trigger` | O que inicia a automação e qual publicação ou quais palavras-chave ela observa. |
| `opening` | A primeira mensagem direta e a resposta pública opcional. |
| `follow_up` | As ações ordenadas depois da mensagem de abertura, ou `null`. |
| `extras` | O comportamento de espera entre gatilhos repetidos. |

O [documento OpenAPI](/openapi/v1.json) é a fonte de verdade de cada campo,
enum, limite e formato de ação aninhada. O schema `PublicAutomationCreateV1`
dele define o corpo completo da requisição. A API recusa propriedades
desconhecidas e retorna `422` com `api_automation_invalid_configuration` e uma
lista de problemas em `error.details.issues`.

Use [Listar mídias do Instagram](/pt-BR/api/v1/accounts/media) para encontrar o
`id` da mídia de um gatilho que observa uma publicação específica.

## Exemplo de requisição

```bash theme={null}
curl --request POST \
  --url 'https://levios.app/api/v1/automations' \
  --header "Authorization: Bearer ${LEVIOS_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data @- <<JSON
{
  "account_id": "${LEVIOS_ACCOUNT_ID}",
  "name": "Guide request",
  "status": "draft",
  "configuration": {
    "contact_filter": "anyone",
    "trigger": {
      "type": "comment",
      "publication": {
        "mode": "all"
      },
      "keywords": {
        "mode": "specific",
        "match_mode": "whole_word",
        "values": ["guide"]
      }
    },
    "opening": {
      "direct_message": {
        "delay_seconds": 0,
        "message": {
          "text": "Here is the guide you asked for.",
          "buttons": [
            {
              "type": "url",
              "title": "Open the guide",
              "url": "https://example.com/guide"
            }
          ]
        }
      },
      "public_reply": {
        "enabled": false
      }
    },
    "follow_up": null,
    "extras": {
      "cooldown": {
        "mode": "none"
      }
    }
  }
}
JSON
```

## Comportamento em retentativas

Criar uma automação não é idempotente. Uma retentativa automática pode criar
uma segunda automação.

<Warning>
  Se a API retornar `api_automation_committed_response_unavailable` com
  `committed: true` e `retryable: false`, a automação foi criada, mas a API não
  conseguiu verificar a resposta. Não repita a chamada automaticamente. Liste as
  automações da conta antes de criar outra.
</Warning>

## Mensagens em carrossel

Consulte [Enviar mensagens em carrossel](/pt-BR/guides/carousels) para cards
com imagens, botões de link, uma requisição completa e uma mensagem posterior
separada.

## Exemplo de resposta de sucesso

IDs, horários e conteúdo ilustrativos. HTTP `201`.

```json theme={null}
{
  "automation": {
    "id": "00000000-0000-4000-8000-000000000002",
    "account_id": "00000000-0000-4000-8000-000000000001",
    "name": "Guide request",
    "status": "draft",
    "has_unpublished_changes": false,
    "draft_updated_at": null,
    "created_at": "2026-09-01T12:00:00.000000Z",
    "updated_at": "2026-09-01T12:00:00.000000Z",
    "trigger_type": "comment",
    "configuration": {
      "contact_filter": "anyone",
      "trigger": {
        "type": "comment",
        "publication": {
          "mode": "all"
        },
        "keywords": {
          "mode": "specific",
          "match_mode": "whole_word",
          "values": [
            "guide"
          ]
        }
      },
      "opening": {
        "public_reply": {
          "enabled": false
        },
        "direct_message": {
          "delay_seconds": 0,
          "message": {
            "text": "Here is the guide you asked for.",
            "buttons": [
              {
                "type": "url",
                "title": "Open the guide",
                "url": "https://example.com/guide"
              }
            ]
          }
        }
      },
      "follow_up": null,
      "extras": {
        "cooldown": {
          "mode": "none"
        }
      }
    },
    "authoring_compatibility": "public_v1"
  }
}
```

## Guias de criação

* [Criação e edição](/pt-BR/guides/automation-workflow)
* [Configuração](/pt-BR/guides/automation-configuration)
* [Triggers](/pt-BR/guides/automation-triggers)
* [Actions](/pt-BR/guides/automation-actions)
* [Criação pelo MCP](/pt-BR/mcp/automation-authoring)


## OpenAPI

````yaml openapi/v1.json POST /api/v1/automations
openapi: 3.1.0
info:
  title: levios public API
  version: '1'
servers:
  - url: https://levios.app
security:
  - bearerAuth: []
paths:
  /api/v1/automations:
    post:
      tags:
        - automation
      summary: Create an automation
      description: >-
        Creates a completely configured draft or live automation for one
        Instagram account.
      operationId: automations.create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicAutomationCreateV1'
      responses:
        '201':
          description: Successful response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicAutomationDetailResponseV1'
        '400':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_invalid_content_length
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - Invalid Content-Length.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_invalid_json
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The request body is not valid JSON.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_invalid_request_url
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The request URL is invalid.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_invalid_utf8
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The request body is not valid UTF-8.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
        '401':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
            WWW-Authenticate:
              description: API key Bearer challenge.
              schema:
                type: string
                enum:
                  - Bearer
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - api_unauthorized
                      correlation_id:
                        type: string
                      message:
                        type: string
                        enum:
                          - Authentication required.
                    required:
                      - code
                      - message
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '402':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - api_automation_plan_limit
                      correlation_id:
                        type: string
                      details:
                        $ref: '#/components/schemas/PublicAutomationPlanDetailsV1'
                      message:
                        type: string
                        enum:
                          - The account plan does not allow this automation.
                    required:
                      - code
                      - message
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '403':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_account_not_granted
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - >-
                                This credential is not authorized for the
                                request.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_forbidden
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - >-
                                This credential is not authorized for the
                                request.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_scope_denied
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - >-
                                This credential is not authorized for the
                                request.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
        '404':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_media_not_found
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The referenced Instagram media was not found.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_contact_tag_not_found
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The referenced contact tag was not found.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
        '413':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_body_too_large
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The JSON request body exceeds 1 MiB.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_json_too_deep
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The JSON request body exceeds maximum depth.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
        '415':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - api_unsupported_media_type
                      correlation_id:
                        type: string
                      message:
                        type: string
                        enum:
                          - Content-Type must be application/json.
                    required:
                      - code
                      - message
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '422':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_follow_up_missing
                          correlation_id:
                            type: string
                          details:
                            $ref: >-
                              #/components/schemas/PublicAutomationValidationDetailsV1
                          message:
                            type: string
                            enum:
                              - >-
                                A start_follow_up opening button requires a
                                follow-up.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_follow_up_requires_button
                          correlation_id:
                            type: string
                          details:
                            $ref: >-
                              #/components/schemas/PublicAutomationValidationDetailsV1
                          message:
                            type: string
                            enum:
                              - >-
                                A follow-up requires exactly one start_follow_up
                                opening button.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_invalid_configuration
                          correlation_id:
                            type: string
                          details:
                            $ref: >-
                              #/components/schemas/PublicAutomationValidationDetailsV1
                          message:
                            type: string
                            enum:
                              - >-
                                Configuration fields do not match the public
                                automation contract.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_unsupported_action_order
                          correlation_id:
                            type: string
                          details:
                            $ref: >-
                              #/components/schemas/PublicAutomationValidationDetailsV1
                          message:
                            type: string
                            enum:
                              - Follow-up actions are not in a supported order.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_unsupported_trigger
                          correlation_id:
                            type: string
                          details:
                            $ref: >-
                              #/components/schemas/PublicAutomationValidationDetailsV1
                          message:
                            type: string
                            enum:
                              - >-
                                Trigger fields do not match a supported public
                                automation type.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_validation_error
                          correlation_id:
                            type: string
                          details:
                            type: object
                            properties:
                              issues:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    code:
                                      type: string
                                      minLength: 1
                                      maxLength: 64
                                    path:
                                      type: array
                                      items:
                                        type: integer
                                        minimum: 0
                                      maxItems: 16
                                  required:
                                    - code
                                    - path
                                  additionalProperties: false
                                maxItems: 32
                            required:
                              - issues
                            additionalProperties: false
                          message:
                            type: string
                            enum:
                              - The request does not match the declared schema.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
        '429':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - rate_limited
                      correlation_id:
                        type: string
                      message:
                        type: string
                        enum:
                          - Rate limit exceeded.
                    required:
                      - code
                      - message
                    additionalProperties: false
                required:
                  - error
                additionalProperties: false
        '500':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_committed_response_unavailable
                          correlation_id:
                            type: string
                          details:
                            type: object
                            properties:
                              committed:
                                type: boolean
                                enum:
                                  - true
                              retryable:
                                type: boolean
                                enum:
                                  - false
                            required:
                              - committed
                              - retryable
                            additionalProperties: false
                          message:
                            type: string
                            enum:
                              - >-
                                The automation committed, but its response could
                                not be verified. Do not retry automatically.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_internal_error
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The request could not be completed.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
        '503':
          description: Error response.
          headers:
            X-Correlation-ID:
              description: Correlation identifier for this request.
              schema:
                type: string
                pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_account_resolution_unavailable
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The reachable account set could not be read.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_automation_authoring_unavailable
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The automation could not be authored.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - api_credential_attribution_unavailable
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - The credential attribution is unavailable.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                            enum:
                              - rate_limiter_unavailable
                          correlation_id:
                            type: string
                          message:
                            type: string
                            enum:
                              - Rate limiter unavailable.
                        required:
                          - code
                          - message
                        additionalProperties: false
                    required:
                      - error
                    additionalProperties: false
components:
  schemas:
    PublicAutomationCreateV1:
      $ref: 5dc0552f-a96f-4077-afbc-b6775542f08c
      $defs:
        PublicAutomationCreateV1:
          additionalProperties: false
          examples:
            - account_id: 11111111-1111-4111-8111-111111111111
              configuration:
                contact_filter: anyone
                extras:
                  cooldown:
                    mode: fixed
                    seconds: 21600
                follow_up:
                  actions:
                    - delay_seconds: 0
                      expires_in_seconds: 86400
                      max_attempts: 3
                      message: What is your best email address?
                      retry_exhausted_action: stop
                      retry_message: Send a valid email address.
                      type: ask_for_email
                    - buttons:
                        - title: Open content
                          type: url
                          url: https://example.com/content
                      delay_seconds: 0
                      text: Here is your access link.
                      type: send_message
                    - type: finish
                opening:
                  direct_message:
                    delay_seconds: 0
                    message:
                      buttons:
                        - title: Continue
                          type: start_follow_up
                      text: Tap below to continue.
                  public_reply:
                    delay_seconds: 0
                    enabled: true
                    max_per_post: 50
                    mention_mode: none
                    messages:
                      - I sent it by DM.
                    rotation: random
                trigger:
                  keywords:
                    match_mode: whole_word
                    mode: specific
                    values:
                      - guide
                  publication:
                    mode: specific
                    reference:
                      type: url
                      value: https://www.instagram.com/p/ABC123/
                  type: comment
              name: Send the guide by DM
              status: draft
          properties:
            account_id:
              format: uuid
              type: string
            configuration:
              additionalProperties: false
              properties:
                contact_filter:
                  description: >-
                    `anyone` — every eligible contact; `followers_only` —
                    confirmed followers; `non_followers_only` — confirmed
                    non-followers; `previous_dm_contacts` — contacts with an
                    inbound DM before this trigger; `existing_contacts` —
                    contacts already known before this trigger.
                  enum:
                    - anyone
                    - followers_only
                    - non_followers_only
                    - previous_dm_contacts
                    - existing_contacts
                  type: string
                extras:
                  additionalProperties: false
                  properties:
                    cooldown:
                      anyOf:
                        - additionalProperties: false
                          properties:
                            mode:
                              const: none
                              type: string
                          required:
                            - mode
                          type: object
                        - additionalProperties: false
                          properties:
                            mode:
                              const: fixed
                              type: string
                            seconds:
                              maximum: 2592000
                              minimum: 1
                              type: integer
                          required:
                            - mode
                            - seconds
                          type: object
                  required:
                    - cooldown
                  type: object
                follow_up:
                  anyOf:
                    - type: 'null'
                    - additionalProperties: false
                      properties:
                        actions:
                          items:
                            anyOf:
                              - anyOf:
                                  - additionalProperties: false
                                    properties:
                                      buttons:
                                        items:
                                          additionalProperties: false
                                          properties:
                                            title:
                                              description: >-
                                                Button title. Length is 1 through 20
                                                Unicode scalar values.
                                              pattern: >-
                                                ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                              type: string
                                            type:
                                              const: url
                                              type: string
                                            url:
                                              pattern: >-
                                                ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                              type: string
                                          required:
                                            - type
                                            - title
                                            - url
                                          type: object
                                        maxItems: 0
                                        minItems: 0
                                        type: array
                                      delay_seconds:
                                        maximum: 86399
                                        minimum: 0
                                        type: integer
                                      text:
                                        description: >-
                                          Message text. Length is 1 through 1000
                                          Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                        type: string
                                      type:
                                        const: send_message
                                        type: string
                                    required:
                                      - type
                                      - delay_seconds
                                      - text
                                      - buttons
                                    type: object
                                  - additionalProperties: false
                                    properties:
                                      buttons:
                                        items:
                                          additionalProperties: false
                                          properties:
                                            title:
                                              description: >-
                                                Button title. Length is 1 through 20
                                                Unicode scalar values.
                                              pattern: >-
                                                ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                              type: string
                                            type:
                                              const: url
                                              type: string
                                            url:
                                              pattern: >-
                                                ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                              type: string
                                          required:
                                            - type
                                            - title
                                            - url
                                          type: object
                                        maxItems: 3
                                        minItems: 1
                                        type: array
                                      delay_seconds:
                                        maximum: 86399
                                        minimum: 0
                                        type: integer
                                      text:
                                        description: >-
                                          Message text. Length is 1 through 640
                                          Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                        type: string
                                      type:
                                        const: send_message
                                        type: string
                                    required:
                                      - type
                                      - delay_seconds
                                      - text
                                      - buttons
                                    type: object
                              - additionalProperties: false
                                properties:
                                  delay_seconds:
                                    maximum: 86399
                                    minimum: 0
                                    type: integer
                                  media_type:
                                    description: >-
                                      `image`, `video`, `audio`, or `file`
                                      identifies the outbound Instagram
                                      attachment type.
                                    enum:
                                      - image
                                      - video
                                      - audio
                                      - file
                                    type: string
                                  type:
                                    const: send_media
                                    type: string
                                  url:
                                    pattern: >-
                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                    type: string
                                required:
                                  - type
                                  - delay_seconds
                                  - media_type
                                  - url
                                type: object
                              - additionalProperties: false
                                properties:
                                  cards:
                                    items:
                                      additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            additionalProperties: false
                                            properties:
                                              title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                              type:
                                                const: url
                                                type: string
                                              url:
                                                pattern: >-
                                                  ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                type: string
                                            required:
                                              - type
                                              - title
                                              - url
                                            type: object
                                          maxItems: 3
                                          minItems: 1
                                          type: array
                                        image_url:
                                          pattern: >-
                                            ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                          type: string
                                        subtitle:
                                          description: >-
                                            Card subtitle. Length is 0 through 80
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){0,80}$
                                          type: string
                                        title:
                                          description: >-
                                            Card title. Length is 1 through 80
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,80}$
                                          type: string
                                      required:
                                        - title
                                        - image_url
                                        - buttons
                                      type: object
                                    maxItems: 10
                                    minItems: 1
                                    type: array
                                  delay_seconds:
                                    maximum: 86399
                                    minimum: 0
                                    type: integer
                                  type:
                                    const: send_carousel
                                    type: string
                                required:
                                  - type
                                  - delay_seconds
                                  - cards
                                type: object
                              - additionalProperties: false
                                properties:
                                  buttons:
                                    additionalProperties: false
                                    properties:
                                      confirm_title:
                                        description: >-
                                          Button title. Length is 1 through 20
                                          Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                        type: string
                                      open_profile_title:
                                        description: >-
                                          Button title. Length is 1 through 20
                                          Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                        type: string
                                    required:
                                      - open_profile_title
                                      - confirm_title
                                    type: object
                                  delay_seconds:
                                    maximum: 86399
                                    minimum: 0
                                    type: integer
                                  expires_in_seconds:
                                    maximum: 604800
                                    minimum: 60
                                    type: integer
                                  max_attempts:
                                    maximum: 10
                                    minimum: 1
                                    type: integer
                                  message:
                                    description: >-
                                      Message text. Length is 1 through 640
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                    type: string
                                  not_following_message:
                                    anyOf:
                                      - description: >-
                                          Message text. Length is 1 through 640
                                          Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                        type: string
                                      - type: 'null'
                                    description: >-
                                      Message text. Length is 1 through 640
                                      Unicode scalar values.
                                  recheck_after_seconds:
                                    maximum: 86400
                                    minimum: 60
                                    type: integer
                                  retry_exhausted_action:
                                    description: >-
                                      `continue` — continue after the retry
                                      limit; `stop` — end the active gate after
                                      the retry limit.
                                    enum:
                                      - continue
                                      - stop
                                    type: string
                                  type:
                                    const: ask_to_follow
                                    type: string
                                  verification_mode:
                                    description: >-
                                      `trusted_click` — trust the confirmation
                                      click; `strict` — verify follow status
                                      with Instagram.
                                    enum:
                                      - trusted_click
                                      - strict
                                    type: string
                                required:
                                  - type
                                  - delay_seconds
                                  - message
                                  - buttons
                                  - verification_mode
                                  - not_following_message
                                  - max_attempts
                                  - retry_exhausted_action
                                  - recheck_after_seconds
                                  - expires_in_seconds
                                type: object
                              - additionalProperties: false
                                properties:
                                  delay_seconds:
                                    maximum: 86399
                                    minimum: 0
                                    type: integer
                                  expires_in_seconds:
                                    maximum: 604800
                                    minimum: 60
                                    type: integer
                                  max_attempts:
                                    maximum: 5
                                    minimum: 1
                                    type: integer
                                  message:
                                    description: >-
                                      Message text. Length is 1 through 1000
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                    type: string
                                  retry_exhausted_action:
                                    description: >-
                                      `continue` — continue after the retry
                                      limit; `stop` — end the active gate after
                                      the retry limit.
                                    enum:
                                      - continue
                                      - stop
                                    type: string
                                  retry_message:
                                    description: >-
                                      Message text. Length is 1 through 1000
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                    type: string
                                  type:
                                    const: ask_for_email
                                    type: string
                                required:
                                  - type
                                  - delay_seconds
                                  - message
                                  - retry_message
                                  - max_attempts
                                  - retry_exhausted_action
                                  - expires_in_seconds
                                type: object
                              - additionalProperties: false
                                properties:
                                  delay_seconds:
                                    maximum: 86399
                                    minimum: 0
                                    type: integer
                                  expires_in_seconds:
                                    maximum: 604800
                                    minimum: 60
                                    type: integer
                                  max_attempts:
                                    maximum: 5
                                    minimum: 1
                                    type: integer
                                  message:
                                    description: >-
                                      Message text. Length is 1 through 1000
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                    type: string
                                  retry_exhausted_action:
                                    description: >-
                                      `continue` — continue after the retry
                                      limit; `stop` — end the active gate after
                                      the retry limit.
                                    enum:
                                      - continue
                                      - stop
                                    type: string
                                  retry_message:
                                    description: >-
                                      Message text. Length is 1 through 1000
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                    type: string
                                  type:
                                    const: ask_for_phone
                                    type: string
                                required:
                                  - type
                                  - delay_seconds
                                  - message
                                  - retry_message
                                  - max_attempts
                                  - retry_exhausted_action
                                  - expires_in_seconds
                                type: object
                              - additionalProperties: false
                                properties:
                                  delay_seconds:
                                    maximum: 2592000
                                    minimum: 0
                                    type: integer
                                  tag_id:
                                    format: uuid
                                    type: string
                                  type:
                                    const: add_contact_tag
                                    type: string
                                required:
                                  - type
                                  - delay_seconds
                                  - tag_id
                                type: object
                              - additionalProperties: false
                                properties:
                                  type:
                                    const: finish
                                    type: string
                                required:
                                  - type
                                type: object
                          maxItems: 20
                          minItems: 1
                          type: array
                      required:
                        - actions
                      type: object
                opening:
                  additionalProperties: false
                  properties:
                    direct_message:
                      additionalProperties: false
                      properties:
                        delay_seconds:
                          maximum: 86400
                          minimum: 0
                          type: integer
                        message:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                buttons:
                                  items:
                                    anyOf:
                                      - additionalProperties: false
                                        properties:
                                          title:
                                            description: >-
                                              Button title. Length is 1 through 20
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                            type: string
                                          type:
                                            const: start_follow_up
                                            type: string
                                        required:
                                          - type
                                          - title
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          title:
                                            description: >-
                                              Button title. Length is 1 through 20
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                            type: string
                                          type:
                                            const: url
                                            type: string
                                          url:
                                            pattern: >-
                                              ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                            type: string
                                        required:
                                          - type
                                          - title
                                          - url
                                        type: object
                                  maxItems: 0
                                  minItems: 0
                                  type: array
                                text:
                                  description: >-
                                    Message text. Length is 1 through 1000
                                    Unicode scalar values.
                                  pattern: >-
                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                  type: string
                              required:
                                - text
                                - buttons
                              type: object
                            - additionalProperties: false
                              properties:
                                buttons:
                                  items:
                                    anyOf:
                                      - additionalProperties: false
                                        properties:
                                          title:
                                            description: >-
                                              Button title. Length is 1 through 20
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                            type: string
                                          type:
                                            const: start_follow_up
                                            type: string
                                        required:
                                          - type
                                          - title
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          title:
                                            description: >-
                                              Button title. Length is 1 through 20
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                            type: string
                                          type:
                                            const: url
                                            type: string
                                          url:
                                            pattern: >-
                                              ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                            type: string
                                        required:
                                          - type
                                          - title
                                          - url
                                        type: object
                                  maxItems: 3
                                  minItems: 1
                                  type: array
                                text:
                                  description: >-
                                    Message text. Length is 1 through 640
                                    Unicode scalar values.
                                  pattern: >-
                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                  type: string
                              required:
                                - text
                                - buttons
                              type: object
                      required:
                        - delay_seconds
                        - message
                      type: object
                    public_reply:
                      anyOf:
                        - additionalProperties: false
                          properties:
                            enabled:
                              const: false
                              type: boolean
                          required:
                            - enabled
                          type: object
                        - additionalProperties: false
                          properties:
                            delay_seconds:
                              maximum: 86400
                              minimum: 0
                              type: integer
                            enabled:
                              const: true
                              type: boolean
                            max_per_post:
                              maximum: 200
                              minimum: 1
                              type: integer
                            mention_mode:
                              description: >-
                                `none` — do not prefix a mention; `contact` —
                                mention the contact; `account` — mention the
                                account.
                              enum:
                                - none
                                - contact
                                - account
                              type: string
                            messages:
                              items:
                                description: >-
                                  Public reply message. Length is 1 through 280
                                  Unicode scalar values.
                                pattern: >-
                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,280}$
                                type: string
                              minItems: 1
                              type: array
                            rotation:
                              description: >-
                                `random` — choose a response randomly;
                                `sequential` — rotate responses in their
                                submitted order.
                              enum:
                                - random
                                - sequential
                              type: string
                          required:
                            - enabled
                            - delay_seconds
                            - messages
                            - rotation
                            - mention_mode
                            - max_per_post
                          type: object
                  required:
                    - public_reply
                    - direct_message
                  type: object
                trigger:
                  anyOf:
                    - additionalProperties: false
                      properties:
                        keywords:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: any
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                match_mode:
                                  description: >-
                                    `whole_word` — match an isolated keyword or
                                    phrase; `substring` — match it anywhere in
                                    the text.
                                  enum:
                                    - whole_word
                                    - substring
                                  type: string
                                mode:
                                  const: specific
                                  type: string
                                values:
                                  items:
                                    description: >-
                                      Keyword or phrase. Length is 1 through 100
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,100}$
                                    type: string
                                  maxItems: 50
                                  minItems: 1
                                  type: array
                              required:
                                - mode
                                - match_mode
                                - values
                              type: object
                        publication:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: all
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: next_published
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: specific
                                  type: string
                                reference:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        type:
                                          const: id
                                          type: string
                                        value:
                                          description: >-
                                            Opaque Instagram media ID returned by
                                            Levios discovery. Use 1 through 256
                                            printable ASCII characters.
                                          pattern: ^[!-~]{1,256}$
                                          type: string
                                      required:
                                        - type
                                        - value
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        type:
                                          const: url
                                          type: string
                                        value:
                                          pattern: >-
                                            ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]:\/\/(?:[Ww][Ww][Ww]\.)?[Ii][Nn][Ss][Tt][Aa][Gg][Rr][Aa][Mm]\.[Cc][Oo][Mm]\/(?:[Pp]|[Rr][Ee][Ee][Ll])\/[A-Za-z0-9_-]+\/?(?:[?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                          type: string
                                      required:
                                        - type
                                        - value
                                      type: object
                              required:
                                - mode
                                - reference
                              type: object
                        type:
                          const: comment
                          type: string
                      required:
                        - type
                        - publication
                        - keywords
                      type: object
                    - additionalProperties: false
                      properties:
                        keywords:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: any
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                match_mode:
                                  description: >-
                                    `whole_word` — match an isolated keyword or
                                    phrase; `substring` — match it anywhere in
                                    the text.
                                  enum:
                                    - whole_word
                                    - substring
                                  type: string
                                mode:
                                  const: specific
                                  type: string
                                values:
                                  items:
                                    description: >-
                                      Keyword or phrase. Length is 1 through 100
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,100}$
                                    type: string
                                  maxItems: 50
                                  minItems: 1
                                  type: array
                              required:
                                - mode
                                - match_mode
                                - values
                              type: object
                        response_type:
                          const: text
                          type: string
                        story:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: any
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: specific
                                  type: string
                                reference:
                                  additionalProperties: false
                                  properties:
                                    type:
                                      const: id
                                      type: string
                                    value:
                                      description: >-
                                        Opaque Instagram media ID returned by
                                        Levios discovery. Use 1 through 256
                                        printable ASCII characters.
                                      pattern: ^[!-~]{1,256}$
                                      type: string
                                  required:
                                    - type
                                    - value
                                  type: object
                              required:
                                - mode
                                - reference
                              type: object
                        type:
                          const: story_reply
                          type: string
                      required:
                        - type
                        - response_type
                        - story
                        - keywords
                      type: object
                    - additionalProperties: false
                      properties:
                        reactions:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: any
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                emojis:
                                  items:
                                    description: >-
                                      Reaction emoji. Length is 1 through 16
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,16}$
                                    type: string
                                  maxItems: 50
                                  minItems: 1
                                  type: array
                                mode:
                                  const: specific
                                  type: string
                              required:
                                - mode
                                - emojis
                              type: object
                        response_type:
                          const: reaction
                          type: string
                        story:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: any
                                  type: string
                              required:
                                - mode
                              type: object
                            - additionalProperties: false
                              properties:
                                mode:
                                  const: specific
                                  type: string
                                reference:
                                  additionalProperties: false
                                  properties:
                                    type:
                                      const: id
                                      type: string
                                    value:
                                      description: >-
                                        Opaque Instagram media ID returned by
                                        Levios discovery. Use 1 through 256
                                        printable ASCII characters.
                                      pattern: ^[!-~]{1,256}$
                                      type: string
                                  required:
                                    - type
                                    - value
                                  type: object
                              required:
                                - mode
                                - reference
                              type: object
                        type:
                          const: story_reply
                          type: string
                      required:
                        - type
                        - response_type
                        - story
                        - reactions
                      type: object
                    - additionalProperties: false
                      properties:
                        keywords:
                          additionalProperties: false
                          properties:
                            match_mode:
                              description: >-
                                `whole_word` — match an isolated keyword or
                                phrase; `substring` — match it anywhere in the
                                text.
                              enum:
                                - whole_word
                                - substring
                              type: string
                            mode:
                              const: specific
                              type: string
                            values:
                              items:
                                description: >-
                                  Keyword or phrase. Length is 1 through 100
                                  Unicode scalar values.
                                pattern: >-
                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,100}$
                                type: string
                              maxItems: 50
                              minItems: 1
                              type: array
                          required:
                            - mode
                            - match_mode
                            - values
                          type: object
                        type:
                          const: dm_keyword
                          type: string
                      required:
                        - type
                        - keywords
                      type: object
                    - additionalProperties: false
                      properties:
                        type:
                          const: story_mention
                          type: string
                      required:
                        - type
                      type: object
              required:
                - contact_filter
                - opening
                - follow_up
                - extras
                - trigger
              type: object
            name:
              description: >-
                Automation name. Use 1 through 120 Unicode scalar values,
                without surrounding whitespace or control characters.
              pattern: >-
                ^(?!\s)(?![\s\S]*\s$)(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000-\u001F\u007F-\u009F\uD800-\uDFFF])){1,120}$
              type: string
            status:
              description: >-
                `draft` — save without processing triggers; `live` — atomically
                publish and activate.
              enum:
                - draft
                - live
              type: string
          required:
            - account_id
            - name
            - status
            - configuration
          type: object
      $id: https://levios.app/schemas/public-automation-create-v1
      $schema: https://json-schema.org/draft/2019-09/schema#
      title: PublicAutomationCreateV1
      x-levios-max-serialized-bytes: 1048576
      x-levios-schema-version: 1
    PublicAutomationDetailResponseV1:
      $ref: 647e4b29-b1dd-4a40-a884-dc035e334b06
      $defs:
        PublicAutomationDetailResponseV1:
          additionalProperties: false
          properties:
            automation:
              anyOf:
                - additionalProperties: false
                  properties:
                    account_id:
                      format: uuid
                      type: string
                    authoring_compatibility:
                      const: public_v1
                      type: string
                    configuration:
                      additionalProperties: false
                      properties:
                        contact_filter:
                          description: >-
                            `anyone` — every eligible contact; `followers_only`
                            — confirmed followers; `non_followers_only` —
                            confirmed non-followers; `previous_dm_contacts` —
                            contacts with an inbound DM before this trigger;
                            `existing_contacts` — contacts already known before
                            this trigger.
                          enum:
                            - anyone
                            - followers_only
                            - non_followers_only
                            - previous_dm_contacts
                            - existing_contacts
                          type: string
                        extras:
                          additionalProperties: false
                          properties:
                            cooldown:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: none
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: fixed
                                      type: string
                                    seconds:
                                      maximum: 2592000
                                      minimum: 1
                                      type: integer
                                  required:
                                    - mode
                                    - seconds
                                  type: object
                          required:
                            - cooldown
                          type: object
                        follow_up:
                          anyOf:
                            - type: 'null'
                            - additionalProperties: false
                              properties:
                                actions:
                                  items:
                                    anyOf:
                                      - anyOf:
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 0
                                                minItems: 0
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 1000
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 3
                                                minItems: 1
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          media_type:
                                            description: >-
                                              `image`, `video`, `audio`, or `file`
                                              identifies the outbound Instagram
                                              attachment type.
                                            enum:
                                              - image
                                              - video
                                              - audio
                                              - file
                                            type: string
                                          type:
                                            const: send_media
                                            type: string
                                          url:
                                            pattern: >-
                                              ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - media_type
                                          - url
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          cards:
                                            items:
                                              additionalProperties: false
                                              properties:
                                                buttons:
                                                  items:
                                                    additionalProperties: false
                                                    properties:
                                                      title:
                                                        description: >-
                                                          Button title. Length is 1 through 20
                                                          Unicode scalar values.
                                                        pattern: >-
                                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                        type: string
                                                      type:
                                                        const: url
                                                        type: string
                                                      url:
                                                        pattern: >-
                                                          ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                        type: string
                                                    required:
                                                      - type
                                                      - title
                                                      - url
                                                    type: object
                                                  maxItems: 3
                                                  minItems: 1
                                                  type: array
                                                image_url:
                                                  pattern: >-
                                                    ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                  type: string
                                                subtitle:
                                                  description: >-
                                                    Card subtitle. Length is 0 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){0,80}$
                                                  type: string
                                                title:
                                                  description: >-
                                                    Card title. Length is 1 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,80}$
                                                  type: string
                                              required:
                                                - title
                                                - image_url
                                                - buttons
                                              type: object
                                            maxItems: 10
                                            minItems: 1
                                            type: array
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          type:
                                            const: send_carousel
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - cards
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          buttons:
                                            additionalProperties: false
                                            properties:
                                              confirm_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                              open_profile_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                            required:
                                              - open_profile_title
                                              - confirm_title
                                            type: object
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 10
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                            type: string
                                          not_following_message:
                                            anyOf:
                                              - description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              - type: 'null'
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                          recheck_after_seconds:
                                            maximum: 86400
                                            minimum: 60
                                            type: integer
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          type:
                                            const: ask_to_follow
                                            type: string
                                          verification_mode:
                                            description: >-
                                              `trusted_click` — trust the confirmation
                                              click; `strict` — verify follow status
                                              with Instagram.
                                            enum:
                                              - trusted_click
                                              - strict
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - buttons
                                          - verification_mode
                                          - not_following_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - recheck_after_seconds
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_email
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_phone
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 2592000
                                            minimum: 0
                                            type: integer
                                          tag_id:
                                            format: uuid
                                            type: string
                                          type:
                                            const: add_contact_tag
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - tag_id
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          type:
                                            const: finish
                                            type: string
                                        required:
                                          - type
                                        type: object
                                  maxItems: 20
                                  minItems: 1
                                  type: array
                              required:
                                - actions
                              type: object
                        opening:
                          additionalProperties: false
                          properties:
                            direct_message:
                              additionalProperties: false
                              properties:
                                delay_seconds:
                                  maximum: 86400
                                  minimum: 0
                                  type: integer
                                message:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 0
                                          minItems: 0
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 1000
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 3
                                          minItems: 1
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 640
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                              required:
                                - delay_seconds
                                - message
                              type: object
                            public_reply:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    enabled:
                                      const: false
                                      type: boolean
                                  required:
                                    - enabled
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    delay_seconds:
                                      maximum: 86400
                                      minimum: 0
                                      type: integer
                                    enabled:
                                      const: true
                                      type: boolean
                                    max_per_post:
                                      maximum: 200
                                      minimum: 1
                                      type: integer
                                    mention_mode:
                                      description: >-
                                        `none` — do not prefix a mention;
                                        `contact` — mention the contact;
                                        `account` — mention the account.
                                      enum:
                                        - none
                                        - contact
                                        - account
                                      type: string
                                    messages:
                                      items:
                                        description: >-
                                          Public reply message. Length is 1
                                          through 280 Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,280}$
                                        type: string
                                      minItems: 1
                                      type: array
                                    rotation:
                                      description: >-
                                        `random` — choose a response randomly;
                                        `sequential` — rotate responses in their
                                        submitted order.
                                      enum:
                                        - random
                                        - sequential
                                      type: string
                                  required:
                                    - enabled
                                    - delay_seconds
                                    - messages
                                    - rotation
                                    - mention_mode
                                    - max_per_post
                                  type: object
                          required:
                            - public_reply
                            - direct_message
                          type: object
                        trigger:
                          additionalProperties: false
                          properties:
                            keywords:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: any
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    match_mode:
                                      description: >-
                                        `whole_word` — match an isolated keyword
                                        or phrase; `substring` — match it
                                        anywhere in the text.
                                      enum:
                                        - whole_word
                                        - substring
                                      type: string
                                    mode:
                                      const: specific
                                      type: string
                                    values:
                                      items:
                                        description: >-
                                          Keyword or phrase. Length is 1 through
                                          100 Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,100}$
                                        type: string
                                      maxItems: 50
                                      minItems: 1
                                      type: array
                                  required:
                                    - mode
                                    - match_mode
                                    - values
                                  type: object
                            publication:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: all
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: next_published
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: specific
                                      type: string
                                    reference:
                                      anyOf:
                                        - additionalProperties: false
                                          properties:
                                            type:
                                              const: id
                                              type: string
                                            value:
                                              description: >-
                                                Opaque Instagram media ID returned by
                                                Levios discovery. Use 1 through 256
                                                printable ASCII characters.
                                              pattern: ^[!-~]{1,256}$
                                              type: string
                                          required:
                                            - type
                                            - value
                                          type: object
                                        - additionalProperties: false
                                          properties:
                                            type:
                                              const: url
                                              type: string
                                            value:
                                              pattern: >-
                                                ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]:\/\/(?:[Ww][Ww][Ww]\.)?[Ii][Nn][Ss][Tt][Aa][Gg][Rr][Aa][Mm]\.[Cc][Oo][Mm]\/(?:[Pp]|[Rr][Ee][Ee][Ll])\/[A-Za-z0-9_-]+\/?(?:[?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                              type: string
                                          required:
                                            - type
                                            - value
                                          type: object
                                  required:
                                    - mode
                                    - reference
                                  type: object
                            type:
                              const: comment
                              type: string
                          required:
                            - type
                            - publication
                            - keywords
                          type: object
                      required:
                        - contact_filter
                        - opening
                        - follow_up
                        - extras
                        - trigger
                      type: object
                    created_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                    draft_updated_at:
                      anyOf:
                        - maxLength: 32
                          minLength: 20
                          pattern: >-
                            ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                          type: string
                        - type: 'null'
                    has_unpublished_changes:
                      type: boolean
                    id:
                      format: uuid
                      type: string
                    name:
                      description: >-
                        Automation name. Use 1 through 120 Unicode scalar
                        values, without surrounding whitespace or control
                        characters.
                      pattern: >-
                        ^(?!\s)(?![\s\S]*\s$)(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000-\u001F\u007F-\u009F\uD800-\uDFFF])){1,120}$
                      type: string
                    status:
                      description: >-
                        `draft` — not published; `live` — processing triggers;
                        `paused` — published but paused.
                      enum:
                        - draft
                        - live
                        - paused
                      type: string
                    trigger_type:
                      const: comment
                      type: string
                    updated_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                  required:
                    - id
                    - account_id
                    - name
                    - status
                    - has_unpublished_changes
                    - draft_updated_at
                    - created_at
                    - updated_at
                    - trigger_type
                    - configuration
                    - authoring_compatibility
                  type: object
                - additionalProperties: false
                  properties:
                    account_id:
                      format: uuid
                      type: string
                    authoring_compatibility:
                      const: public_v1
                      type: string
                    configuration:
                      additionalProperties: false
                      properties:
                        contact_filter:
                          description: >-
                            `anyone` — every eligible contact; `followers_only`
                            — confirmed followers; `non_followers_only` —
                            confirmed non-followers; `previous_dm_contacts` —
                            contacts with an inbound DM before this trigger;
                            `existing_contacts` — contacts already known before
                            this trigger.
                          enum:
                            - anyone
                            - followers_only
                            - non_followers_only
                            - previous_dm_contacts
                            - existing_contacts
                          type: string
                        extras:
                          additionalProperties: false
                          properties:
                            cooldown:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: none
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: fixed
                                      type: string
                                    seconds:
                                      maximum: 2592000
                                      minimum: 1
                                      type: integer
                                  required:
                                    - mode
                                    - seconds
                                  type: object
                          required:
                            - cooldown
                          type: object
                        follow_up:
                          anyOf:
                            - type: 'null'
                            - additionalProperties: false
                              properties:
                                actions:
                                  items:
                                    anyOf:
                                      - anyOf:
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 0
                                                minItems: 0
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 1000
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 3
                                                minItems: 1
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          media_type:
                                            description: >-
                                              `image`, `video`, `audio`, or `file`
                                              identifies the outbound Instagram
                                              attachment type.
                                            enum:
                                              - image
                                              - video
                                              - audio
                                              - file
                                            type: string
                                          type:
                                            const: send_media
                                            type: string
                                          url:
                                            pattern: >-
                                              ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - media_type
                                          - url
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          cards:
                                            items:
                                              additionalProperties: false
                                              properties:
                                                buttons:
                                                  items:
                                                    additionalProperties: false
                                                    properties:
                                                      title:
                                                        description: >-
                                                          Button title. Length is 1 through 20
                                                          Unicode scalar values.
                                                        pattern: >-
                                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                        type: string
                                                      type:
                                                        const: url
                                                        type: string
                                                      url:
                                                        pattern: >-
                                                          ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                        type: string
                                                    required:
                                                      - type
                                                      - title
                                                      - url
                                                    type: object
                                                  maxItems: 3
                                                  minItems: 1
                                                  type: array
                                                image_url:
                                                  pattern: >-
                                                    ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                  type: string
                                                subtitle:
                                                  description: >-
                                                    Card subtitle. Length is 0 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){0,80}$
                                                  type: string
                                                title:
                                                  description: >-
                                                    Card title. Length is 1 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,80}$
                                                  type: string
                                              required:
                                                - title
                                                - image_url
                                                - buttons
                                              type: object
                                            maxItems: 10
                                            minItems: 1
                                            type: array
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          type:
                                            const: send_carousel
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - cards
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          buttons:
                                            additionalProperties: false
                                            properties:
                                              confirm_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                              open_profile_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                            required:
                                              - open_profile_title
                                              - confirm_title
                                            type: object
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 10
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                            type: string
                                          not_following_message:
                                            anyOf:
                                              - description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              - type: 'null'
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                          recheck_after_seconds:
                                            maximum: 86400
                                            minimum: 60
                                            type: integer
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          type:
                                            const: ask_to_follow
                                            type: string
                                          verification_mode:
                                            description: >-
                                              `trusted_click` — trust the confirmation
                                              click; `strict` — verify follow status
                                              with Instagram.
                                            enum:
                                              - trusted_click
                                              - strict
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - buttons
                                          - verification_mode
                                          - not_following_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - recheck_after_seconds
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_email
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_phone
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 2592000
                                            minimum: 0
                                            type: integer
                                          tag_id:
                                            format: uuid
                                            type: string
                                          type:
                                            const: add_contact_tag
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - tag_id
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          type:
                                            const: finish
                                            type: string
                                        required:
                                          - type
                                        type: object
                                  maxItems: 20
                                  minItems: 1
                                  type: array
                              required:
                                - actions
                              type: object
                        opening:
                          additionalProperties: false
                          properties:
                            direct_message:
                              additionalProperties: false
                              properties:
                                delay_seconds:
                                  maximum: 86400
                                  minimum: 0
                                  type: integer
                                message:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 0
                                          minItems: 0
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 1000
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 3
                                          minItems: 1
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 640
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                              required:
                                - delay_seconds
                                - message
                              type: object
                            public_reply:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    enabled:
                                      const: false
                                      type: boolean
                                  required:
                                    - enabled
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    delay_seconds:
                                      maximum: 86400
                                      minimum: 0
                                      type: integer
                                    enabled:
                                      const: true
                                      type: boolean
                                    max_per_post:
                                      maximum: 200
                                      minimum: 1
                                      type: integer
                                    mention_mode:
                                      description: >-
                                        `none` — do not prefix a mention;
                                        `contact` — mention the contact;
                                        `account` — mention the account.
                                      enum:
                                        - none
                                        - contact
                                        - account
                                      type: string
                                    messages:
                                      items:
                                        description: >-
                                          Public reply message. Length is 1
                                          through 280 Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,280}$
                                        type: string
                                      minItems: 1
                                      type: array
                                    rotation:
                                      description: >-
                                        `random` — choose a response randomly;
                                        `sequential` — rotate responses in their
                                        submitted order.
                                      enum:
                                        - random
                                        - sequential
                                      type: string
                                  required:
                                    - enabled
                                    - delay_seconds
                                    - messages
                                    - rotation
                                    - mention_mode
                                    - max_per_post
                                  type: object
                          required:
                            - public_reply
                            - direct_message
                          type: object
                        trigger:
                          anyOf:
                            - additionalProperties: false
                              properties:
                                keywords:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        mode:
                                          const: any
                                          type: string
                                      required:
                                        - mode
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        match_mode:
                                          description: >-
                                            `whole_word` — match an isolated keyword
                                            or phrase; `substring` — match it
                                            anywhere in the text.
                                          enum:
                                            - whole_word
                                            - substring
                                          type: string
                                        mode:
                                          const: specific
                                          type: string
                                        values:
                                          items:
                                            description: >-
                                              Keyword or phrase. Length is 1 through
                                              100 Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,100}$
                                            type: string
                                          maxItems: 50
                                          minItems: 1
                                          type: array
                                      required:
                                        - mode
                                        - match_mode
                                        - values
                                      type: object
                                response_type:
                                  const: text
                                  type: string
                                story:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        mode:
                                          const: any
                                          type: string
                                      required:
                                        - mode
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        mode:
                                          const: specific
                                          type: string
                                        reference:
                                          additionalProperties: false
                                          properties:
                                            type:
                                              const: id
                                              type: string
                                            value:
                                              description: >-
                                                Opaque Instagram media ID returned by
                                                Levios discovery. Use 1 through 256
                                                printable ASCII characters.
                                              pattern: ^[!-~]{1,256}$
                                              type: string
                                          required:
                                            - type
                                            - value
                                          type: object
                                      required:
                                        - mode
                                        - reference
                                      type: object
                                type:
                                  const: story_reply
                                  type: string
                              required:
                                - type
                                - response_type
                                - story
                                - keywords
                              type: object
                            - additionalProperties: false
                              properties:
                                reactions:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        mode:
                                          const: any
                                          type: string
                                      required:
                                        - mode
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        emojis:
                                          items:
                                            description: >-
                                              Reaction emoji. Length is 1 through 16
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,16}$
                                            type: string
                                          maxItems: 50
                                          minItems: 1
                                          type: array
                                        mode:
                                          const: specific
                                          type: string
                                      required:
                                        - mode
                                        - emojis
                                      type: object
                                response_type:
                                  const: reaction
                                  type: string
                                story:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        mode:
                                          const: any
                                          type: string
                                      required:
                                        - mode
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        mode:
                                          const: specific
                                          type: string
                                        reference:
                                          additionalProperties: false
                                          properties:
                                            type:
                                              const: id
                                              type: string
                                            value:
                                              description: >-
                                                Opaque Instagram media ID returned by
                                                Levios discovery. Use 1 through 256
                                                printable ASCII characters.
                                              pattern: ^[!-~]{1,256}$
                                              type: string
                                          required:
                                            - type
                                            - value
                                          type: object
                                      required:
                                        - mode
                                        - reference
                                      type: object
                                type:
                                  const: story_reply
                                  type: string
                              required:
                                - type
                                - response_type
                                - story
                                - reactions
                              type: object
                      required:
                        - contact_filter
                        - opening
                        - follow_up
                        - extras
                        - trigger
                      type: object
                    created_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                    draft_updated_at:
                      anyOf:
                        - maxLength: 32
                          minLength: 20
                          pattern: >-
                            ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                          type: string
                        - type: 'null'
                    has_unpublished_changes:
                      type: boolean
                    id:
                      format: uuid
                      type: string
                    name:
                      description: >-
                        Automation name. Use 1 through 120 Unicode scalar
                        values, without surrounding whitespace or control
                        characters.
                      pattern: >-
                        ^(?!\s)(?![\s\S]*\s$)(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000-\u001F\u007F-\u009F\uD800-\uDFFF])){1,120}$
                      type: string
                    status:
                      description: >-
                        `draft` — not published; `live` — processing triggers;
                        `paused` — published but paused.
                      enum:
                        - draft
                        - live
                        - paused
                      type: string
                    trigger_type:
                      const: story_reply
                      type: string
                    updated_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                  required:
                    - id
                    - account_id
                    - name
                    - status
                    - has_unpublished_changes
                    - draft_updated_at
                    - created_at
                    - updated_at
                    - trigger_type
                    - configuration
                    - authoring_compatibility
                  type: object
                - additionalProperties: false
                  properties:
                    account_id:
                      format: uuid
                      type: string
                    authoring_compatibility:
                      const: public_v1
                      type: string
                    configuration:
                      additionalProperties: false
                      properties:
                        contact_filter:
                          description: >-
                            `anyone` — every eligible contact; `followers_only`
                            — confirmed followers; `non_followers_only` —
                            confirmed non-followers; `previous_dm_contacts` —
                            contacts with an inbound DM before this trigger;
                            `existing_contacts` — contacts already known before
                            this trigger.
                          enum:
                            - anyone
                            - followers_only
                            - non_followers_only
                            - previous_dm_contacts
                            - existing_contacts
                          type: string
                        extras:
                          additionalProperties: false
                          properties:
                            cooldown:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: none
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: fixed
                                      type: string
                                    seconds:
                                      maximum: 2592000
                                      minimum: 1
                                      type: integer
                                  required:
                                    - mode
                                    - seconds
                                  type: object
                          required:
                            - cooldown
                          type: object
                        follow_up:
                          anyOf:
                            - type: 'null'
                            - additionalProperties: false
                              properties:
                                actions:
                                  items:
                                    anyOf:
                                      - anyOf:
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 0
                                                minItems: 0
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 1000
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 3
                                                minItems: 1
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          media_type:
                                            description: >-
                                              `image`, `video`, `audio`, or `file`
                                              identifies the outbound Instagram
                                              attachment type.
                                            enum:
                                              - image
                                              - video
                                              - audio
                                              - file
                                            type: string
                                          type:
                                            const: send_media
                                            type: string
                                          url:
                                            pattern: >-
                                              ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - media_type
                                          - url
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          cards:
                                            items:
                                              additionalProperties: false
                                              properties:
                                                buttons:
                                                  items:
                                                    additionalProperties: false
                                                    properties:
                                                      title:
                                                        description: >-
                                                          Button title. Length is 1 through 20
                                                          Unicode scalar values.
                                                        pattern: >-
                                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                        type: string
                                                      type:
                                                        const: url
                                                        type: string
                                                      url:
                                                        pattern: >-
                                                          ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                        type: string
                                                    required:
                                                      - type
                                                      - title
                                                      - url
                                                    type: object
                                                  maxItems: 3
                                                  minItems: 1
                                                  type: array
                                                image_url:
                                                  pattern: >-
                                                    ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                  type: string
                                                subtitle:
                                                  description: >-
                                                    Card subtitle. Length is 0 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){0,80}$
                                                  type: string
                                                title:
                                                  description: >-
                                                    Card title. Length is 1 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,80}$
                                                  type: string
                                              required:
                                                - title
                                                - image_url
                                                - buttons
                                              type: object
                                            maxItems: 10
                                            minItems: 1
                                            type: array
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          type:
                                            const: send_carousel
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - cards
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          buttons:
                                            additionalProperties: false
                                            properties:
                                              confirm_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                              open_profile_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                            required:
                                              - open_profile_title
                                              - confirm_title
                                            type: object
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 10
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                            type: string
                                          not_following_message:
                                            anyOf:
                                              - description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              - type: 'null'
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                          recheck_after_seconds:
                                            maximum: 86400
                                            minimum: 60
                                            type: integer
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          type:
                                            const: ask_to_follow
                                            type: string
                                          verification_mode:
                                            description: >-
                                              `trusted_click` — trust the confirmation
                                              click; `strict` — verify follow status
                                              with Instagram.
                                            enum:
                                              - trusted_click
                                              - strict
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - buttons
                                          - verification_mode
                                          - not_following_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - recheck_after_seconds
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_email
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_phone
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 2592000
                                            minimum: 0
                                            type: integer
                                          tag_id:
                                            format: uuid
                                            type: string
                                          type:
                                            const: add_contact_tag
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - tag_id
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          type:
                                            const: finish
                                            type: string
                                        required:
                                          - type
                                        type: object
                                  maxItems: 20
                                  minItems: 1
                                  type: array
                              required:
                                - actions
                              type: object
                        opening:
                          additionalProperties: false
                          properties:
                            direct_message:
                              additionalProperties: false
                              properties:
                                delay_seconds:
                                  maximum: 86400
                                  minimum: 0
                                  type: integer
                                message:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 0
                                          minItems: 0
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 1000
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 3
                                          minItems: 1
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 640
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                              required:
                                - delay_seconds
                                - message
                              type: object
                            public_reply:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    enabled:
                                      const: false
                                      type: boolean
                                  required:
                                    - enabled
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    delay_seconds:
                                      maximum: 86400
                                      minimum: 0
                                      type: integer
                                    enabled:
                                      const: true
                                      type: boolean
                                    max_per_post:
                                      maximum: 200
                                      minimum: 1
                                      type: integer
                                    mention_mode:
                                      description: >-
                                        `none` — do not prefix a mention;
                                        `contact` — mention the contact;
                                        `account` — mention the account.
                                      enum:
                                        - none
                                        - contact
                                        - account
                                      type: string
                                    messages:
                                      items:
                                        description: >-
                                          Public reply message. Length is 1
                                          through 280 Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,280}$
                                        type: string
                                      minItems: 1
                                      type: array
                                    rotation:
                                      description: >-
                                        `random` — choose a response randomly;
                                        `sequential` — rotate responses in their
                                        submitted order.
                                      enum:
                                        - random
                                        - sequential
                                      type: string
                                  required:
                                    - enabled
                                    - delay_seconds
                                    - messages
                                    - rotation
                                    - mention_mode
                                    - max_per_post
                                  type: object
                          required:
                            - public_reply
                            - direct_message
                          type: object
                        trigger:
                          additionalProperties: false
                          properties:
                            keywords:
                              additionalProperties: false
                              properties:
                                match_mode:
                                  description: >-
                                    `whole_word` — match an isolated keyword or
                                    phrase; `substring` — match it anywhere in
                                    the text.
                                  enum:
                                    - whole_word
                                    - substring
                                  type: string
                                mode:
                                  const: specific
                                  type: string
                                values:
                                  items:
                                    description: >-
                                      Keyword or phrase. Length is 1 through 100
                                      Unicode scalar values.
                                    pattern: >-
                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,100}$
                                    type: string
                                  maxItems: 50
                                  minItems: 1
                                  type: array
                              required:
                                - mode
                                - match_mode
                                - values
                              type: object
                            type:
                              const: dm_keyword
                              type: string
                          required:
                            - type
                            - keywords
                          type: object
                      required:
                        - contact_filter
                        - opening
                        - follow_up
                        - extras
                        - trigger
                      type: object
                    created_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                    draft_updated_at:
                      anyOf:
                        - maxLength: 32
                          minLength: 20
                          pattern: >-
                            ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                          type: string
                        - type: 'null'
                    has_unpublished_changes:
                      type: boolean
                    id:
                      format: uuid
                      type: string
                    name:
                      description: >-
                        Automation name. Use 1 through 120 Unicode scalar
                        values, without surrounding whitespace or control
                        characters.
                      pattern: >-
                        ^(?!\s)(?![\s\S]*\s$)(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000-\u001F\u007F-\u009F\uD800-\uDFFF])){1,120}$
                      type: string
                    status:
                      description: >-
                        `draft` — not published; `live` — processing triggers;
                        `paused` — published but paused.
                      enum:
                        - draft
                        - live
                        - paused
                      type: string
                    trigger_type:
                      const: dm_keyword
                      type: string
                    updated_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                  required:
                    - id
                    - account_id
                    - name
                    - status
                    - has_unpublished_changes
                    - draft_updated_at
                    - created_at
                    - updated_at
                    - trigger_type
                    - configuration
                    - authoring_compatibility
                  type: object
                - additionalProperties: false
                  properties:
                    account_id:
                      format: uuid
                      type: string
                    authoring_compatibility:
                      const: public_v1
                      type: string
                    configuration:
                      additionalProperties: false
                      properties:
                        contact_filter:
                          description: >-
                            `anyone` — every eligible contact; `followers_only`
                            — confirmed followers; `non_followers_only` —
                            confirmed non-followers; `previous_dm_contacts` —
                            contacts with an inbound DM before this trigger;
                            `existing_contacts` — contacts already known before
                            this trigger.
                          enum:
                            - anyone
                            - followers_only
                            - non_followers_only
                            - previous_dm_contacts
                            - existing_contacts
                          type: string
                        extras:
                          additionalProperties: false
                          properties:
                            cooldown:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: none
                                      type: string
                                  required:
                                    - mode
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    mode:
                                      const: fixed
                                      type: string
                                    seconds:
                                      maximum: 2592000
                                      minimum: 1
                                      type: integer
                                  required:
                                    - mode
                                    - seconds
                                  type: object
                          required:
                            - cooldown
                          type: object
                        follow_up:
                          anyOf:
                            - type: 'null'
                            - additionalProperties: false
                              properties:
                                actions:
                                  items:
                                    anyOf:
                                      - anyOf:
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 0
                                                minItems: 0
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 1000
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                          - additionalProperties: false
                                            properties:
                                              buttons:
                                                items:
                                                  additionalProperties: false
                                                  properties:
                                                    title:
                                                      description: >-
                                                        Button title. Length is 1 through 20
                                                        Unicode scalar values.
                                                      pattern: >-
                                                        ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                      type: string
                                                    type:
                                                      const: url
                                                      type: string
                                                    url:
                                                      pattern: >-
                                                        ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                      type: string
                                                  required:
                                                    - type
                                                    - title
                                                    - url
                                                  type: object
                                                maxItems: 3
                                                minItems: 1
                                                type: array
                                              delay_seconds:
                                                maximum: 86399
                                                minimum: 0
                                                type: integer
                                              text:
                                                description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              type:
                                                const: send_message
                                                type: string
                                            required:
                                              - type
                                              - delay_seconds
                                              - text
                                              - buttons
                                            type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          media_type:
                                            description: >-
                                              `image`, `video`, `audio`, or `file`
                                              identifies the outbound Instagram
                                              attachment type.
                                            enum:
                                              - image
                                              - video
                                              - audio
                                              - file
                                            type: string
                                          type:
                                            const: send_media
                                            type: string
                                          url:
                                            pattern: >-
                                              ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - media_type
                                          - url
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          cards:
                                            items:
                                              additionalProperties: false
                                              properties:
                                                buttons:
                                                  items:
                                                    additionalProperties: false
                                                    properties:
                                                      title:
                                                        description: >-
                                                          Button title. Length is 1 through 20
                                                          Unicode scalar values.
                                                        pattern: >-
                                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                        type: string
                                                      type:
                                                        const: url
                                                        type: string
                                                      url:
                                                        pattern: >-
                                                          ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                        type: string
                                                    required:
                                                      - type
                                                      - title
                                                      - url
                                                    type: object
                                                  maxItems: 3
                                                  minItems: 1
                                                  type: array
                                                image_url:
                                                  pattern: >-
                                                    ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                  type: string
                                                subtitle:
                                                  description: >-
                                                    Card subtitle. Length is 0 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){0,80}$
                                                  type: string
                                                title:
                                                  description: >-
                                                    Card title. Length is 1 through 80
                                                    Unicode scalar values.
                                                  pattern: >-
                                                    ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,80}$
                                                  type: string
                                              required:
                                                - title
                                                - image_url
                                                - buttons
                                              type: object
                                            maxItems: 10
                                            minItems: 1
                                            type: array
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          type:
                                            const: send_carousel
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - cards
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          buttons:
                                            additionalProperties: false
                                            properties:
                                              confirm_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                              open_profile_title:
                                                description: >-
                                                  Button title. Length is 1 through 20
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                type: string
                                            required:
                                              - open_profile_title
                                              - confirm_title
                                            type: object
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 10
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                            type: string
                                          not_following_message:
                                            anyOf:
                                              - description: >-
                                                  Message text. Length is 1 through 640
                                                  Unicode scalar values.
                                                pattern: >-
                                                  ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                                type: string
                                              - type: 'null'
                                            description: >-
                                              Message text. Length is 1 through 640
                                              Unicode scalar values.
                                          recheck_after_seconds:
                                            maximum: 86400
                                            minimum: 60
                                            type: integer
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          type:
                                            const: ask_to_follow
                                            type: string
                                          verification_mode:
                                            description: >-
                                              `trusted_click` — trust the confirmation
                                              click; `strict` — verify follow status
                                              with Instagram.
                                            enum:
                                              - trusted_click
                                              - strict
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - buttons
                                          - verification_mode
                                          - not_following_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - recheck_after_seconds
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_email
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 86399
                                            minimum: 0
                                            type: integer
                                          expires_in_seconds:
                                            maximum: 604800
                                            minimum: 60
                                            type: integer
                                          max_attempts:
                                            maximum: 5
                                            minimum: 1
                                            type: integer
                                          message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          retry_exhausted_action:
                                            description: >-
                                              `continue` — continue after the retry
                                              limit; `stop` — end the active gate
                                              after the retry limit.
                                            enum:
                                              - continue
                                              - stop
                                            type: string
                                          retry_message:
                                            description: >-
                                              Message text. Length is 1 through 1000
                                              Unicode scalar values.
                                            pattern: >-
                                              ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                            type: string
                                          type:
                                            const: ask_for_phone
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - message
                                          - retry_message
                                          - max_attempts
                                          - retry_exhausted_action
                                          - expires_in_seconds
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          delay_seconds:
                                            maximum: 2592000
                                            minimum: 0
                                            type: integer
                                          tag_id:
                                            format: uuid
                                            type: string
                                          type:
                                            const: add_contact_tag
                                            type: string
                                        required:
                                          - type
                                          - delay_seconds
                                          - tag_id
                                        type: object
                                      - additionalProperties: false
                                        properties:
                                          type:
                                            const: finish
                                            type: string
                                        required:
                                          - type
                                        type: object
                                  maxItems: 20
                                  minItems: 1
                                  type: array
                              required:
                                - actions
                              type: object
                        opening:
                          additionalProperties: false
                          properties:
                            direct_message:
                              additionalProperties: false
                              properties:
                                delay_seconds:
                                  maximum: 86400
                                  minimum: 0
                                  type: integer
                                message:
                                  anyOf:
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 0
                                          minItems: 0
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 1000
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,1000}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                                    - additionalProperties: false
                                      properties:
                                        buttons:
                                          items:
                                            anyOf:
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: start_follow_up
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                type: object
                                              - additionalProperties: false
                                                properties:
                                                  title:
                                                    description: >-
                                                      Button title. Length is 1 through 20
                                                      Unicode scalar values.
                                                    pattern: >-
                                                      ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,20}$
                                                    type: string
                                                  type:
                                                    const: url
                                                    type: string
                                                  url:
                                                    pattern: >-
                                                      ^(?![\s\S]*[\u0000\uD800-\uDFFF])[Hh][Tt][Tt][Pp][Ss]?:\/\/[^\s\/:?#%]+(?::[0-9]{1,5})?(?:[\/?#](?:[^\s%]|%[0-9A-Fa-f]{2})*)?$
                                                    type: string
                                                required:
                                                  - type
                                                  - title
                                                  - url
                                                type: object
                                          maxItems: 3
                                          minItems: 1
                                          type: array
                                        text:
                                          description: >-
                                            Message text. Length is 1 through 640
                                            Unicode scalar values.
                                          pattern: >-
                                            ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,640}$
                                          type: string
                                      required:
                                        - text
                                        - buttons
                                      type: object
                              required:
                                - delay_seconds
                                - message
                              type: object
                            public_reply:
                              anyOf:
                                - additionalProperties: false
                                  properties:
                                    enabled:
                                      const: false
                                      type: boolean
                                  required:
                                    - enabled
                                  type: object
                                - additionalProperties: false
                                  properties:
                                    delay_seconds:
                                      maximum: 86400
                                      minimum: 0
                                      type: integer
                                    enabled:
                                      const: true
                                      type: boolean
                                    max_per_post:
                                      maximum: 200
                                      minimum: 1
                                      type: integer
                                    mention_mode:
                                      description: >-
                                        `none` — do not prefix a mention;
                                        `contact` — mention the contact;
                                        `account` — mention the account.
                                      enum:
                                        - none
                                        - contact
                                        - account
                                      type: string
                                    messages:
                                      items:
                                        description: >-
                                          Public reply message. Length is 1
                                          through 280 Unicode scalar values.
                                        pattern: >-
                                          ^(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000\uD800-\uDFFF])){1,280}$
                                        type: string
                                      minItems: 1
                                      type: array
                                    rotation:
                                      description: >-
                                        `random` — choose a response randomly;
                                        `sequential` — rotate responses in their
                                        submitted order.
                                      enum:
                                        - random
                                        - sequential
                                      type: string
                                  required:
                                    - enabled
                                    - delay_seconds
                                    - messages
                                    - rotation
                                    - mention_mode
                                    - max_per_post
                                  type: object
                          required:
                            - public_reply
                            - direct_message
                          type: object
                        trigger:
                          additionalProperties: false
                          properties:
                            type:
                              const: story_mention
                              type: string
                          required:
                            - type
                          type: object
                      required:
                        - contact_filter
                        - opening
                        - follow_up
                        - extras
                        - trigger
                      type: object
                    created_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                    draft_updated_at:
                      anyOf:
                        - maxLength: 32
                          minLength: 20
                          pattern: >-
                            ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                          type: string
                        - type: 'null'
                    has_unpublished_changes:
                      type: boolean
                    id:
                      format: uuid
                      type: string
                    name:
                      description: >-
                        Automation name. Use 1 through 120 Unicode scalar
                        values, without surrounding whitespace or control
                        characters.
                      pattern: >-
                        ^(?!\s)(?![\s\S]*\s$)(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000-\u001F\u007F-\u009F\uD800-\uDFFF])){1,120}$
                      type: string
                    status:
                      description: >-
                        `draft` — not published; `live` — processing triggers;
                        `paused` — published but paused.
                      enum:
                        - draft
                        - live
                        - paused
                      type: string
                    trigger_type:
                      const: story_mention
                      type: string
                    updated_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                  required:
                    - id
                    - account_id
                    - name
                    - status
                    - has_unpublished_changes
                    - draft_updated_at
                    - created_at
                    - updated_at
                    - trigger_type
                    - configuration
                    - authoring_compatibility
                  type: object
                - additionalProperties: false
                  properties:
                    account_id:
                      format: uuid
                      type: string
                    authoring_compatibility:
                      const: read_only_legacy
                      type: string
                    configuration:
                      type: 'null'
                    created_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                    draft_updated_at:
                      anyOf:
                        - maxLength: 32
                          minLength: 20
                          pattern: >-
                            ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                          type: string
                        - type: 'null'
                    has_unpublished_changes:
                      type: boolean
                    id:
                      format: uuid
                      type: string
                    name:
                      description: >-
                        Automation name. Use 1 through 120 Unicode scalar
                        values, without surrounding whitespace or control
                        characters.
                      pattern: >-
                        ^(?!\s)(?![\s\S]*\s$)(?:(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\u0000-\u001F\u007F-\u009F\uD800-\uDFFF])){1,120}$
                      type: string
                    status:
                      description: >-
                        `draft` — not published; `live` — processing triggers;
                        `paused` — published but paused.
                      enum:
                        - draft
                        - live
                        - paused
                      type: string
                    trigger_type:
                      enum:
                        - comment
                        - story_reply
                        - dm_keyword
                        - story_mention
                        - any_dm
                        - live_comment
                        - instagram_ad
                        - legacy
                      type: string
                    updated_at:
                      maxLength: 32
                      minLength: 20
                      pattern: >-
                        ^(?:(?:(?!0000)\d{4})-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|02-(?:0[1-9]|1\d|2[0-8]))|(?:(?!0000)(?:\d{2}(?:0[48]|[2468][048]|[13579][26])|(?:[02468][048]|[13579][26])00))-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,6})?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$
                      type: string
                  required:
                    - id
                    - account_id
                    - name
                    - status
                    - has_unpublished_changes
                    - draft_updated_at
                    - created_at
                    - updated_at
                    - trigger_type
                    - configuration
                    - authoring_compatibility
                  type: object
          required:
            - automation
          type: object
      $id: https://levios.app/schemas/public-automation-detail-response-v1
      $schema: https://json-schema.org/draft/2019-09/schema#
      title: PublicAutomationDetailResponseV1
      x-levios-schema-version: 1
    PublicAutomationPlanDetailsV1:
      $ref: 566f51ea-ca9b-4332-9e15-ab72167f5e4e
      $defs:
        PublicAutomationPlanDetailsV1:
          additionalProperties: false
          properties:
            reason:
              anyOf:
                - additionalProperties: false
                  properties:
                    capability:
                      maxLength: 64
                      minLength: 1
                      type: string
                    type:
                      enum:
                        - trigger_kind
                        - action_kind
                        - feature
                      type: string
                    value:
                      maxLength: 64
                      minLength: 1
                      type: string
                  required:
                    - capability
                    - type
                    - value
                  type: object
                - additionalProperties: false
                  properties:
                    active_automations:
                      maximum: 9007199254740991
                      minimum: 0
                      type: integer
                    limit:
                      maximum: 9007199254740991
                      minimum: 0
                      type: integer
                    scope:
                      const: account_active_automations
                      type: string
                  required:
                    - active_automations
                    - limit
                    - scope
                  type: object
          required:
            - reason
          type: object
      $id: https://levios.app/schemas/public-automation-plan-details-v1
      $schema: https://json-schema.org/draft/2019-09/schema#
      title: PublicAutomationPlanDetailsV1
      x-levios-schema-version: 1
    PublicAutomationValidationDetailsV1:
      $ref: 9a1c0596-a1a4-46c8-abbf-fdd83b5145e5
      $defs:
        PublicAutomationValidationDetailsV1:
          additionalProperties: false
          properties:
            issues:
              items:
                additionalProperties: false
                properties:
                  code:
                    maxLength: 64
                    minLength: 1
                    type: string
                  message:
                    maxLength: 256
                    minLength: 1
                    type: string
                  path:
                    items:
                      anyOf:
                        - maxLength: 64
                          minLength: 1
                          type: string
                        - maximum: 9007199254740991
                          minimum: 0
                          type: integer
                    maxItems: 16
                    type: array
                required:
                  - code
                  - path
                  - message
                type: object
              maxItems: 20
              minItems: 1
              type: array
            truncated:
              type: boolean
          required:
            - issues
            - truncated
          type: object
      $id: https://levios.app/schemas/public-automation-validation-details-v1
      $schema: https://json-schema.org/draft/2019-09/schema#
      title: PublicAutomationValidationDetailsV1
      x-levios-schema-version: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Levios API key sent as a Bearer token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.