{
  "opencollection": "1.0.0",
  "info": {
    "name": "Chatwoot Account AgentBots Automation Rule API",
    "version": "1.1.0"
  },
  "items": [
    {
      "info": {
        "name": "Automation Rule",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all automation rules in an account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/automation_rules",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page parameter"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Get details of automation rules in an Account"
        },
        {
          "info": {
            "name": "Add a new automation rule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/automation_rules",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Add a new automation rule to account"
        },
        {
          "info": {
            "name": "Get a automation rule details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/automation_rules/:id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Automation Rule"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Get the details of a automation rule in the account"
        },
        {
          "info": {
            "name": "Update automation rule in Account",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/automation_rules/:id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Automation Rule"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Update a automation rule in account"
        },
        {
          "info": {
            "name": "Remove a automation rule from account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.chatwoot.com/api/v1/accounts/:account_id/automation_rules/:id",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "path",
                "description": "The numeric ID of the account"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the Automation Rule"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "api_access_token",
              "value": "{{api_access_token}}",
              "placement": "header"
            }
          },
          "docs": "Remove a automation rule from account"
        }
      ]
    }
  ],
  "bundled": true
}