# nodes

node_type: nodes-base.activeCampaign
package_name: n8n-nodes-base
display_name: ActiveCampaign
description: Create and edit data in ActiveCampaign
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "activeCampaignApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: ActiveCampaign node documentation
  description: Learn how to use the ActiveCampaign node in n8n. Follow technical documentation to integrate ActiveCampaign node into your workflows.
  contentType: [integration, reference]
  priority: medium
  ---

  # ActiveCampaign node

  Use the ActiveCampaign node to automate work in ActiveCampaign, and integrate ActiveCampaign with other applications. n8n has built-in support for a wide range of ActiveCampaign features, including creating, getting, updating, and deleting accounts, contact, orders, e-commerce customers, connections, lists, tags, and deals.

  On this page, you'll find a list of operations the ActiveCampaign node supports and links to more resources.

  /// note | Credentials
  Refer to [ActiveCampaign credentials](/integrations/builtin/credentials/activecampaign.md) for guidance on setting up authentication. 
  ///

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * Account
      * Create an account
      * Delete an account
      * Get data of an account
      * Get data of all accounts
      * Update an account
  * Account Contact
      * Create an association
      * Delete an association
      * Update an association
  * Contact
      * Create a contact
      * Delete a contact
      * Get data of a contact
      * Get data of all contact
      * Update a contact
  * Contact List
      * Add contact to a list
      * Remove contact from a list
  * Contact Tag
      * Add a tag to a contact
      * Remove a tag from a contact
  * Connection
      * Create a connection
      * Delete a connection
      * Get data of a connection
      * Get data of all connections
      * Update a connection
  * Deal
      * Create a deal
      * Delete a deal
      * Get data of a deal
      * Get data of all deals
      * Update a deal
      * Create a deal note
      * Update a deal note
  * E-commerce Order
      * Create a order
      * Delete a order
      * Get data of a order
      * Get data of all orders
      * Update a order
  * E-Commerce Customer
      * Create a E-commerce Customer
      * Delete a E-commerce Customer
      * Get data of a E-commerce Customer
      * Get data of all E-commerce Customer
      * Update a E-commerce Customer
  * E-commerce Order Products
      * Get data of all order products
      * Get data of a ordered product
      * Get data of an order's products
  * List
      * Get all lists
  * Tag
      * Create a tag
      * Delete a tag
      * Get data of a tag
      * Get data of all tags
      * Update a tag

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'activecampaign') ]]

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "contact",
      "options": [
        {
          "name": "Account",
          "value": "account"
        },
        {
          "name": "Account Contact",
          "value": "accountContact"
        },
        {
          "name": "Connection",
          "value": "connection"
        },
        {
          "name": "Contact",
          "value": "contact"
        },
        {
          "name": "Contact List",
          "value": "contactList"
        },
        {
          "name": "Contact Tag",
          "value": "contactTag"
        },
        {
          "name": "Deal",
          "value": "deal"
        },
        {
          "name": "E-Commerce Customer",
          "value": "ecommerceCustomer"
        },
        {
          "name": "E-Commerce Order",
          "value": "ecommerceOrder"
        },
        {
          "name": "E-Commerce Order Product",
          "value": "ecommerceOrderProducts"
        },
        {
          "name": "List",
          "value": "list"
        },
        {
          "name": "Tag",
          "value": "tag"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an account",
          "action": "Create an account"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an account",
          "action": "Delete an account"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of an account",
          "action": "Get an account"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many accounts",
          "action": "Get many accounts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an account",
          "action": "Update an account"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a contact",
          "action": "Create a contact"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a contact",
          "action": "Delete a contact"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of a contact",
          "action": "Get a contact"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many contacts",
          "action": "Get many contacts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a contact",
          "action": "Update a contact"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an association",
          "action": "Create an account contact"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an association",
          "action": "Delete an account contact"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an association",
          "action": "Update an account contact"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "accountContact"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "add",
      "options": [
        {
          "name": "Add",
          "value": "add",
          "description": "Add contact to a list",
          "action": "Add a contact to a list"
        },
        {
          "name": "Remove",
          "value": "remove",
          "description": "Remove contact from a list",
          "action": "Remove a contact from a list"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contactList"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "add",
      "options": [
        {
          "name": "Add",
          "value": "add",
          "description": "Add a tag to a contact",
          "action": "Add a contact tag"
        },
        {
          "name": "Remove",
          "value": "remove",
          "description": "Remove a tag from a contact",
          "action": "Remove a contact tag"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contactTag"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "options": [
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many lists",
          "action": "Get many lists"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a tag",
          "action": "Create a tag"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a tag",
          "action": "Delete a tag"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of a tag",
          "action": "Get a tag"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many tags",
          "action": "Get many tags"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a tag",
          "action": "Update a tag"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "tag"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a deal",
          "action": "Create a deal"
        },
        {
          "name": "Create Note",
          "value": "createNote",
          "description": "Create a deal note",
          "action": "Create a deal note"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a deal",
          "action": "Delete a deal"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of a deal",
          "action": "Get a deal"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many deals",
          "action": "Get many deals"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a deal",
          "action": "Update a deal"
        },
        {
          "name": "Update Deal Note",
          "value": "updateNote",
          "description": "Update a deal note",
          "action": "Update a deal note"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a connection",
          "action": "Create a connection"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a connection",
          "action": "Delete a connection"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of a connection",
          "action": "Get a connection"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many connections",
          "action": "Get many connections"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a connection",
          "action": "Update a connection"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "connection"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a order",
          "action": "Create an e-commerce order"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a order",
          "action": "Delete an e-commerce order"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of a order",
          "action": "Get an e-commerce order"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many orders",
          "action": "Get many e-commerce orders"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a order",
          "action": "Update an e-commerce order"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ecommerceOrder"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a E-commerce Customer",
          "action": "Create an e-commerce customer"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a E-commerce Customer",
          "action": "Delete an e-commerce customer"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get data of a E-commerce Customer",
          "action": "Get an e-commerce customer"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many E-commerce Customers",
          "action": "Get many e-commerce customers"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a E-commerce Customer",
          "action": "Update an e-commerce customer"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ecommerceCustomer"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "options": [
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get data of many order products",
          "action": "Get many ecommerce orders"
        },
        {
          "name": "Get by Product ID",
          "value": "getByProductId",
          "description": "Get data of a ordered product",
          "action": "Get an e-commerce order product by product ID"
        },
        {
          "name": "Get by Order ID",
          "value": "getByOrderId",
          "description": "Get data of an order's products",
          "action": "Get an e-commerce order product by order ID"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ecommerceOrderProducts"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Type",
      "name": "tagType",
      "type": "options",
      "default": "contact",
      "description": "Tag-type of the new tag",
      "options": [
        {
          "name": "Contact",
          "value": "contact",
          "description": "Tag contact"
        },
        {
          "name": "Template",
          "value": "template",
          "description": "Tag template"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "Name of the new tag",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the new tag"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Tag ID",
      "name": "tagId",
      "type": "number",
      "default": 0,
      "description": "ID of the tag to update",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Tag",
          "name": "tag",
          "type": "string",
          "default": "",
          "description": "Name of the contact"
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the tag being updated"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Tag ID",
      "name": "tagId",
      "type": "number",
      "default": 0,
      "description": "ID of the tag to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Tag ID",
      "name": "tagId",
      "type": "number",
      "default": 0,
      "description": "ID of the tag to get",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "tag"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "tag"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "list"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "list"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "list"
          ]
        }
      }
    },
    {
      "displayName": "Tag Name or ID",
      "name": "tagId",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "add"
          ],
          "resource": [
            "contactTag"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTags"
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "add"
          ],
          "resource": [
            "contactTag"
          ]
        }
      }
    },
    {
      "displayName": "Contact Tag ID",
      "name": "contactTagId",
      "type": "number",
      "default": 0,
      "description": "ID of the contact tag to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "remove"
          ],
          "resource": [
            "contactTag"
          ]
        }
      }
    },
    {
      "displayName": "List ID",
      "name": "listId",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "add"
          ],
          "resource": [
            "contactList"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "add"
          ],
          "resource": [
            "contactList"
          ]
        }
      }
    },
    {
      "displayName": "List ID",
      "name": "listId",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "remove"
          ],
          "resource": [
            "contactList"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "remove"
          ],
          "resource": [
            "contactList"
          ]
        }
      }
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "Account's name",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account URL",
          "name": "accountUrl",
          "type": "string",
          "default": "",
          "description": "Account's website"
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "placeholder": "Add Custom Fields",
          "description": "Adds a custom fields to set also values which have not been predefined",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "property",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "customFieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getAccountCustomFields"
                  },
                  "default": "",
                  "description": "ID of the field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "fieldValue",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field to set"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "accountId",
      "type": "number",
      "default": 0,
      "description": "ID of the account to update",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Account's name"
        },
        {
          "displayName": "Account URL",
          "name": "accountUrl",
          "type": "string",
          "default": "",
          "description": "Account's website"
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "placeholder": "Add Fields",
          "description": "Adds a custom fields to set also values which have not been predefined",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "property",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "customFieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getAccountCustomFields"
                  },
                  "default": "",
                  "description": "ID of the field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "fieldValue",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field to set"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "accountId",
      "type": "number",
      "default": 0,
      "description": "ID of the account to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "accountId",
      "type": "number",
      "default": 0,
      "description": "ID of the account to get",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "account"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Search",
          "name": "search",
          "type": "string",
          "default": "",
          "description": "Search by name"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "account"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "account",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "accountContact"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contact",
      "type": "number",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "accountContact"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Job Title",
          "name": "jobTitle",
          "type": "string",
          "default": "",
          "description": "Job Title of the contact at the account"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "accountContact"
          ]
        }
      }
    },
    {
      "displayName": "Account Contact ID",
      "name": "accountContactId",
      "type": "number",
      "default": 0,
      "description": "ID of the account contact to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "accountContact"
          ]
        }
      }
    },
    {
      "displayName": "Account Contact ID",
      "name": "accountContactId",
      "type": "number",
      "default": "",
      "description": "Account ID",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "accountContact"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Job Title",
          "name": "jobTitle",
          "type": "string",
          "default": "",
          "description": "Job Title of the contact at the account"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "accountContact"
          ]
        }
      }
    },
    {
      "displayName": "Email",
      "name": "email",
      "type": "string",
      "default": "",
      "description": "The email of the contact to create",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Update if Exists",
      "name": "updateIfExists",
      "type": "boolean",
      "default": false,
      "description": "Whether to update user if it exists already. If not set and user exists it will error instead.",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "fieldValues",
          "placeholder": "Add Custom Fields",
          "description": "Adds a custom fields to set also values which have not been predefined",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "property",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getContactCustomFields"
                  },
                  "default": "",
                  "description": "ID of the field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field to set"
                }
              ]
            }
          ]
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "The first name of the contact to create"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "The last name of the contact to create"
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "Phone number of the contact"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "number",
      "default": 0,
      "description": "ID of the contact to update",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "fieldValues",
          "placeholder": "Add Custom Fields",
          "description": "Adds a custom fields to set also values which have not been predefined",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "property",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getContactCustomFields"
                  },
                  "default": "",
                  "description": "ID of the field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field to set"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "Email of the contact"
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "First name of the contact"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Last name of the contact"
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "Phone number of the contact"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "number",
      "default": 0,
      "description": "ID of the contact to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "number",
      "default": 0,
      "description": "ID of the contact to get",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "contact"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Datetime",
          "name": "datetime",
          "type": "dateTime",
          "default": "",
          "description": "Contacts created on the specified date"
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "Email address of the contact you want to get"
        },
        {
          "displayName": "Email Like",
          "name": "email_like",
          "type": "string",
          "default": "",
          "description": "Filter contacts that contain the given value in the email address"
        },
        {
          "displayName": "Exclude",
          "name": "exclude",
          "type": "string",
          "default": "",
          "description": "Exclude from the response the contact with the given ID"
        },
        {
          "displayName": "Form ID",
          "name": "formid",
          "type": "string",
          "default": "",
          "description": "Filter contacts associated with the given form"
        },
        {
          "displayName": "List ID",
          "name": "listid",
          "type": "string",
          "default": "",
          "description": "Filter contacts associated with the given list"
        },
        {
          "displayName": "Search",
          "name": "search",
          "type": "string",
          "default": "",
          "description": "Filter contacts that match the given value in the contact names, organization, phone or email"
        },
        {
          "displayName": "Segment ID",
          "name": "segmentid",
          "type": "string",
          "default": "",
          "description": "Return only contacts that match a list segment"
        },
        {
          "displayName": "Series ID",
          "name": "seriesid",
          "type": "string",
          "default": "",
          "description": "Filter contacts associated with the given automation"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Active",
              "value": 1
            },
            {
              "name": "Any",
              "value": -1
            },
            {
              "name": "Bounced",
              "value": 3
            },
            {
              "name": "Unconfirmed",
              "value": 0
            },
            {
              "name": "Unsubscribed",
              "value": 2
            }
          ],
          "default": ""
        },
        {
          "displayName": "Tag ID",
          "name": "tagid",
          "type": "string",
          "default": "",
          "description": "Filter contacts associated with the given tag"
        },
        {
          "displayName": "Created Before",
          "name": "filters[created_before]",
          "type": "dateTime",
          "default": "",
          "description": "Filter contacts that were created prior to this date"
        },
        {
          "displayName": "Created After",
          "name": "filters[created_after]",
          "type": "dateTime",
          "default": "",
          "description": "Filter contacts that were created after this date"
        },
        {
          "displayName": "Updated Before",
          "name": "filters[updated_before]",
          "type": "dateTime",
          "default": "",
          "description": "Filter contacts that were updated before this date"
        },
        {
          "displayName": "Updated After",
          "name": "filters[updated_after]",
          "type": "dateTime",
          "default": "",
          "description": "Filter contacts that were updated after this date"
        },
        {
          "displayName": "Wait ID",
          "name": "waitid",
          "type": "string",
          "default": "",
          "description": "Filter by contacts in the wait queue of an automation block"
        },
        {
          "displayName": "Order By",
          "name": "orderBy",
          "type": "options",
          "options": [
            {
              "name": "Creation Date",
              "value": "orders[cdate]",
              "description": "Order contacts by creation date"
            },
            {
              "name": "Email",
              "value": "orders[email]",
              "description": "Order contacts by email"
            },
            {
              "name": "First Name",
              "value": "orders[first_name]",
              "description": "Order contacts by first name"
            },
            {
              "name": "Last Name",
              "value": "orders[last_name]",
              "description": "Order contacts by last name"
            },
            {
              "name": "Name",
              "value": "orders[name]",
              "description": "Order contacts by full name"
            },
            {
              "name": "Score",
              "value": "orders[score]",
              "description": "Order contacts by score"
            }
          ],
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "contact"
          ]
        }
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "The title of the deal",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal's Contact ID",
      "name": "contact",
      "type": "number",
      "default": 0,
      "description": "The ID of the deal's contact",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Value",
      "name": "value",
      "type": "number",
      "default": 0,
      "description": "The value of the deal in cents",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Currency",
      "name": "currency",
      "type": "options",
      "default": "eur",
      "description": "The currency of the deal in 3-character ISO format",
      "options": [
        {
          "name": "Euro",
          "value": "eur"
        },
        {
          "name": "United States Dollar",
          "value": "usd"
        },
        {
          "name": "British Pound Sterling",
          "value": "gbp"
        },
        {
          "name": "Swiss Franc",
          "value": "chf"
        },
        {
          "name": "Renminbi",
          "value": "cny"
        },
        {
          "name": "--------",
          "value": ""
        },
        {
          "name": "United Arab Emirates Dirham",
          "value": "aed"
        },
        {
          "name": "Afghan Afghani",
          "value": "afn"
        },
        {
          "name": "Albanian Lek",
          "value": "all"
        },
        {
          "name": "Armenian Dram",
          "value": "amd"
        },
        {
          "name": "Netherlands Antillean Guilder",
          "value": "ang"
        },
        {
          "name": "Angolan Kwanza",
          "value": "aoa"
        },
        {
          "name": "Argentine Peso",
          "value": "ars"
        },
        {
          "name": "Australian Dollar",
          "value": "aud"
        },
        {
          "name": "Aruban Florin",
          "value": "awg"
        },
        {
          "name": "Azerbaijani Manat",
          "value": "azn"
        },
        {
          "name": "Bosnia-Herzegovina Convertible Mark",
          "value": "bam"
        },
        {
          "name": "Barbadian Dollar",
          "value": "bbd"
        },
        {
          "name": "Bangladeshi Taka",
          "value": "bdt"
        },
        {
          "name": "Bulgarian Lev",
          "value": "bgn"
        },
        {
          "name": "Bahraini Dinar",
          "value": "bhd"
        },
        {
          "name": "Burundian Franc",
          "value": "bif"
        },
        {
          "name": "Bermudan Dollar",
          "value": "bmd"
        },
        {
          "name": "Brunei Dollar",
          "value": "bnd"
        },
        {
          "name": "Bolivian Boliviano",
          "value": "bob"
        },
        {
          "name": "Brazilian Real",
          "value": "brl"
        },
        {
          "name": "Bahamian Dollar",
          "value": "bsd"
        },
        {
          "name": "Bitcoin",
          "value": "btc"
        },
        {
          "name": "Bhutanese Ngultrum",
          "value": "btn"
        },
        {
          "name": "Botswanan Pula",
          "value": "bwp"
        },
        {
          "name": "Belarusian Ruble",
          "value": "byn"
        },
        {
          "name": "Belize Dollar",
          "value": "bzd"
        },
        {
          "name": "Canadian Dollar",
          "value": "cad"
        },
        {
          "name": "Congolese Franc",
          "value": "cdf"
        },
        {
          "name": "Chilean Unit of Account (UF)",
          "value": "clf"
        },
        {
          "name": "Chilean Peso",
          "value": "clp"
        },
        {
          "name": "Chinese Yuan (Offshore)",
          "value": "cnh"
        },
        {
          "name": "Colombian Peso",
          "value": "cop"
        },
        {
          "name": "Costa Rican Colón",
          "value": "crc"
        },
        {
          "name": "Cuban Convertible Peso",
          "value": "cuc"
        },
        {
          "name": "Cuban Peso",
          "value": "cup"
        },
        {
          "name": "Cape Verdean Escudo",
          "value": "cve"
        },
        {
          "name": "Czech Republic Koruna",
          "value": "czk"
        },
        {
          "name": "Djiboutian Franc",
          "value": "djf"
        },
        {
          "name": "Danish Krone",
          "value": "dkk"
        },
        {
          "name": "Dominican Peso",
          "value": "dop"
        },
        {
          "name": "Algerian Dinar",
          "value": "dzd"
        },
        {
          "name": "Egyptian Pound",
          "value": "egp"
        },
        {
          "name": "Eritrean Nakfa",
          "value": "ern"
        },
        {
          "name": "Ethiopian Birr",
          "value": "etb"
        },
        {
          "name": "Fijian Dollar",
          "value": "fjd"
        },
        {
          "name": "Falkland Islands Pound",
          "value": "fkp"
        },
        {
          "name": "Georgian Lari",
          "value": "gel"
        },
        {
          "name": "Guernsey Pound",
          "value": "ggp"
        },
        {
          "name": "Ghanaian Cedi",
          "value": "ghs"
        },
        {
          "name": "Gibraltar Pound",
          "value": "gip"
        },
        {
          "name": "Gambian Dalasi",
          "value": "gmd"
        },
        {
          "name": "Guinean Franc",
          "value": "gnf"
        },
        {
          "name": "Guatemalan Quetzal",
          "value": "gtq"
        },
        {
          "name": "Guyanaese Dollar",
          "value": "gyd"
        },
        {
          "name": "Hong Kong Dollar",
          "value": "hkd"
        },
        {
          "name": "Honduran Lempira",
          "value": "hnl"
        },
        {
          "name": "Croatian Kuna",
          "value": "hrk"
        },
        {
          "name": "Haitian Gourde",
          "value": "htg"
        },
        {
          "name": "Hungarian Forint",
          "value": "huf"
        },
        {
          "name": "Indonesian Rupiah",
          "value": "idr"
        },
        {
          "name": "Israeli New Sheqel",
          "value": "ils"
        },
        {
          "name": "Manx Pound",
          "value": "imp"
        },
        {
          "name": "Indian Rupee",
          "value": "inr"
        },
        {
          "name": "Iraqi Dinar",
          "value": "iqd"
        },
        {
          "name": "Iranian Rial",
          "value": "irr"
        },
        {
          "name": "Icelandic Króna",
          "value": "isk"
        },
        {
          "name": "Jersey Pound",
          "value": "jep"
        },
        {
          "name": "Jamaican Dollar",
          "value": "jmd"
        },
        {
          "name": "Jordanian Dinar",
          "value": "jod"
        },
        {
          "name": "Japanese Yen",
          "value": "jpy"
        },
        {
          "name": "Kenyan Shilling",
          "value": "kes"
        },
        {
          "name": "Kyrgystani Som",
          "value": "kgs"
        },
        {
          "name": "Cambodian Riel",
          "value": "khr"
        },
        {
          "name": "Comorian Franc",
          "value": "kmf"
        },
        {
          "name": "North Korean Won",
          "value": "kpw"
        },
        {
          "name": "South Korean Won",
          "value": "krw"
        },
        {
          "name": "Kuwaiti Dinar",
          "value": "kwd"
        },
        {
          "name": "Cayman Islands Dollar",
          "value": "kyd"
        },
        {
          "name": "Kazakhstani Tenge",
          "value": "kzt"
        },
        {
          "name": "Laotian Kip",
          "value": "lak"
        },
        {
          "name": "Lebanese Pound",
          "value": "lbp"
        },
        {
          "name": "Sri Lankan Rupee",
          "value": "lkr"
        },
        {
          "name": "Liberian Dollar",
          "value": "lrd"
        },
        {
          "name": "Lesotho Loti",
          "value": "lsl"
        },
        {
          "name": "Libyan Dinar",
          "value": "lyd"
        },
        {
          "name": "Moroccan Dirham",
          "value": "mad"
        },
        {
          "name": "Moldovan Leu",
          "value": "mdl"
        },
        {
          "name": "Malagasy Ariary",
          "value": "mga"
        },
        {
          "name": "Macedonian Denar",
          "value": "mkd"
        },
        {
          "name": "Myanma Kyat",
          "value": "mmk"
        },
        {
          "name": "Mongolian Tugrik",
          "value": "mnt"
        },
        {
          "name": "Macanese Pataca",
          "value": "mop"
        },
        {
          "name": "Mauritanian Ouguiya (Pre-2018)",
          "value": "mro"
        },
        {
          "name": "Mauritanian Ouguiya",
          "value": "mru"
        },
        {
          "name": "Mauritian Rupee",
          "value": "mur"
        },
        {
          "name": "Maldivian Rufiyaa",
          "value": "mvr"
        },
        {
          "name": "Malawian Kwacha",
          "value": "mwk"
        },
        {
          "name": "Mexican Peso",
          "value": "mxn"
        },
        {
          "name": "Malaysian Ringgit",
          "value": "myr"
        },
        {
          "name": "Mozambican Metical",
          "value": "mzn"
        },
        {
          "name": "Namibian Dollar",
          "value": "nad"
        },
        {
          "name": "Nigerian Naira",
          "value": "ngn"
        },
        {
          "name": "Nicaraguan Córdoba",
          "value": "nio"
        },
        {
          "name": "Norwegian Krone",
          "value": "nok"
        },
        {
          "name": "Nepalese Rupee",
          "value": "npr"
        },
        {
          "name": "New Zealand Dollar",
          "value": "nzd"
        },
        {
          "name": "Omani Rial",
          "value": "omr"
        },
        {
          "name": "Panamanian Balboa",
          "value": "pab"
        },
        {
          "name": "Peruvian Nuevo Sol",
          "value": "pen"
        },
        {
          "name": "Papua New Guinean Kina",
          "value": "pgk"
        },
        {
          "name": "Philippine Peso",
          "value": "php"
        },
        {
          "name": "Pakistani Rupee",
          "value": "pkr"
        },
        {
          "name": "Polish Zloty",
          "value": "pln"
        },
        {
          "name": "Paraguayan Guarani",
          "value": "pyg"
        },
        {
          "name": "Qatari Rial",
          "value": "qar"
        },
        {
          "name": "Romanian Leu",
          "value": "ron"
        },
        {
          "name": "Serbian Dinar",
          "value": "rsd"
        },
        {
          "name": "Russian Ruble",
          "value": "rub"
        },
        {
          "name": "Rwandan Franc",
          "value": "rwf"
        },
        {
          "name": "Saudi Riyal",
          "value": "sar"
        },
        {
          "name": "Solomon Islands Dollar",
          "value": "sbd"
        },
        {
          "name": "Seychellois Rupee",
          "value": "scr"
        },
        {
          "name": "Sudanese Pound",
          "value": "sdg"
        },
        {
          "name": "Swedish Krona",
          "value": "sek"
        },
        {
          "name": "Singapore Dollar",
          "value": "sgd"
        },
        {
          "name": "Saint Helena Pound",
          "value": "shp"
        },
        {
          "name": "Sierra Leonean Leone",
          "value": "sll"
        },
        {
          "name": "Somali Shilling",
          "value": "sos"
        },
        {
          "name": "Surinamese Dollar",
          "value": "srd"
        },
        {
          "name": "South Sudanese Pound",
          "value": "ssp"
        },
        {
          "name": "São Tomé and Príncipe Dobra (Pre-2018)",
          "value": "std"
        },
        {
          "name": "São Tomé and Príncipe Dobra",
          "value": "stn"
        },
        {
          "name": "Salvadoran Colón",
          "value": "svc"
        },
        {
          "name": "Syrian Pound",
          "value": "syp"
        },
        {
          "name": "Swazi Lilangeni",
          "value": "szl"
        },
        {
          "name": "Thai Baht",
          "value": "thb"
        },
        {
          "name": "Tajikistani Somoni",
          "value": "tjs"
        },
        {
          "name": "Turkmenistani Manat",
          "value": "tmt"
        },
        {
          "name": "Tunisian Dinar",
          "value": "tnd"
        },
        {
          "name": "Tongan Pa'anga",
          "value": "top"
        },
        {
          "name": "Turkish Lira",
          "value": "try"
        },
        {
          "name": "Trinidad and Tobago Dollar",
          "value": "ttd"
        },
        {
          "name": "New Taiwan Dollar",
          "value": "twd"
        },
        {
          "name": "Tanzanian Shilling",
          "value": "tzs"
        },
        {
          "name": "Ukrainian Hryvnia",
          "value": "uah"
        },
        {
          "name": "Ugandan Shilling",
          "value": "ugx"
        },
        {
          "name": "Uruguayan Peso",
          "value": "uyu"
        },
        {
          "name": "Uzbekistan Som",
          "value": "uzs"
        },
        {
          "name": "Venezuelan Bolívar Fuerte",
          "value": "vef"
        },
        {
          "name": "Vietnamese Dong",
          "value": "vnd"
        },
        {
          "name": "Vanuatu Vatu",
          "value": "vuv"
        },
        {
          "name": "Samoan Tala",
          "value": "wst"
        },
        {
          "name": "CFA Franc BEAC",
          "value": "xaf"
        },
        {
          "name": "Silver Ounce",
          "value": "xag"
        },
        {
          "name": "Gold Ounce",
          "value": "xau"
        },
        {
          "name": "East Caribbean Dollar",
          "value": "xcd"
        },
        {
          "name": "Special Drawing Rights",
          "value": "xdr"
        },
        {
          "name": "CFA Franc BCEAO",
          "value": "xof"
        },
        {
          "name": "Palladium Ounce",
          "value": "xpd"
        },
        {
          "name": "CFP Franc",
          "value": "xpf"
        },
        {
          "name": "Platinum Ounce",
          "value": "xpt"
        },
        {
          "name": "Yemeni Rial",
          "value": "yer"
        },
        {
          "name": "South African Rand",
          "value": "zar"
        },
        {
          "name": "Zambian Kwacha",
          "value": "zmw"
        },
        {
          "name": "Zimbabwean Dollar",
          "value": "zwl"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Pipeline ID",
      "name": "group",
      "type": "string",
      "default": "",
      "description": "The pipeline ID of the deal",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Stage ID",
      "name": "stage",
      "type": "string",
      "default": "",
      "description": "The stage ID of the deal",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Owner ID",
      "name": "owner",
      "type": "string",
      "default": "",
      "description": "The owner ID of the deal",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "The description of the deal"
        },
        {
          "displayName": "Deal Percentage",
          "name": "percent",
          "type": "number",
          "default": 0,
          "description": "The percentage of the deal"
        },
        {
          "displayName": "Deal Status",
          "name": "status",
          "type": "number",
          "default": 0,
          "description": "The status of the deal"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "number",
      "default": 0,
      "description": "ID of the deal to update",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "The title of the deal"
        },
        {
          "displayName": "Deal's Contact ID",
          "name": "contact",
          "type": "number",
          "default": 0,
          "description": "The ID of the deal's contact"
        },
        {
          "displayName": "Deal Value",
          "name": "value",
          "type": "number",
          "default": 0,
          "description": "The value of the deal in cents"
        },
        {
          "displayName": "Currency",
          "name": "currency",
          "type": "options",
          "options": [
            {
              "name": "Euro",
              "value": "eur"
            },
            {
              "name": "United States Dollar",
              "value": "usd"
            },
            {
              "name": "British Pound Sterling",
              "value": "gbp"
            },
            {
              "name": "Swiss Franc",
              "value": "chf"
            },
            {
              "name": "Renminbi",
              "value": "cny"
            },
            {
              "name": "--------",
              "value": ""
            },
            {
              "name": "United Arab Emirates Dirham",
              "value": "aed"
            },
            {
              "name": "Afghan Afghani",
              "value": "afn"
            },
            {
              "name": "Albanian Lek",
              "value": "all"
            },
            {
              "name": "Armenian Dram",
              "value": "amd"
            },
            {
              "name": "Netherlands Antillean Guilder",
              "value": "ang"
            },
            {
              "name": "Angolan Kwanza",
              "value": "aoa"
            },
            {
              "name": "Argentine Peso",
              "value": "ars"
            },
            {
              "name": "Australian Dollar",
              "value": "aud"
            },
            {
              "name": "Aruban Florin",
              "value": "awg"
            },
            {
              "name": "Azerbaijani Manat",
              "value": "azn"
            },
            {
              "name": "Bosnia-Herzegovina Convertible Mark",
              "value": "bam"
            },
            {
              "name": "Barbadian Dollar",
              "value": "bbd"
            },
            {
              "name": "Bangladeshi Taka",
              "value": "bdt"
            },
            {
              "name": "Bulgarian Lev",
              "value": "bgn"
            },
            {
              "name": "Bahraini Dinar",
              "value": "bhd"
            },
            {
              "name": "Burundian Franc",
              "value": "bif"
            },
            {
              "name": "Bermudan Dollar",
              "value": "bmd"
            },
            {
              "name": "Brunei Dollar",
              "value": "bnd"
            },
            {
              "name": "Bolivian Boliviano",
              "value": "bob"
            },
            {
              "name": "Brazilian Real",
              "value": "brl"
            },
            {
              "name": "Bahamian Dollar",
              "value": "bsd"
            },
            {
              "name": "Bitcoin",
              "value": "btc"
            },
            {
              "name": "Bhutanese Ngultrum",
              "value": "btn"
            },
            {
              "name": "Botswanan Pula",
              "value": "bwp"
            },
            {
              "name": "Belarusian Ruble",
              "value": "byn"
            },
            {
              "name": "Belize Dollar",
              "value": "bzd"
            },
            {
              "name": "Canadian Dollar",
              "value": "cad"
            },
            {
              "name": "Congolese Franc",
              "value": "cdf"
            },
            {
              "name": "Chilean Unit of Account (UF)",
              "value": "clf"
            },
            {
              "name": "Chilean Peso",
              "value": "clp"
            },
            {
              "name": "Chinese Yuan (Offshore)",
              "value": "cnh"
            },
            {
              "name": "Colombian Peso",
              "value": "cop"
            },
            {
              "name": "Costa Rican Colón",
              "value": "crc"
            },
            {
              "name": "Cuban Convertible Peso",
              "value": "cuc"
            },
            {
              "name": "Cuban Peso",
              "value": "cup"
            },
            {
              "name": "Cape Verdean Escudo",
              "value": "cve"
            },
            {
              "name": "Czech Republic Koruna",
              "value": "czk"
            },
            {
              "name": "Djiboutian Franc",
              "value": "djf"
            },
            {
              "name": "Danish Krone",
              "value": "dkk"
            },
            {
              "name": "Dominican Peso",
              "value": "dop"
            },
            {
              "name": "Algerian Dinar",
              "value": "dzd"
            },
            {
              "name": "Egyptian Pound",
              "value": "egp"
            },
            {
              "name": "Eritrean Nakfa",
              "value": "ern"
            },
            {
              "name": "Ethiopian Birr",
              "value": "etb"
            },
            {
              "name": "Fijian Dollar",
              "value": "fjd"
            },
            {
              "name": "Falkland Islands Pound",
              "value": "fkp"
            },
            {
              "name": "Georgian Lari",
              "value": "gel"
            },
            {
              "name": "Guernsey Pound",
              "value": "ggp"
            },
            {
              "name": "Ghanaian Cedi",
              "value": "ghs"
            },
            {
              "name": "Gibraltar Pound",
              "value": "gip"
            },
            {
              "name": "Gambian Dalasi",
              "value": "gmd"
            },
            {
              "name": "Guinean Franc",
              "value": "gnf"
            },
            {
              "name": "Guatemalan Quetzal",
              "value": "gtq"
            },
            {
              "name": "Guyanaese Dollar",
              "value": "gyd"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "hkd"
            },
            {
              "name": "Honduran Lempira",
              "value": "hnl"
            },
            {
              "name": "Croatian Kuna",
              "value": "hrk"
            },
            {
              "name": "Haitian Gourde",
              "value": "htg"
            },
            {
              "name": "Hungarian Forint",
              "value": "huf"
            },
            {
              "name": "Indonesian Rupiah",
              "value": "idr"
            },
            {
              "name": "Israeli New Sheqel",
              "value": "ils"
            },
            {
              "name": "Manx Pound",
              "value": "imp"
            },
            {
              "name": "Indian Rupee",
              "value": "inr"
            },
            {
              "name": "Iraqi Dinar",
              "value": "iqd"
            },
            {
              "name": "Iranian Rial",
              "value": "irr"
            },
            {
              "name": "Icelandic Króna",
              "value": "isk"
            },
            {
              "name": "Jersey Pound",
              "value": "jep"
            },
            {
              "name": "Jamaican Dollar",
              "value": "jmd"
            },
            {
              "name": "Jordanian Dinar",
              "value": "jod"
            },
            {
              "name": "Japanese Yen",
              "value": "jpy"
            },
            {
              "name": "Kenyan Shilling",
              "value": "kes"
            },
            {
              "name": "Kyrgystani Som",
              "value": "kgs"
            },
            {
              "name": "Cambodian Riel",
              "value": "khr"
            },
            {
              "name": "Comorian Franc",
              "value": "kmf"
            },
            {
              "name": "North Korean Won",
              "value": "kpw"
            },
            {
              "name": "South Korean Won",
              "value": "krw"
            },
            {
              "name": "Kuwaiti Dinar",
              "value": "kwd"
            },
            {
              "name": "Cayman Islands Dollar",
              "value": "kyd"
            },
            {
              "name": "Kazakhstani Tenge",
              "value": "kzt"
            },
            {
              "name": "Laotian Kip",
              "value": "lak"
            },
            {
              "name": "Lebanese Pound",
              "value": "lbp"
            },
            {
              "name": "Sri Lankan Rupee",
              "value": "lkr"
            },
            {
              "name": "Liberian Dollar",
              "value": "lrd"
            },
            {
              "name": "Lesotho Loti",
              "value": "lsl"
            },
            {
              "name": "Libyan Dinar",
              "value": "lyd"
            },
            {
              "name": "Moroccan Dirham",
              "value": "mad"
            },
            {
              "name": "Moldovan Leu",
              "value": "mdl"
            },
            {
              "name": "Malagasy Ariary",
              "value": "mga"
            },
            {
              "name": "Macedonian Denar",
              "value": "mkd"
            },
            {
              "name": "Myanma Kyat",
              "value": "mmk"
            },
            {
              "name": "Mongolian Tugrik",
              "value": "mnt"
            },
            {
              "name": "Macanese Pataca",
              "value": "mop"
            },
            {
              "name": "Mauritanian Ouguiya (Pre-2018)",
              "value": "mro"
            },
            {
              "name": "Mauritanian Ouguiya",
              "value": "mru"
            },
            {
              "name": "Mauritian Rupee",
              "value": "mur"
            },
            {
              "name": "Maldivian Rufiyaa",
              "value": "mvr"
            },
            {
              "name": "Malawian Kwacha",
              "value": "mwk"
            },
            {
              "name": "Mexican Peso",
              "value": "mxn"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "myr"
            },
            {
              "name": "Mozambican Metical",
              "value": "mzn"
            },
            {
              "name": "Namibian Dollar",
              "value": "nad"
            },
            {
              "name": "Nigerian Naira",
              "value": "ngn"
            },
            {
              "name": "Nicaraguan Córdoba",
              "value": "nio"
            },
            {
              "name": "Norwegian Krone",
              "value": "nok"
            },
            {
              "name": "Nepalese Rupee",
              "value": "npr"
            },
            {
              "name": "New Zealand Dollar",
              "value": "nzd"
            },
            {
              "name": "Omani Rial",
              "value": "omr"
            },
            {
              "name": "Panamanian Balboa",
              "value": "pab"
            },
            {
              "name": "Peruvian Nuevo Sol",
              "value": "pen"
            },
            {
              "name": "Papua New Guinean Kina",
              "value": "pgk"
            },
            {
              "name": "Philippine Peso",
              "value": "php"
            },
            {
              "name": "Pakistani Rupee",
              "value": "pkr"
            },
            {
              "name": "Polish Zloty",
              "value": "pln"
            },
            {
              "name": "Paraguayan Guarani",
              "value": "pyg"
            },
            {
              "name": "Qatari Rial",
              "value": "qar"
            },
            {
              "name": "Romanian Leu",
              "value": "ron"
            },
            {
              "name": "Serbian Dinar",
              "value": "rsd"
            },
            {
              "name": "Russian Ruble",
              "value": "rub"
            },
            {
              "name": "Rwandan Franc",
              "value": "rwf"
            },
            {
              "name": "Saudi Riyal",
              "value": "sar"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "sbd"
            },
            {
              "name": "Seychellois Rupee",
              "value": "scr"
            },
            {
              "name": "Sudanese Pound",
              "value": "sdg"
            },
            {
              "name": "Swedish Krona",
              "value": "sek"
            },
            {
              "name": "Singapore Dollar",
              "value": "sgd"
            },
            {
              "name": "Saint Helena Pound",
              "value": "shp"
            },
            {
              "name": "Sierra Leonean Leone",
              "value": "sll"
            },
            {
              "name": "Somali Shilling",
              "value": "sos"
            },
            {
              "name": "Surinamese Dollar",
              "value": "srd"
            },
            {
              "name": "South Sudanese Pound",
              "value": "ssp"
            },
            {
              "name": "São Tomé and Príncipe Dobra (Pre-2018)",
              "value": "std"
            },
            {
              "name": "São Tomé and Príncipe Dobra",
              "value": "stn"
            },
            {
              "name": "Salvadoran Colón",
              "value": "svc"
            },
            {
              "name": "Syrian Pound",
              "value": "syp"
            },
            {
              "name": "Swazi Lilangeni",
              "value": "szl"
            },
            {
              "name": "Thai Baht",
              "value": "thb"
            },
            {
              "name": "Tajikistani Somoni",
              "value": "tjs"
            },
            {
              "name": "Turkmenistani Manat",
              "value": "tmt"
            },
            {
              "name": "Tunisian Dinar",
              "value": "tnd"
            },
            {
              "name": "Tongan Pa'anga",
              "value": "top"
            },
            {
              "name": "Turkish Lira",
              "value": "try"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "ttd"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "twd"
            },
            {
              "name": "Tanzanian Shilling",
              "value": "tzs"
            },
            {
              "name": "Ukrainian Hryvnia",
              "value": "uah"
            },
            {
              "name": "Ugandan Shilling",
              "value": "ugx"
            },
            {
              "name": "Uruguayan Peso",
              "value": "uyu"
            },
            {
              "name": "Uzbekistan Som",
              "value": "uzs"
            },
            {
              "name": "Venezuelan Bolívar Fuerte",
              "value": "vef"
            },
            {
              "name": "Vietnamese Dong",
              "value": "vnd"
            },
            {
              "name": "Vanuatu Vatu",
              "value": "vuv"
            },
            {
              "name": "Samoan Tala",
              "value": "wst"
            },
            {
              "name": "CFA Franc BEAC",
              "value": "xaf"
            },
            {
              "name": "Silver Ounce",
              "value": "xag"
            },
            {
              "name": "Gold Ounce",
              "value": "xau"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "xcd"
            },
            {
              "name": "Special Drawing Rights",
              "value": "xdr"
            },
            {
              "name": "CFA Franc BCEAO",
              "value": "xof"
            },
            {
              "name": "Palladium Ounce",
              "value": "xpd"
            },
            {
              "name": "CFP Franc",
              "value": "xpf"
            },
            {
              "name": "Platinum Ounce",
              "value": "xpt"
            },
            {
              "name": "Yemeni Rial",
              "value": "yer"
            },
            {
              "name": "South African Rand",
              "value": "zar"
            },
            {
              "name": "Zambian Kwacha",
              "value": "zmw"
            },
            {
              "name": "Zimbabwean Dollar",
              "value": "zwl"
            }
          ],
          "default": "eur",
          "description": "The currency of the deal in 3-character ISO format"
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "The description of the deal"
        },
        {
          "displayName": "Deal Pipeline ID",
          "name": "group",
          "type": "string",
          "default": "",
          "description": "The pipeline ID of the deal"
        },
        {
          "displayName": "Deal Stage ID",
          "name": "stage",
          "type": "string",
          "default": "",
          "description": "The stage ID of the deal"
        },
        {
          "displayName": "Deal Owner ID",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "The owner ID of the deal"
        },
        {
          "displayName": "Deal Percentage",
          "name": "percent",
          "type": "number",
          "default": 0,
          "description": "The percentage of the deal"
        },
        {
          "displayName": "Deal Status",
          "name": "status",
          "type": "number",
          "default": 0,
          "description": "The status of the deal"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "number",
      "default": 0,
      "description": "The ID of the deal to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "number",
      "default": 0,
      "description": "The ID of the deal to get",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "deal"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "number",
      "default": "",
      "description": "The ID of the deal note",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "createNote"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Note",
      "name": "dealNote",
      "type": "string",
      "default": "",
      "description": "The content of the deal note",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "createNote"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "number",
      "default": "",
      "description": "The ID of the deal note",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "updateNote"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Note ID",
      "name": "dealNoteId",
      "type": "number",
      "default": "",
      "description": "The ID of the deal note",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "updateNote"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Deal Note",
      "name": "dealNote",
      "type": "string",
      "default": "",
      "description": "The content of the deal note",
      "displayOptions": {
        "show": {
          "operation": [
            "updateNote"
          ],
          "resource": [
            "deal"
          ]
        }
      }
    },
    {
      "displayName": "Service",
      "name": "service",
      "type": "string",
      "default": "",
      "description": "The name of the service",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "External Account ID",
      "name": "externalid",
      "type": "string",
      "default": "",
      "description": "The ID of the account in the external service",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Account Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "The name associated with the account in the external service. Often this will be a company name (e.g., \"My Toystore, Inc.\").",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Logo URL",
      "name": "logoUrl",
      "type": "string",
      "default": "",
      "description": "The URL to a logo image for the external service",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Link URL",
      "name": "linkUrl",
      "type": "string",
      "default": "",
      "description": "The URL to a page where the integration with the external service can be managed in the third-party's website",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Connection ID",
      "name": "connectionId",
      "type": "number",
      "default": 0,
      "description": "ID of the connection to update",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Service",
          "name": "service",
          "type": "string",
          "default": "",
          "description": "The name of the service"
        },
        {
          "displayName": "External Account ID",
          "name": "externalid",
          "type": "string",
          "default": "",
          "description": "The ID of the account in the external service"
        },
        {
          "displayName": "Account Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "The name associated with the account in the external service. Often this will be a company name (e.g., \"My Toystore, Inc.\")."
        },
        {
          "displayName": "Logo URL",
          "name": "logoUrl",
          "type": "string",
          "default": "",
          "description": "The URL to a logo image for the external service"
        },
        {
          "displayName": "Link URL",
          "name": "linkUrl",
          "type": "string",
          "default": "",
          "description": "The URL to a page where the integration with the external service can be managed in the third-party's website"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "number",
          "default": 1,
          "description": "The status of the connection (0 = error; 1 = connected)"
        },
        {
          "displayName": "Syncronisation Status",
          "name": "syncStatus",
          "type": "number",
          "default": 1,
          "description": "The status of a sync triggered on the connection (0 = sync stopped; 1 = sync running)"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Connection ID",
      "name": "connectionId",
      "type": "number",
      "default": 0,
      "description": "ID of the connection to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Connection ID",
      "name": "connectionId",
      "type": "number",
      "default": 0,
      "description": "ID of the connection to get",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "connection"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "connection"
          ]
        }
      }
    },
    {
      "displayName": "External ID",
      "name": "externalid",
      "type": "string",
      "default": "",
      "description": "The ID of the order in the external service. ONLY REQUIRED IF EXTERNALCHECKOUTID NOT INCLUDED.",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "External Checkout ID",
      "name": "externalcheckoutid",
      "type": "string",
      "default": "",
      "description": "The ID of the cart in the external service. ONLY REQUIRED IF EXTERNALID IS NOT INCLUDED.",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Order Source",
      "name": "source",
      "type": "number",
      "default": 0,
      "description": "The order source code (0 - will not trigger automations, 1 - will trigger automations)",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Customer Email",
      "name": "email",
      "type": "string",
      "default": "",
      "description": "The email address of the customer who placed the order",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Total Price",
      "name": "totalPrice",
      "type": "number",
      "default": 0,
      "description": "The total price of the order in cents, including tax and shipping charges. (i.e. $456.78 => 45678). Must be greater than or equal to zero.",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Order Currency",
      "name": "currency",
      "type": "options",
      "default": "eur",
      "description": "The currency of the order (3-digit ISO code, e.g., \"USD\")",
      "options": [
        {
          "name": "Euro",
          "value": "eur"
        },
        {
          "name": "United States Dollar",
          "value": "usd"
        },
        {
          "name": "British Pound Sterling",
          "value": "gbp"
        },
        {
          "name": "Swiss Franc",
          "value": "chf"
        },
        {
          "name": "Renminbi",
          "value": "cny"
        },
        {
          "name": "--------",
          "value": ""
        },
        {
          "name": "United Arab Emirates Dirham",
          "value": "aed"
        },
        {
          "name": "Afghan Afghani",
          "value": "afn"
        },
        {
          "name": "Albanian Lek",
          "value": "all"
        },
        {
          "name": "Armenian Dram",
          "value": "amd"
        },
        {
          "name": "Netherlands Antillean Guilder",
          "value": "ang"
        },
        {
          "name": "Angolan Kwanza",
          "value": "aoa"
        },
        {
          "name": "Argentine Peso",
          "value": "ars"
        },
        {
          "name": "Australian Dollar",
          "value": "aud"
        },
        {
          "name": "Aruban Florin",
          "value": "awg"
        },
        {
          "name": "Azerbaijani Manat",
          "value": "azn"
        },
        {
          "name": "Bosnia-Herzegovina Convertible Mark",
          "value": "bam"
        },
        {
          "name": "Barbadian Dollar",
          "value": "bbd"
        },
        {
          "name": "Bangladeshi Taka",
          "value": "bdt"
        },
        {
          "name": "Bulgarian Lev",
          "value": "bgn"
        },
        {
          "name": "Bahraini Dinar",
          "value": "bhd"
        },
        {
          "name": "Burundian Franc",
          "value": "bif"
        },
        {
          "name": "Bermudan Dollar",
          "value": "bmd"
        },
        {
          "name": "Brunei Dollar",
          "value": "bnd"
        },
        {
          "name": "Bolivian Boliviano",
          "value": "bob"
        },
        {
          "name": "Brazilian Real",
          "value": "brl"
        },
        {
          "name": "Bahamian Dollar",
          "value": "bsd"
        },
        {
          "name": "Bitcoin",
          "value": "btc"
        },
        {
          "name": "Bhutanese Ngultrum",
          "value": "btn"
        },
        {
          "name": "Botswanan Pula",
          "value": "bwp"
        },
        {
          "name": "Belarusian Ruble",
          "value": "byn"
        },
        {
          "name": "Belize Dollar",
          "value": "bzd"
        },
        {
          "name": "Canadian Dollar",
          "value": "cad"
        },
        {
          "name": "Congolese Franc",
          "value": "cdf"
        },
        {
          "name": "Chilean Unit of Account (UF)",
          "value": "clf"
        },
        {
          "name": "Chilean Peso",
          "value": "clp"
        },
        {
          "name": "Chinese Yuan (Offshore)",
          "value": "cnh"
        },
        {
          "name": "Colombian Peso",
          "value": "cop"
        },
        {
          "name": "Costa Rican Colón",
          "value": "crc"
        },
        {
          "name": "Cuban Convertible Peso",
          "value": "cuc"
        },
        {
          "name": "Cuban Peso",
          "value": "cup"
        },
        {
          "name": "Cape Verdean Escudo",
          "value": "cve"
        },
        {
          "name": "Czech Republic Koruna",
          "value": "czk"
        },
        {
          "name": "Djiboutian Franc",
          "value": "djf"
        },
        {
          "name": "Danish Krone",
          "value": "dkk"
        },
        {
          "name": "Dominican Peso",
          "value": "dop"
        },
        {
          "name": "Algerian Dinar",
          "value": "dzd"
        },
        {
          "name": "Egyptian Pound",
          "value": "egp"
        },
        {
          "name": "Eritrean Nakfa",
          "value": "ern"
        },
        {
          "name": "Ethiopian Birr",
          "value": "etb"
        },
        {
          "name": "Fijian Dollar",
          "value": "fjd"
        },
        {
          "name": "Falkland Islands Pound",
          "value": "fkp"
        },
        {
          "name": "Georgian Lari",
          "value": "gel"
        },
        {
          "name": "Guernsey Pound",
          "value": "ggp"
        },
        {
          "name": "Ghanaian Cedi",
          "value": "ghs"
        },
        {
          "name": "Gibraltar Pound",
          "value": "gip"
        },
        {
          "name": "Gambian Dalasi",
          "value": "gmd"
        },
        {
          "name": "Guinean Franc",
          "value": "gnf"
        },
        {
          "name": "Guatemalan Quetzal",
          "value": "gtq"
        },
        {
          "name": "Guyanaese Dollar",
          "value": "gyd"
        },
        {
          "name": "Hong Kong Dollar",
          "value": "hkd"
        },
        {
          "name": "Honduran Lempira",
          "value": "hnl"
        },
        {
          "name": "Croatian Kuna",
          "value": "hrk"
        },
        {
          "name": "Haitian Gourde",
          "value": "htg"
        },
        {
          "name": "Hungarian Forint",
          "value": "huf"
        },
        {
          "name": "Indonesian Rupiah",
          "value": "idr"
        },
        {
          "name": "Israeli New Sheqel",
          "value": "ils"
        },
        {
          "name": "Manx Pound",
          "value": "imp"
        },
        {
          "name": "Indian Rupee",
          "value": "inr"
        },
        {
          "name": "Iraqi Dinar",
          "value": "iqd"
        },
        {
          "name": "Iranian Rial",
          "value": "irr"
        },
        {
          "name": "Icelandic Króna",
          "value": "isk"
        },
        {
          "name": "Jersey Pound",
          "value": "jep"
        },
        {
          "name": "Jamaican Dollar",
          "value": "jmd"
        },
        {
          "name": "Jordanian Dinar",
          "value": "jod"
        },
        {
          "name": "Japanese Yen",
          "value": "jpy"
        },
        {
          "name": "Kenyan Shilling",
          "value": "kes"
        },
        {
          "name": "Kyrgystani Som",
          "value": "kgs"
        },
        {
          "name": "Cambodian Riel",
          "value": "khr"
        },
        {
          "name": "Comorian Franc",
          "value": "kmf"
        },
        {
          "name": "North Korean Won",
          "value": "kpw"
        },
        {
          "name": "South Korean Won",
          "value": "krw"
        },
        {
          "name": "Kuwaiti Dinar",
          "value": "kwd"
        },
        {
          "name": "Cayman Islands Dollar",
          "value": "kyd"
        },
        {
          "name": "Kazakhstani Tenge",
          "value": "kzt"
        },
        {
          "name": "Laotian Kip",
          "value": "lak"
        },
        {
          "name": "Lebanese Pound",
          "value": "lbp"
        },
        {
          "name": "Sri Lankan Rupee",
          "value": "lkr"
        },
        {
          "name": "Liberian Dollar",
          "value": "lrd"
        },
        {
          "name": "Lesotho Loti",
          "value": "lsl"
        },
        {
          "name": "Libyan Dinar",
          "value": "lyd"
        },
        {
          "name": "Moroccan Dirham",
          "value": "mad"
        },
        {
          "name": "Moldovan Leu",
          "value": "mdl"
        },
        {
          "name": "Malagasy Ariary",
          "value": "mga"
        },
        {
          "name": "Macedonian Denar",
          "value": "mkd"
        },
        {
          "name": "Myanma Kyat",
          "value": "mmk"
        },
        {
          "name": "Mongolian Tugrik",
          "value": "mnt"
        },
        {
          "name": "Macanese Pataca",
          "value": "mop"
        },
        {
          "name": "Mauritanian Ouguiya (Pre-2018)",
          "value": "mro"
        },
        {
          "name": "Mauritanian Ouguiya",
          "value": "mru"
        },
        {
          "name": "Mauritian Rupee",
          "value": "mur"
        },
        {
          "name": "Maldivian Rufiyaa",
          "value": "mvr"
        },
        {
          "name": "Malawian Kwacha",
          "value": "mwk"
        },
        {
          "name": "Mexican Peso",
          "value": "mxn"
        },
        {
          "name": "Malaysian Ringgit",
          "value": "myr"
        },
        {
          "name": "Mozambican Metical",
          "value": "mzn"
        },
        {
          "name": "Namibian Dollar",
          "value": "nad"
        },
        {
          "name": "Nigerian Naira",
          "value": "ngn"
        },
        {
          "name": "Nicaraguan Córdoba",
          "value": "nio"
        },
        {
          "name": "Norwegian Krone",
          "value": "nok"
        },
        {
          "name": "Nepalese Rupee",
          "value": "npr"
        },
        {
          "name": "New Zealand Dollar",
          "value": "nzd"
        },
        {
          "name": "Omani Rial",
          "value": "omr"
        },
        {
          "name": "Panamanian Balboa",
          "value": "pab"
        },
        {
          "name": "Peruvian Nuevo Sol",
          "value": "pen"
        },
        {
          "name": "Papua New Guinean Kina",
          "value": "pgk"
        },
        {
          "name": "Philippine Peso",
          "value": "php"
        },
        {
          "name": "Pakistani Rupee",
          "value": "pkr"
        },
        {
          "name": "Polish Zloty",
          "value": "pln"
        },
        {
          "name": "Paraguayan Guarani",
          "value": "pyg"
        },
        {
          "name": "Qatari Rial",
          "value": "qar"
        },
        {
          "name": "Romanian Leu",
          "value": "ron"
        },
        {
          "name": "Serbian Dinar",
          "value": "rsd"
        },
        {
          "name": "Russian Ruble",
          "value": "rub"
        },
        {
          "name": "Rwandan Franc",
          "value": "rwf"
        },
        {
          "name": "Saudi Riyal",
          "value": "sar"
        },
        {
          "name": "Solomon Islands Dollar",
          "value": "sbd"
        },
        {
          "name": "Seychellois Rupee",
          "value": "scr"
        },
        {
          "name": "Sudanese Pound",
          "value": "sdg"
        },
        {
          "name": "Swedish Krona",
          "value": "sek"
        },
        {
          "name": "Singapore Dollar",
          "value": "sgd"
        },
        {
          "name": "Saint Helena Pound",
          "value": "shp"
        },
        {
          "name": "Sierra Leonean Leone",
          "value": "sll"
        },
        {
          "name": "Somali Shilling",
          "value": "sos"
        },
        {
          "name": "Surinamese Dollar",
          "value": "srd"
        },
        {
          "name": "South Sudanese Pound",
          "value": "ssp"
        },
        {
          "name": "São Tomé and Príncipe Dobra (Pre-2018)",
          "value": "std"
        },
        {
          "name": "São Tomé and Príncipe Dobra",
          "value": "stn"
        },
        {
          "name": "Salvadoran Colón",
          "value": "svc"
        },
        {
          "name": "Syrian Pound",
          "value": "syp"
        },
        {
          "name": "Swazi Lilangeni",
          "value": "szl"
        },
        {
          "name": "Thai Baht",
          "value": "thb"
        },
        {
          "name": "Tajikistani Somoni",
          "value": "tjs"
        },
        {
          "name": "Turkmenistani Manat",
          "value": "tmt"
        },
        {
          "name": "Tunisian Dinar",
          "value": "tnd"
        },
        {
          "name": "Tongan Pa'anga",
          "value": "top"
        },
        {
          "name": "Turkish Lira",
          "value": "try"
        },
        {
          "name": "Trinidad and Tobago Dollar",
          "value": "ttd"
        },
        {
          "name": "New Taiwan Dollar",
          "value": "twd"
        },
        {
          "name": "Tanzanian Shilling",
          "value": "tzs"
        },
        {
          "name": "Ukrainian Hryvnia",
          "value": "uah"
        },
        {
          "name": "Ugandan Shilling",
          "value": "ugx"
        },
        {
          "name": "Uruguayan Peso",
          "value": "uyu"
        },
        {
          "name": "Uzbekistan Som",
          "value": "uzs"
        },
        {
          "name": "Venezuelan Bolívar Fuerte",
          "value": "vef"
        },
        {
          "name": "Vietnamese Dong",
          "value": "vnd"
        },
        {
          "name": "Vanuatu Vatu",
          "value": "vuv"
        },
        {
          "name": "Samoan Tala",
          "value": "wst"
        },
        {
          "name": "CFA Franc BEAC",
          "value": "xaf"
        },
        {
          "name": "Silver Ounce",
          "value": "xag"
        },
        {
          "name": "Gold Ounce",
          "value": "xau"
        },
        {
          "name": "East Caribbean Dollar",
          "value": "xcd"
        },
        {
          "name": "Special Drawing Rights",
          "value": "xdr"
        },
        {
          "name": "CFA Franc BCEAO",
          "value": "xof"
        },
        {
          "name": "Palladium Ounce",
          "value": "xpd"
        },
        {
          "name": "CFP Franc",
          "value": "xpf"
        },
        {
          "name": "Platinum Ounce",
          "value": "xpt"
        },
        {
          "name": "Yemeni Rial",
          "value": "yer"
        },
        {
          "name": "South African Rand",
          "value": "zar"
        },
        {
          "name": "Zambian Kwacha",
          "value": "zmw"
        },
        {
          "name": "Zimbabwean Dollar",
          "value": "zwl"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Connection ID",
      "name": "connectionid",
      "type": "number",
      "default": 0,
      "description": "The ID of the connection from which this order originated",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Customer ID",
      "name": "customerid",
      "type": "number",
      "default": 0,
      "description": "The ID of the customer associated with this order",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Creation Date",
      "name": "externalCreatedDate",
      "type": "dateTime",
      "default": "",
      "description": "The date the order was placed",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Abandoning Date",
      "name": "abandonedDate",
      "type": "dateTime",
      "default": "",
      "description": "The date the cart was abandoned. REQUIRED ONLY IF INCLUDING EXTERNALCHECKOUTID.",
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Products",
      "name": "orderProducts",
      "type": "collection",
      "default": {},
      "description": "All ordered products",
      "options": [
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "The name of the product"
        },
        {
          "displayName": "Price",
          "name": "price",
          "type": "number",
          "default": 0,
          "description": "The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero."
        },
        {
          "displayName": "Product Quantity",
          "name": "quantity",
          "type": "number",
          "default": 0,
          "description": "The quantity ordered"
        },
        {
          "displayName": "Product External ID",
          "name": "externalid",
          "type": "string",
          "default": "",
          "description": "The ID of the product in the external service"
        },
        {
          "displayName": "Product Category",
          "name": "category",
          "type": "string",
          "default": "",
          "description": "The category of the product"
        },
        {
          "displayName": "SKU",
          "name": "sku",
          "type": "string",
          "default": "",
          "description": "The SKU for the product"
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "The description of the product"
        },
        {
          "displayName": "Image URL",
          "name": "imageUrl",
          "type": "string",
          "default": "",
          "description": "An Image URL that displays an image of the product"
        },
        {
          "displayName": "Product URL",
          "name": "productUrl",
          "type": "string",
          "default": "",
          "description": "A URL linking to the product in your store"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add product"
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Shipping Amount",
          "name": "shippingAmount",
          "type": "number",
          "default": 0,
          "description": "The total shipping amount for the order in cents"
        },
        {
          "displayName": "Tax Amount",
          "name": "taxAmount",
          "type": "number",
          "default": 0,
          "description": "The total tax amount for the order in cents"
        },
        {
          "displayName": "Discount Amount",
          "name": "discountAmount",
          "type": "number",
          "default": 0,
          "description": "The total discount amount for the order in cents"
        },
        {
          "displayName": "Order URL",
          "name": "orderUrl",
          "type": "string",
          "default": "",
          "description": "The URL for the order in the external service"
        },
        {
          "displayName": "External Updated Date",
          "name": "externalUpdatedDate",
          "type": "dateTime",
          "default": "",
          "description": "The date the order was updated"
        },
        {
          "displayName": "Shipping Method",
          "name": "shippingMethod",
          "type": "string",
          "default": "",
          "description": "The shipping method of the order"
        },
        {
          "displayName": "Order Number",
          "name": "orderNumber",
          "type": "string",
          "default": "",
          "description": "The order number. This can be different than the externalid."
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Order ID",
      "name": "orderId",
      "type": "number",
      "default": 0,
      "description": "The ID of the e-commerce order",
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "External ID",
          "name": "externalid",
          "type": "string",
          "default": "",
          "description": "The ID of the order in the external service. ONLY REQUIRED IF EXTERNALCHECKOUTID NOT INCLUDED."
        },
        {
          "displayName": "External Checkout ID",
          "name": "externalcheckoutid",
          "type": "string",
          "default": "",
          "description": "The ID of the cart in the external service. ONLY REQUIRED IF EXTERNALID IS NOT INCLUDED."
        },
        {
          "displayName": "Order Source",
          "name": "source",
          "type": "number",
          "default": 0,
          "description": "The order source code (0 - will not trigger automations, 1 - will trigger automations)"
        },
        {
          "displayName": "Customer Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "The email address of the customer who placed the order"
        },
        {
          "displayName": "Total Price",
          "name": "totalPrice",
          "type": "number",
          "default": 0,
          "description": "The total price of the order in cents, including tax and shipping charges. (i.e. $456.78 => 45678). Must be greater than or equal to zero."
        },
        {
          "displayName": "Order Currency",
          "name": "currency",
          "type": "options",
          "default": "eur",
          "options": [
            {
              "name": "Euro",
              "value": "eur"
            },
            {
              "name": "United States Dollar",
              "value": "usd"
            },
            {
              "name": "British Pound Sterling",
              "value": "gbp"
            },
            {
              "name": "Swiss Franc",
              "value": "chf"
            },
            {
              "name": "Renminbi",
              "value": "cny"
            },
            {
              "name": "--------",
              "value": ""
            },
            {
              "name": "United Arab Emirates Dirham",
              "value": "aed"
            },
            {
              "name": "Afghan Afghani",
              "value": "afn"
            },
            {
              "name": "Albanian Lek",
              "value": "all"
            },
            {
              "name": "Armenian Dram",
              "value": "amd"
            },
            {
              "name": "Netherlands Antillean Guilder",
              "value": "ang"
            },
            {
              "name": "Angolan Kwanza",
              "value": "aoa"
            },
            {
              "name": "Argentine Peso",
              "value": "ars"
            },
            {
              "name": "Australian Dollar",
              "value": "aud"
            },
            {
              "name": "Aruban Florin",
              "value": "awg"
            },
            {
              "name": "Azerbaijani Manat",
              "value": "azn"
            },
            {
              "name": "Bosnia-Herzegovina Convertible Mark",
              "value": "bam"
            },
            {
              "name": "Barbadian Dollar",
              "value": "bbd"
            },
            {
              "name": "Bangladeshi Taka",
              "value": "bdt"
            },
            {
              "name": "Bulgarian Lev",
              "value": "bgn"
            },
            {
              "name": "Bahraini Dinar",
              "value": "bhd"
            },
            {
              "name": "Burundian Franc",
              "value": "bif"
            },
            {
              "name": "Bermudan Dollar",
              "value": "bmd"
            },
            {
              "name": "Brunei Dollar",
              "value": "bnd"
            },
            {
              "name": "Bolivian Boliviano",
              "value": "bob"
            },
            {
              "name": "Brazilian Real",
              "value": "brl"
            },
            {
              "name": "Bahamian Dollar",
              "value": "bsd"
            },
            {
              "name": "Bitcoin",
              "value": "btc"
            },
            {
              "name": "Bhutanese Ngultrum",
              "value": "btn"
            },
            {
              "name": "Botswanan Pula",
              "value": "bwp"
            },
            {
              "name": "Belarusian Ruble",
              "value": "byn"
            },
            {
              "name": "Belize Dollar",
              "value": "bzd"
            },
            {
              "name": "Canadian Dollar",
              "value": "cad"
            },
            {
              "name": "Congolese Franc",
              "value": "cdf"
            },
            {
              "name": "Chilean Unit of Account (UF)",
              "value": "clf"
            },
            {
              "name": "Chilean Peso",
              "value": "clp"
            },
            {
              "name": "Chinese Yuan (Offshore)",
              "value": "cnh"
            },
            {
              "name": "Colombian Peso",
              "value": "cop"
            },
            {
              "name": "Costa Rican Colón",
              "value": "crc"
            },
            {
              "name": "Cuban Convertible Peso",
              "value": "cuc"
            },
            {
              "name": "Cuban Peso",
              "value": "cup"
            },
            {
              "name": "Cape Verdean Escudo",
              "value": "cve"
            },
            {
              "name": "Czech Republic Koruna",
              "value": "czk"
            },
            {
              "name": "Djiboutian Franc",
              "value": "djf"
            },
            {
              "name": "Danish Krone",
              "value": "dkk"
            },
            {
              "name": "Dominican Peso",
              "value": "dop"
            },
            {
              "name": "Algerian Dinar",
              "value": "dzd"
            },
            {
              "name": "Egyptian Pound",
              "value": "egp"
            },
            {
              "name": "Eritrean Nakfa",
              "value": "ern"
            },
            {
              "name": "Ethiopian Birr",
              "value": "etb"
            },
            {
              "name": "Fijian Dollar",
              "value": "fjd"
            },
            {
              "name": "Falkland Islands Pound",
              "value": "fkp"
            },
            {
              "name": "Georgian Lari",
              "value": "gel"
            },
            {
              "name": "Guernsey Pound",
              "value": "ggp"
            },
            {
              "name": "Ghanaian Cedi",
              "value": "ghs"
            },
            {
              "name": "Gibraltar Pound",
              "value": "gip"
            },
            {
              "name": "Gambian Dalasi",
              "value": "gmd"
            },
            {
              "name": "Guinean Franc",
              "value": "gnf"
            },
            {
              "name": "Guatemalan Quetzal",
              "value": "gtq"
            },
            {
              "name": "Guyanaese Dollar",
              "value": "gyd"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "hkd"
            },
            {
              "name": "Honduran Lempira",
              "value": "hnl"
            },
            {
              "name": "Croatian Kuna",
              "value": "hrk"
            },
            {
              "name": "Haitian Gourde",
              "value": "htg"
            },
            {
              "name": "Hungarian Forint",
              "value": "huf"
            },
            {
              "name": "Indonesian Rupiah",
              "value": "idr"
            },
            {
              "name": "Israeli New Sheqel",
              "value": "ils"
            },
            {
              "name": "Manx Pound",
              "value": "imp"
            },
            {
              "name": "Indian Rupee",
              "value": "inr"
            },
            {
              "name": "Iraqi Dinar",
              "value": "iqd"
            },
            {
              "name": "Iranian Rial",
              "value": "irr"
            },
            {
              "name": "Icelandic Króna",
              "value": "isk"
            },
            {
              "name": "Jersey Pound",
              "value": "jep"
            },
            {
              "name": "Jamaican Dollar",
              "value": "jmd"
            },
            {
              "name": "Jordanian Dinar",
              "value": "jod"
            },
            {
              "name": "Japanese Yen",
              "value": "jpy"
            },
            {
              "name": "Kenyan Shilling",
              "value": "kes"
            },
            {
              "name": "Kyrgystani Som",
              "value": "kgs"
            },
            {
              "name": "Cambodian Riel",
              "value": "khr"
            },
            {
              "name": "Comorian Franc",
              "value": "kmf"
            },
            {
              "name": "North Korean Won",
              "value": "kpw"
            },
            {
              "name": "South Korean Won",
              "value": "krw"
            },
            {
              "name": "Kuwaiti Dinar",
              "value": "kwd"
            },
            {
              "name": "Cayman Islands Dollar",
              "value": "kyd"
            },
            {
              "name": "Kazakhstani Tenge",
              "value": "kzt"
            },
            {
              "name": "Laotian Kip",
              "value": "lak"
            },
            {
              "name": "Lebanese Pound",
              "value": "lbp"
            },
            {
              "name": "Sri Lankan Rupee",
              "value": "lkr"
            },
            {
              "name": "Liberian Dollar",
              "value": "lrd"
            },
            {
              "name": "Lesotho Loti",
              "value": "lsl"
            },
            {
              "name": "Libyan Dinar",
              "value": "lyd"
            },
            {
              "name": "Moroccan Dirham",
              "value": "mad"
            },
            {
              "name": "Moldovan Leu",
              "value": "mdl"
            },
            {
              "name": "Malagasy Ariary",
              "value": "mga"
            },
            {
              "name": "Macedonian Denar",
              "value": "mkd"
            },
            {
              "name": "Myanma Kyat",
              "value": "mmk"
            },
            {
              "name": "Mongolian Tugrik",
              "value": "mnt"
            },
            {
              "name": "Macanese Pataca",
              "value": "mop"
            },
            {
              "name": "Mauritanian Ouguiya (Pre-2018)",
              "value": "mro"
            },
            {
              "name": "Mauritanian Ouguiya",
              "value": "mru"
            },
            {
              "name": "Mauritian Rupee",
              "value": "mur"
            },
            {
              "name": "Maldivian Rufiyaa",
              "value": "mvr"
            },
            {
              "name": "Malawian Kwacha",
              "value": "mwk"
            },
            {
              "name": "Mexican Peso",
              "value": "mxn"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "myr"
            },
            {
              "name": "Mozambican Metical",
              "value": "mzn"
            },
            {
              "name": "Namibian Dollar",
              "value": "nad"
            },
            {
              "name": "Nigerian Naira",
              "value": "ngn"
            },
            {
              "name": "Nicaraguan Córdoba",
              "value": "nio"
            },
            {
              "name": "Norwegian Krone",
              "value": "nok"
            },
            {
              "name": "Nepalese Rupee",
              "value": "npr"
            },
            {
              "name": "New Zealand Dollar",
              "value": "nzd"
            },
            {
              "name": "Omani Rial",
              "value": "omr"
            },
            {
              "name": "Panamanian Balboa",
              "value": "pab"
            },
            {
              "name": "Peruvian Nuevo Sol",
              "value": "pen"
            },
            {
              "name": "Papua New Guinean Kina",
              "value": "pgk"
            },
            {
              "name": "Philippine Peso",
              "value": "php"
            },
            {
              "name": "Pakistani Rupee",
              "value": "pkr"
            },
            {
              "name": "Polish Zloty",
              "value": "pln"
            },
            {
              "name": "Paraguayan Guarani",
              "value": "pyg"
            },
            {
              "name": "Qatari Rial",
              "value": "qar"
            },
            {
              "name": "Romanian Leu",
              "value": "ron"
            },
            {
              "name": "Serbian Dinar",
              "value": "rsd"
            },
            {
              "name": "Russian Ruble",
              "value": "rub"
            },
            {
              "name": "Rwandan Franc",
              "value": "rwf"
            },
            {
              "name": "Saudi Riyal",
              "value": "sar"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "sbd"
            },
            {
              "name": "Seychellois Rupee",
              "value": "scr"
            },
            {
              "name": "Sudanese Pound",
              "value": "sdg"
            },
            {
              "name": "Swedish Krona",
              "value": "sek"
            },
            {
              "name": "Singapore Dollar",
              "value": "sgd"
            },
            {
              "name": "Saint Helena Pound",
              "value": "shp"
            },
            {
              "name": "Sierra Leonean Leone",
              "value": "sll"
            },
            {
              "name": "Somali Shilling",
              "value": "sos"
            },
            {
              "name": "Surinamese Dollar",
              "value": "srd"
            },
            {
              "name": "South Sudanese Pound",
              "value": "ssp"
            },
            {
              "name": "São Tomé and Príncipe Dobra (Pre-2018)",
              "value": "std"
            },
            {
              "name": "São Tomé and Príncipe Dobra",
              "value": "stn"
            },
            {
              "name": "Salvadoran Colón",
              "value": "svc"
            },
            {
              "name": "Syrian Pound",
              "value": "syp"
            },
            {
              "name": "Swazi Lilangeni",
              "value": "szl"
            },
            {
              "name": "Thai Baht",
              "value": "thb"
            },
            {
              "name": "Tajikistani Somoni",
              "value": "tjs"
            },
            {
              "name": "Turkmenistani Manat",
              "value": "tmt"
            },
            {
              "name": "Tunisian Dinar",
              "value": "tnd"
            },
            {
              "name": "Tongan Pa'anga",
              "value": "top"
            },
            {
              "name": "Turkish Lira",
              "value": "try"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "ttd"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "twd"
            },
            {
              "name": "Tanzanian Shilling",
              "value": "tzs"
            },
            {
              "name": "Ukrainian Hryvnia",
              "value": "uah"
            },
            {
              "name": "Ugandan Shilling",
              "value": "ugx"
            },
            {
              "name": "Uruguayan Peso",
              "value": "uyu"
            },
            {
              "name": "Uzbekistan Som",
              "value": "uzs"
            },
            {
              "name": "Venezuelan Bolívar Fuerte",
              "value": "vef"
            },
            {
              "name": "Vietnamese Dong",
              "value": "vnd"
            },
            {
              "name": "Vanuatu Vatu",
              "value": "vuv"
            },
            {
              "name": "Samoan Tala",
              "value": "wst"
            },
            {
              "name": "CFA Franc BEAC",
              "value": "xaf"
            },
            {
              "name": "Silver Ounce",
              "value": "xag"
            },
            {
              "name": "Gold Ounce",
              "value": "xau"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "xcd"
            },
            {
              "name": "Special Drawing Rights",
              "value": "xdr"
            },
            {
              "name": "CFA Franc BCEAO",
              "value": "xof"
            },
            {
              "name": "Palladium Ounce",
              "value": "xpd"
            },
            {
              "name": "CFP Franc",
              "value": "xpf"
            },
            {
              "name": "Platinum Ounce",
              "value": "xpt"
            },
            {
              "name": "Yemeni Rial",
              "value": "yer"
            },
            {
              "name": "South African Rand",
              "value": "zar"
            },
            {
              "name": "Zambian Kwacha",
              "value": "zmw"
            },
            {
              "name": "Zimbabwean Dollar",
              "value": "zwl"
            }
          ],
          "description": "The currency of the order (3-digit ISO code, e.g., \"USD\")"
        },
        {
          "displayName": "Connection ID",
          "name": "connectionid",
          "type": "number",
          "default": 0,
          "description": "The ID of the connection from which this order originated"
        },
        {
          "displayName": "Customer ID",
          "name": "customerid",
          "type": "number",
          "default": 0,
          "description": "The ID of the customer associated with this order"
        },
        {
          "displayName": "Creation Date",
          "name": "externalupdatedDate",
          "type": "dateTime",
          "default": "",
          "description": "The date the order was placed"
        },
        {
          "displayName": "Abandoning Date",
          "name": "abandonedDate",
          "type": "dateTime",
          "default": "",
          "description": "The date the cart was abandoned. REQUIRED ONLY IF INCLUDING EXTERNALCHECKOUTID."
        },
        {
          "displayName": "Shipping Amount",
          "name": "shippingAmount",
          "type": "number",
          "default": 0,
          "description": "The total shipping amount for the order in cents"
        },
        {
          "displayName": "Tax Amount",
          "name": "taxAmount",
          "type": "number",
          "default": 0,
          "description": "The total tax amount for the order in cents"
        },
        {
          "displayName": "Discount Amount",
          "name": "discountAmount",
          "type": "number",
          "default": 0,
          "description": "The total discount amount for the order in cents"
        },
        {
          "displayName": "Order URL",
          "name": "orderUrl",
          "type": "string",
          "default": "",
          "description": "The URL for the order in the external service"
        },
        {
          "displayName": "External Updated Date",
          "name": "externalUpdatedDate",
          "type": "dateTime",
          "default": "",
          "description": "The date the order was updated"
        },
        {
          "displayName": "Shipping Method",
          "name": "shippingMethod",
          "type": "string",
          "default": "",
          "description": "The shipping method of the order"
        },
        {
          "displayName": "Order Number",
          "name": "orderNumber",
          "type": "string",
          "default": "",
          "description": "The order number. This can be different than the externalid."
        },
        {
          "displayName": "Products",
          "name": "orderProducts",
          "type": "collection",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add product"
          },
          "default": {},
          "description": "All ordered products",
          "placeholder": "Add product field",
          "options": [
            {
              "displayName": "Name",
              "name": "name",
              "type": "string",
              "default": "",
              "description": "The name of the product"
            },
            {
              "displayName": "Price",
              "name": "price",
              "type": "number",
              "default": 0,
              "description": "The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero."
            },
            {
              "displayName": "Product Quantity",
              "name": "quantity",
              "type": "number",
              "default": 0,
              "description": "The quantity ordered"
            },
            {
              "displayName": "Product External ID",
              "name": "externalid",
              "type": "string",
              "default": "",
              "description": "The ID of the product in the external service"
            },
            {
              "displayName": "Product Category",
              "name": "category",
              "type": "string",
              "default": "",
              "description": "The category of the product"
            },
            {
              "displayName": "SKU",
              "name": "sku",
              "type": "string",
              "default": "",
              "description": "The SKU for the product"
            },
            {
              "displayName": "Description",
              "name": "description",
              "type": "string",
              "default": "",
              "description": "The description of the product"
            },
            {
              "displayName": "Image URL",
              "name": "imageUrl",
              "type": "string",
              "default": "",
              "description": "An Image URL that displays an image of the product"
            },
            {
              "displayName": "Product URL",
              "name": "productUrl",
              "type": "string",
              "default": "",
              "description": "A URL linking to the product in your store"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Order ID",
      "name": "orderId",
      "type": "number",
      "default": 0,
      "description": "The ID of the e-commerce order",
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Order ID",
      "name": "orderId",
      "type": "number",
      "default": 0,
      "description": "The ID of the e-commerce order",
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceOrder"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceOrder"
          ]
        }
      }
    },
    {
      "displayName": "Service ID",
      "name": "connectionid",
      "type": "string",
      "default": "",
      "description": "The ID of the connection object for the service where the customer originates",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Customer ID",
      "name": "externalid",
      "type": "string",
      "default": "",
      "description": "The ID of the customer in the external service",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Customer Email",
      "name": "email",
      "type": "string",
      "default": "",
      "description": "The email address of the customer",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Accepts Marketing",
          "name": "acceptsMarketing",
          "type": "boolean",
          "default": false,
          "description": "Whether customer has opt-ed in to marketing communications"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Customer ID",
      "name": "ecommerceCustomerId",
      "type": "number",
      "default": 0,
      "description": "ID of the E-commerce customer to update",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "description": "The fields to update",
      "options": [
        {
          "displayName": "Service ID",
          "name": "connectionid",
          "type": "string",
          "default": "",
          "description": "The ID of the connection object for the service where the customer originates"
        },
        {
          "displayName": "Customer ID",
          "name": "externalid",
          "type": "string",
          "default": "",
          "description": "The ID of the customer in the external service"
        },
        {
          "displayName": "Customer Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "The email address of the customer"
        },
        {
          "displayName": "Accepts Marketing",
          "name": "acceptsMarketing",
          "type": "boolean",
          "default": false,
          "description": "Whether customer has opt-ed in to marketing communications"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Customer ID",
      "name": "ecommerceCustomerId",
      "type": "number",
      "default": 0,
      "description": "ID of the E-commerce customer to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "delete"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Customer ID",
      "name": "ecommerceCustomerId",
      "type": "number",
      "default": 0,
      "description": "ID of the E-commerce customer to get",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceCustomer"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceCustomer"
          ]
        }
      }
    },
    {
      "displayName": "Order ID",
      "name": "orderId",
      "type": "number",
      "default": 0,
      "description": "The ID of the order whose products you'd like returned",
      "displayOptions": {
        "show": {
          "operation": [
            "getByOrderId"
          ],
          "resource": [
            "ecommerceOrderProducts"
          ]
        }
      }
    },
    {
      "displayName": "Product ID",
      "name": "procuctId",
      "type": "number",
      "default": 0,
      "description": "The ID of the product you'd like returned",
      "displayOptions": {
        "show": {
          "operation": [
            "getByProductId"
          ],
          "resource": [
            "ecommerceOrderProducts"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceOrderProducts"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceOrderProducts"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": true,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "ecommerceOrderProducts"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an account",
      "resource": "account"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an account",
      "resource": "account"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of an account",
      "resource": "account"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many accounts",
      "resource": "account"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an account",
      "resource": "account"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a contact",
      "resource": "contact"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a contact",
      "resource": "contact"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of a contact",
      "resource": "contact"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many contacts",
      "resource": "contact"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a contact",
      "resource": "contact"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an association",
      "resource": "accountContact"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an association",
      "resource": "accountContact"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an association",
      "resource": "accountContact"
    },
    {
      "operation": "add",
      "name": "Add",
      "description": "Add contact to a list",
      "resource": "contactList"
    },
    {
      "operation": "remove",
      "name": "Remove",
      "description": "Remove contact from a list",
      "resource": "contactList"
    },
    {
      "operation": "add",
      "name": "Add",
      "description": "Add a tag to a contact",
      "resource": "contactTag"
    },
    {
      "operation": "remove",
      "name": "Remove",
      "description": "Remove a tag from a contact",
      "resource": "contactTag"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many lists",
      "resource": "list"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a tag",
      "resource": "tag"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a tag",
      "resource": "tag"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of a tag",
      "resource": "tag"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many tags",
      "resource": "tag"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a tag",
      "resource": "tag"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a deal",
      "resource": "deal"
    },
    {
      "operation": "createNote",
      "name": "Create Note",
      "description": "Create a deal note",
      "resource": "deal"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a deal",
      "resource": "deal"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of a deal",
      "resource": "deal"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many deals",
      "resource": "deal"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a deal",
      "resource": "deal"
    },
    {
      "operation": "updateNote",
      "name": "Update Deal Note",
      "description": "Update a deal note",
      "resource": "deal"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a connection",
      "resource": "connection"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a connection",
      "resource": "connection"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of a connection",
      "resource": "connection"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many connections",
      "resource": "connection"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a connection",
      "resource": "connection"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a order",
      "resource": "ecommerceOrder"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a order",
      "resource": "ecommerceOrder"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of a order",
      "resource": "ecommerceOrder"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many orders",
      "resource": "ecommerceOrder"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a order",
      "resource": "ecommerceOrder"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a E-commerce Customer",
      "resource": "ecommerceCustomer"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a E-commerce Customer",
      "resource": "ecommerceCustomer"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get data of a E-commerce Customer",
      "resource": "ecommerceCustomer"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many E-commerce Customers",
      "resource": "ecommerceCustomer"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a E-commerce Customer",
      "resource": "ecommerceCustomer"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get data of many order products",
      "resource": "ecommerceOrderProducts"
    },
    {
      "operation": "getByProductId",
      "name": "Get by Product ID",
      "description": "Get data of a ordered product",
      "resource": "ecommerceOrderProducts"
    },
    {
      "operation": "getByOrderId",
      "name": "Get by Order ID",
      "description": "Get data of an order's products",
      "resource": "ecommerceOrderProducts"
    }
  ]


node_type: nodes-base.activeCampaignTrigger
package_name: n8n-nodes-base
display_name: ActiveCampaign Trigger
description: Handle ActiveCampaign events via webhooks
category: trigger
development_style: programmatic
version: 1
operations: []
credentials_required:
  [
  {
  "name": "activeCampaignApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: ActiveCampaign Trigger node documentation
  description: Learn how to use the ActiveCampaign Trigger node in n8n. Follow technical documentation to integrate ActiveCampaign Trigger node into your workflows.
  contentType: [integration, reference]
  priority: medium
  ---

  # ActiveCampaign Trigger node

  [ActiveCampaign](https://www.activecampaign.com/){:target=_blank .external-link} is a cloud software platform for small-to-mid-sized business. The company offers software for customer experience automation, which combines the email marketing, marketing automation, sales automation, and CRM categories.

  /// note | Credentials
  You can find authentication information for this node [here](/integrations/builtin/credentials/activecampaign.md).
  ///

  ///  note  | Examples and templates
  For usage examples and templates to help you get started, refer to n8n's [ActiveCampaign Trigger integrations](https://n8n.io/integrations/activecampaign-trigger/){:target=_blank .external-link} page.
  ///

properties_schema:
  [
    {
      "displayName": "Event Names or IDs",
      "name": "events",
      "type": "multiOptions",
      "default": [],
      "description": "Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "options": [],
      "typeOptions": {
        "loadOptionsMethod": "getEvents"
      }
    },
    {
      "displayName": "Source",
      "name": "sources",
      "type": "multiOptions",
      "default": [],
      "options": [
        {
          "name": "Public",
          "value": "public",
          "description": "Run the hooks when a contact triggers the action"
        },
        {
          "name": "Admin",
          "value": "admin",
          "description": "Run the hooks when an admin user triggers the action"
        },
        {
          "name": "Api",
          "value": "api",
          "description": "Run the hooks when an API call triggers the action"
        },
        {
          "name": "System",
          "value": "system",
          "description": "Run the hooks when automated systems triggers the action"
        }
      ]
    }
  ]


node_type: nodes-base.acuitySchedulingTrigger
package_name: n8n-nodes-base
display_name: Acuity Scheduling Trigger
description: Handle Acuity Scheduling events via webhooks
category: trigger
development_style: programmatic
version: 1
operations: []
outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Acuity Scheduling Trigger node documentation
  description: Learn how to use the Acuity Scheduling Trigger node in n8n. Follow technical documentation to integrate Acuity Scheduling Trigger node into your workflows.
  contentType: [integration, reference]
  ---

  # Acuity Scheduling Trigger node

  [Acuity Scheduling](https://acuityscheduling.com/){:target=_blank .external-link} is a cloud-based appointment scheduling software solution that enables business owners to manage their appointments online. It has the capability to automatically sync calendars according to users' time zones and can send regular alerts and reminders to users regarding their appointment schedules.

  /// note | Credentials
  You can find authentication information for this node [here](/integrations/builtin/credentials/acuityscheduling.md).
  ///

  ///  note  | Examples and templates
  For usage examples and templates to help you get started, refer to n8n's [Acuity Scheduling Trigger integrations](https://n8n.io/integrations/acuity-scheduling-trigger/){:target=_blank .external-link} page.
  ///

properties_schema:
  [
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "apiKey",
      "options": [
        {
          "name": "API Key",
          "value": "apiKey"
        },
        {
          "name": "OAuth2",
          "value": "oAuth2"
        }
      ]
    },
    {
      "displayName": "Event",
      "name": "event",
      "type": "options",
      "default": "",
      "options": [
        {
          "name": "appointment.canceled",
          "value": "appointment.canceled",
          "description": "Is called whenever an appointment is canceled"
        },
        {
          "name": "appointment.changed",
          "value": "appointment.changed",
          "description": "Is called when the appointment is changed in any way"
        },
        {
          "name": "appointment.rescheduled",
          "value": "appointment.rescheduled",
          "description": "Is called when the appointment is rescheduled to a new time"
        },
        {
          "name": "appointment.scheduled",
          "value": "appointment.scheduled",
          "description": "Is called once when an appointment is initially booked"
        },
        {
          "name": "order.completed",
          "value": "order.completed",
          "description": "Is called when an order is completed"
        }
      ],
      "required": true
    },
    {
      "displayName": "Resolve Data",
      "name": "resolveData",
      "type": "boolean",
      "default": true,
      "description": "By default does the webhook-data only contain the ID of the object. If this option gets activated, it will resolve the data automatically."
    }
  ]

credentials_required:
  [
    {
      "name": "acuitySchedulingApi",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "apiKey"
          ]
        }
      }
    },
    {
      "name": "acuitySchedulingOAuth2Api",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "oAuth2"
          ]
        }
      }
    }
  ]


node_type: nodes-base.adaloTool
package_name: n8n-nodes-base
display_name: Adalo Tool
description: Consume Adalo API (AI Tool variant for use with AI Agents)
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "adaloApi",
  "required": true
  }
  ]

outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-07-16 12:10:21
tool_variant_of: nodes-base.adalo
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Adalo node documentation
  description: Learn how to use the Adalo node in n8n. Follow technical documentation to integrate Adalo node into your workflows.
  contentType: [integration, reference]
  priority: medium
  ---

  # Adalo node

  Use the Adalo node to automate work in Adalo, and integrate Adalo with other applications. n8n has built-in support for a wide range of Adalo features, including like creating, getting, updating and deleting databases, records, and collections.

  On this page, you'll find a list of operations the Adalo node supports and links to more resources.

  /// note | Credentials
  Refer to [Adalo credentials](/integrations/builtin/credentials/adalo.md) for guidance on setting up authentication. 
  ///	

  ## Operations

  * Collection
  	* Create
  	* Delete
  	* Get
  	* Get Many
  	* Update

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'adalo') ]]

  ## Related resources

  Refer to [Adalo's documentation](https://help.adalo.com/){:target=_blank .external-link} for more information on using Adalo. Their [External Collections with APIs](https://help.adalo.com/integrations/external-collections-with-apis){:target=_blank .external-link} page gives more detail about what you can do with Adalo collections.

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Adalo"
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "collection",
      "options": [
        {
          "name": "Collection",
          "value": "collection"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a row",
          "routing": {
            "send": {
              "preSend": [
                null
              ]
            },
            "request": {
              "method": "POST",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}"
            }
          },
          "action": "Create a row"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a row",
          "routing": {
            "request": {
              "method": "DELETE",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"
            },
            "output": {
              "postReceive": [
                {
                  "type": "set",
                  "properties": {
                    "value": "={{ { \"success\": true } }}"
                  }
                }
              ]
            }
          },
          "action": "Delete a row"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a row",
          "routing": {
            "request": {
              "method": "GET",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"
            }
          },
          "action": "Retrieve a row"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many rows",
          "routing": {
            "request": {
              "method": "GET",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}",
              "qs": {
                "limit": "={{$parameter[\"limit\"]}}"
              }
            },
            "send": {
              "paginate": "={{$parameter[\"returnAll\"]}}"
            },
            "output": {
              "postReceive": [
                {
                  "type": "rootProperty",
                  "properties": {
                    "property": "records"
                  }
                }
              ]
            }
          },
          "action": "Retrieve all rows"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a row",
          "routing": {
            "send": {
              "preSend": [
                null
              ]
            },
            "request": {
              "method": "PUT",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"
            }
          },
          "action": "Update a row"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Collection ID",
      "name": "collectionId",
      "type": "string",
      "default": "",
      "description": "Open your Adalo application and click on the three buttons beside the collection name, then select API Documentation",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Row ID",
      "name": "rowId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get",
            "delete",
            "update"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Data to Send",
      "name": "dataToSend",
      "type": "options",
      "default": "defineBelow",
      "description": "Whether to insert the input data this node receives in the new row",
      "options": [
        {
          "name": "Auto-Map Input Data to Columns",
          "value": "autoMapInputData",
          "description": "Use when node input properties match destination column names"
        },
        {
          "name": "Define Below for Each Column",
          "value": "defineBelow",
          "description": "Set the value for each destination column"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create",
            "update"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Inputs to Ignore",
      "name": "inputsToIgnore",
      "type": "string",
      "default": "",
      "description": "List of input properties to avoid sending, separated by commas. Leave empty to send all properties.",
      "displayOptions": {
        "show": {
          "operation": [
            "create",
            "update"
          ],
          "dataToSend": [
            "autoMapInputData"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Fields to Send",
      "name": "fieldsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Field must be defined in the collection, otherwise it will be ignored. If field defined in the collection is not set here, it will be set to null.",
      "options": [
        {
          "displayName": "Field",
          "name": "fieldValues",
          "values": [
            {
              "displayName": "Field ID",
              "name": "fieldId",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Field Value",
              "name": "fieldValue",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create",
            "update"
          ],
          "dataToSend": [
            "defineBelow"
          ],
          "resource": [
            "collection"
          ]
        }
      },
      "typeOptions": {
        "multipleValueButtonText": "Add Field to Send",
        "multipleValues": true
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "collection"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a row"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a row"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a row"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many rows"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a row"
    }
  ]


node_type: nodes-base.adalo
package_name: n8n-nodes-base
display_name: Adalo
description: Consume Adalo API
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "adaloApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Adalo node documentation
  description: Learn how to use the Adalo node in n8n. Follow technical documentation to integrate Adalo node into your workflows.
  contentType: [integration, reference]
  priority: medium
  ---

  # Adalo node

  Use the Adalo node to automate work in Adalo, and integrate Adalo with other applications. n8n has built-in support for a wide range of Adalo features, including like creating, getting, updating and deleting databases, records, and collections.

  On this page, you'll find a list of operations the Adalo node supports and links to more resources.

  /// note | Credentials
  Refer to [Adalo credentials](/integrations/builtin/credentials/adalo.md) for guidance on setting up authentication. 
  ///	

  ## Operations

  * Collection
  	* Create
  	* Delete
  	* Get
  	* Get Many
  	* Update

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'adalo') ]]

  ## Related resources

  Refer to [Adalo's documentation](https://help.adalo.com/){:target=_blank .external-link} for more information on using Adalo. Their [External Collections with APIs](https://help.adalo.com/integrations/external-collections-with-apis){:target=_blank .external-link} page gives more detail about what you can do with Adalo collections.

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "collection",
      "options": [
        {
          "name": "Collection",
          "value": "collection"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a row",
          "routing": {
            "send": {
              "preSend": [
                null
              ]
            },
            "request": {
              "method": "POST",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}"
            }
          },
          "action": "Create a row"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a row",
          "routing": {
            "request": {
              "method": "DELETE",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"
            },
            "output": {
              "postReceive": [
                {
                  "type": "set",
                  "properties": {
                    "value": "={{ { \"success\": true } }}"
                  }
                }
              ]
            }
          },
          "action": "Delete a row"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a row",
          "routing": {
            "request": {
              "method": "GET",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"
            }
          },
          "action": "Retrieve a row"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many rows",
          "routing": {
            "request": {
              "method": "GET",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}",
              "qs": {
                "limit": "={{$parameter[\"limit\"]}}"
              }
            },
            "send": {
              "paginate": "={{$parameter[\"returnAll\"]}}"
            },
            "output": {
              "postReceive": [
                {
                  "type": "rootProperty",
                  "properties": {
                    "property": "records"
                  }
                }
              ]
            }
          },
          "action": "Retrieve all rows"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a row",
          "routing": {
            "send": {
              "preSend": [
                null
              ]
            },
            "request": {
              "method": "PUT",
              "url": "=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"
            }
          },
          "action": "Update a row"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Collection ID",
      "name": "collectionId",
      "type": "string",
      "default": "",
      "description": "Open your Adalo application and click on the three buttons beside the collection name, then select API Documentation",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Row ID",
      "name": "rowId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get",
            "delete",
            "update"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Data to Send",
      "name": "dataToSend",
      "type": "options",
      "default": "defineBelow",
      "description": "Whether to insert the input data this node receives in the new row",
      "options": [
        {
          "name": "Auto-Map Input Data to Columns",
          "value": "autoMapInputData",
          "description": "Use when node input properties match destination column names"
        },
        {
          "name": "Define Below for Each Column",
          "value": "defineBelow",
          "description": "Set the value for each destination column"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create",
            "update"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Inputs to Ignore",
      "name": "inputsToIgnore",
      "type": "string",
      "default": "",
      "description": "List of input properties to avoid sending, separated by commas. Leave empty to send all properties.",
      "displayOptions": {
        "show": {
          "operation": [
            "create",
            "update"
          ],
          "dataToSend": [
            "autoMapInputData"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Fields to Send",
      "name": "fieldsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Field must be defined in the collection, otherwise it will be ignored. If field defined in the collection is not set here, it will be set to null.",
      "options": [
        {
          "displayName": "Field",
          "name": "fieldValues",
          "values": [
            {
              "displayName": "Field ID",
              "name": "fieldId",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Field Value",
              "name": "fieldValue",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create",
            "update"
          ],
          "dataToSend": [
            "defineBelow"
          ],
          "resource": [
            "collection"
          ]
        }
      },
      "typeOptions": {
        "multipleValueButtonText": "Add Field to Send",
        "multipleValues": true
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "collection"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "collection"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a row"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a row"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a row"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many rows"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a row"
    }
  ]


node_type: nodes-base.affinityTool
package_name: n8n-nodes-base
display_name: Affinity Tool
description: Consume Affinity API (AI Tool variant for use with AI Agents)
category: output
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "affinityApi",
  "required": true
  }
  ]

outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-07-16 12:10:21
tool_variant_of: nodes-base.affinity
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Affinity node documentation
  description: Learn how to use the Affinity node in n8n. Follow technical documentation to integrate Affinity node into your workflows.
  contentType: [integration, reference]
  ---

  # Affinity node

  Use the Affinity node to automate work in Affinity, and integrate Affinity with other applications. n8n has built-in support for a wide range of Affinity features, including creating, getting, updating and deleting lists, entries, organization, and persons.

  On this page, you'll find a list of operations the Affinity node supports and links to more resources.

  /// note | Credentials
  Refer to [Affinity credentials](/integrations/builtin/credentials/affinity.md) for guidance on setting up authentication.
  ///	

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * List
      * Get a list
      * Get all lists
  * List Entry
      * Create a list entry
      * Delete a list entry
      * Get a list entry
      * Get all list entries
  * Organization
      * Create an organization
      * Delete an organization
      * Get an organization
      * Get all organizations
      * Update an organization
  * Person
      * Create a person
      * Delete a person
      * Get a person
      * Get all persons
      * Update a person

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'affinity') ]]

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Affinity"
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "organization",
      "options": [
        {
          "name": "List",
          "value": "list"
        },
        {
          "name": "List Entry",
          "value": "listEntry"
        },
        {
          "name": "Organization",
          "value": "organization"
        },
        {
          "name": "Person",
          "value": "person"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Get",
          "value": "get",
          "description": "Get a list",
          "action": "Get a list"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many lists",
          "action": "Get many lists"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "List ID",
      "name": "listId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the list object to be retrieved",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a list entry",
          "action": "Create a list entry"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a list entry",
          "action": "Delete a list entry"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a list entry",
          "action": "Get a list entry"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many list entries",
          "action": "Get many list entries"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list whose list entries are to be retrieved. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "Entity ID",
      "name": "entityId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the entity (person, organization, or opportunity) to add to this list",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Creator ID",
          "name": "creator_id",
          "type": "string",
          "default": "",
          "description": "The ID of a Person resource who should be recorded as adding the entry to the list. Must be a person who can access Affinity. If not provided the creator defaults to the owner of the API key."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list that contains the specified list_entry_id. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "List Entry ID",
      "name": "listEntryId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the list entry object to be retrieved",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list whose list entries are to be retrieved. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "getAll"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list that contains the specified list_entry_id. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "delete"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "List Entry ID",
      "name": "listEntryId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the list entry object to be deleted",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an organization",
          "action": "Create an organization"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an organization",
          "action": "Delete an organization"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get an organization",
          "action": "Get an organization"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many organizations",
          "action": "Get many organizations"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an organization",
          "action": "Update an organization"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "The name of the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Domain",
      "name": "domain",
      "type": "string",
      "default": "",
      "description": "The domain name of the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Person Names or IDs",
          "name": "persons",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getPersons"
          },
          "default": [],
          "description": "Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "organizationId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Domain",
          "name": "domain",
          "type": "string",
          "default": "",
          "description": "The domain name of the organization"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "The name of the organization"
        },
        {
          "displayName": "Person Names or IDs",
          "name": "persons",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getPersons"
          },
          "default": [],
          "description": "Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "organizationId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Term",
          "name": "term",
          "type": "string",
          "default": "",
          "description": "A string used to search all the organizations in your team’s address book. This could be an email address, a first name or a last name."
        },
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "organizationId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a person",
          "action": "Create a person"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a person",
          "action": "Delete a person"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a person",
          "action": "Get a person"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many persons",
          "action": "Get many people"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a person",
          "action": "Update a person"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "First Name",
      "name": "firstName",
      "type": "string",
      "default": "",
      "description": "The first name of the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastName",
      "type": "string",
      "default": "",
      "description": "The last name of the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Organization Names or IDs",
          "name": "organizations",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "default": [],
          "description": "Organizations that the person is associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Emails",
      "name": "emails",
      "type": "string",
      "default": [],
      "description": "The email addresses of the person",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add To Email"
      }
    },
    {
      "displayName": "Person ID",
      "name": "personId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "The first name of the person"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "The last name of the person"
        },
        {
          "displayName": "Organization Names or IDs",
          "name": "organizations",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "default": [],
          "description": "Organizations that the person is associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Emails",
      "name": "emails",
      "type": "string",
      "default": [],
      "description": "The email addresses of the person",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add To Email"
      }
    },
    {
      "displayName": "Person ID",
      "name": "personId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Term",
          "name": "term",
          "type": "string",
          "default": "",
          "description": "A string used to search all the persons in your team’s address book. This could be an email address, a first name or a last name."
        },
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Person ID",
      "name": "personId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a list",
      "resource": "list"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many lists",
      "resource": "list"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a list entry",
      "resource": "listEntry"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a list entry",
      "resource": "listEntry"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a list entry",
      "resource": "listEntry"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many list entries",
      "resource": "listEntry"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an organization",
      "resource": "organization"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an organization",
      "resource": "organization"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get an organization",
      "resource": "organization"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many organizations",
      "resource": "organization"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an organization",
      "resource": "organization"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a person",
      "resource": "person"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a person",
      "resource": "person"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a person",
      "resource": "person"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many persons",
      "resource": "person"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a person",
      "resource": "person"
    }
  ]


node_type: nodes-base.affinity
package_name: n8n-nodes-base
display_name: Affinity
description: Consume Affinity API
category: output
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "affinityApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Affinity node documentation
  description: Learn how to use the Affinity node in n8n. Follow technical documentation to integrate Affinity node into your workflows.
  contentType: [integration, reference]
  ---

  # Affinity node

  Use the Affinity node to automate work in Affinity, and integrate Affinity with other applications. n8n has built-in support for a wide range of Affinity features, including creating, getting, updating and deleting lists, entries, organization, and persons.

  On this page, you'll find a list of operations the Affinity node supports and links to more resources.

  /// note | Credentials
  Refer to [Affinity credentials](/integrations/builtin/credentials/affinity.md) for guidance on setting up authentication.
  ///	

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * List
      * Get a list
      * Get all lists
  * List Entry
      * Create a list entry
      * Delete a list entry
      * Get a list entry
      * Get all list entries
  * Organization
      * Create an organization
      * Delete an organization
      * Get an organization
      * Get all organizations
      * Update an organization
  * Person
      * Create a person
      * Delete a person
      * Get a person
      * Get all persons
      * Update a person

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'affinity') ]]

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "organization",
      "options": [
        {
          "name": "List",
          "value": "list"
        },
        {
          "name": "List Entry",
          "value": "listEntry"
        },
        {
          "name": "Organization",
          "value": "organization"
        },
        {
          "name": "Person",
          "value": "person"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Get",
          "value": "get",
          "description": "Get a list",
          "action": "Get a list"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many lists",
          "action": "Get many lists"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "List ID",
      "name": "listId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the list object to be retrieved",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "list"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a list entry",
          "action": "Create a list entry"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a list entry",
          "action": "Delete a list entry"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a list entry",
          "action": "Get a list entry"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many list entries",
          "action": "Get many list entries"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list whose list entries are to be retrieved. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "Entity ID",
      "name": "entityId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the entity (person, organization, or opportunity) to add to this list",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Creator ID",
          "name": "creator_id",
          "type": "string",
          "default": "",
          "description": "The ID of a Person resource who should be recorded as adding the entry to the list. Must be a person who can access Affinity. If not provided the creator defaults to the owner of the API key."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list that contains the specified list_entry_id. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "List Entry ID",
      "name": "listEntryId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the list entry object to be retrieved",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list whose list entries are to be retrieved. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "getAll"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "List Name or ID",
      "name": "listId",
      "type": "options",
      "default": "",
      "description": "The unique ID of the list that contains the specified list_entry_id. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "delete"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getLists"
      }
    },
    {
      "displayName": "List Entry ID",
      "name": "listEntryId",
      "type": "string",
      "default": "",
      "description": "The unique ID of the list entry object to be deleted",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "listEntry"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an organization",
          "action": "Create an organization"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an organization",
          "action": "Delete an organization"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get an organization",
          "action": "Get an organization"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many organizations",
          "action": "Get many organizations"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an organization",
          "action": "Update an organization"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "The name of the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Domain",
      "name": "domain",
      "type": "string",
      "default": "",
      "description": "The domain name of the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Person Names or IDs",
          "name": "persons",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getPersons"
          },
          "default": [],
          "description": "Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "organizationId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Domain",
          "name": "domain",
          "type": "string",
          "default": "",
          "description": "The domain name of the organization"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "The name of the organization"
        },
        {
          "displayName": "Person Names or IDs",
          "name": "persons",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getPersons"
          },
          "default": [],
          "description": "Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "organizationId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Term",
          "name": "term",
          "type": "string",
          "default": "",
          "description": "A string used to search all the organizations in your team’s address book. This could be an email address, a first name or a last name."
        },
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "organizationId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the organization",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a person",
          "action": "Create a person"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a person",
          "action": "Delete a person"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a person",
          "action": "Get a person"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many persons",
          "action": "Get many people"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a person",
          "action": "Update a person"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "First Name",
      "name": "firstName",
      "type": "string",
      "default": "",
      "description": "The first name of the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastName",
      "type": "string",
      "default": "",
      "description": "The last name of the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Organization Names or IDs",
          "name": "organizations",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "default": [],
          "description": "Organizations that the person is associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Emails",
      "name": "emails",
      "type": "string",
      "default": [],
      "description": "The email addresses of the person",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add To Email"
      }
    },
    {
      "displayName": "Person ID",
      "name": "personId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "The first name of the person"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "The last name of the person"
        },
        {
          "displayName": "Organization Names or IDs",
          "name": "organizations",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "default": [],
          "description": "Organizations that the person is associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Emails",
      "name": "emails",
      "type": "string",
      "default": [],
      "description": "The email addresses of the person",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add To Email"
      }
    },
    {
      "displayName": "Person ID",
      "name": "personId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 10
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Term",
          "name": "term",
          "type": "string",
          "default": "",
          "description": "A string used to search all the persons in your team’s address book. This could be an email address, a first name or a last name."
        },
        {
          "displayName": "With Interaction Dates",
          "name": "withInteractionDates",
          "type": "boolean",
          "default": false,
          "description": "Whether interaction dates will be present on the returned resources"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Person ID",
      "name": "personId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the person",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "person"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a list",
      "resource": "list"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many lists",
      "resource": "list"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a list entry",
      "resource": "listEntry"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a list entry",
      "resource": "listEntry"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a list entry",
      "resource": "listEntry"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many list entries",
      "resource": "listEntry"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an organization",
      "resource": "organization"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an organization",
      "resource": "organization"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get an organization",
      "resource": "organization"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many organizations",
      "resource": "organization"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an organization",
      "resource": "organization"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a person",
      "resource": "person"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a person",
      "resource": "person"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a person",
      "resource": "person"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many persons",
      "resource": "person"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a person",
      "resource": "person"
    }
  ]


node_type: nodes-base.affinityTrigger
package_name: n8n-nodes-base
display_name: Affinity Trigger
description: Handle Affinity events via webhooks
category: trigger
development_style: programmatic
version: 1
operations: []
credentials_required:
  [
  {
  "name": "affinityApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Affinity Trigger node documentation
  description: Learn how to use the Affinity Trigger node in n8n. Follow technical documentation to integrate Affinity Trigger node into your workflows.
  contentType: [integration, reference]
  ---

  # Affinity Trigger node

  [Affinity](https://www.affinity.co/){:target=_blank .external-link} is a powerful relationship intelligence platform enabling teams to leverage their network to close the next big deal.

  /// note | Credentials
  You can find authentication information for this node [here](/integrations/builtin/credentials/affinity.md).
  ///

  ///  note  | Examples and templates
  For usage examples and templates to help you get started, refer to n8n's [Affinity Trigger integrations](https://n8n.io/integrations/affinity-trigger/){:target=_blank .external-link} page.
  ///

properties_schema:
  [
    {
      "displayName": "Events",
      "name": "events",
      "type": "multiOptions",
      "default": [],
      "description": "Webhook events that will be enabled for that endpoint",
      "options": [
        {
          "name": "field_value.created",
          "value": "field_value.created"
        },
        {
          "name": "field_value.deleted",
          "value": "field_value.deleted"
        },
        {
          "name": "field_value.updated",
          "value": "field_value.updated"
        },
        {
          "name": "field.created",
          "value": "field.created"
        },
        {
          "name": "field.deleted",
          "value": "field.deleted"
        },
        {
          "name": "field.updated",
          "value": "field.updated"
        },
        {
          "name": "file.created",
          "value": "file.created"
        },
        {
          "name": "file.deleted",
          "value": "file.deleted"
        },
        {
          "name": "list_entry.created",
          "value": "list_entry.created"
        },
        {
          "name": "list_entry.deleted",
          "value": "list_entry.deleted"
        },
        {
          "name": "list.created",
          "value": "list.created"
        },
        {
          "name": "list.deleted",
          "value": "list.deleted"
        },
        {
          "name": "list.updated",
          "value": "list.updated"
        },
        {
          "name": "note.created",
          "value": "note.created"
        },
        {
          "name": "note.deleted",
          "value": "note.deleted"
        },
        {
          "name": "note.updated",
          "value": "note.updated"
        },
        {
          "name": "opportunity.created",
          "value": "opportunity.created"
        },
        {
          "name": "opportunity.deleted",
          "value": "opportunity.deleted"
        },
        {
          "name": "opportunity.updated",
          "value": "opportunity.updated"
        },
        {
          "name": "organization.created",
          "value": "organization.created"
        },
        {
          "name": "organization.deleted",
          "value": "organization.deleted"
        },
        {
          "name": "organization.updated",
          "value": "organization.updated"
        },
        {
          "name": "person.created",
          "value": "person.created"
        },
        {
          "name": "person.deleted",
          "value": "person.deleted"
        },
        {
          "name": "person.updated",
          "value": "person.updated"
        }
      ],
      "required": true
    }
  ]


node_type: nodes-base.agileCrmTool
package_name: n8n-nodes-base
display_name: Agile CRM Tool
description: Consume Agile CRM API (AI Tool variant for use with AI Agents)
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "agileCrmApi",
  "required": true
  }
  ]

outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-07-16 12:10:21
tool_variant_of: nodes-base.agileCrm
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Agile CRM node documentation
  description: Learn how to use the Agile CRM node in n8n. Follow technical documentation to integrate Agile CRM node into your workflows.
  contentType: [integration, reference]
  ---

  # Agile CRM node

  Use the Agile CRM node to automate work in Agile CRM, and integrate Agile CRM with other applications. n8n has built-in support for a wide range of Agile CRM features, including creating, getting, updating and deleting companies, contracts, and deals.

  On this page, you'll find a list of operations the Agile CRM node supports and links to more resources.

  /// note | Credentials
  Refer to [Agile CRM credentials](/integrations/builtin/credentials/agilecrm.md) for guidance on setting up authentication. 
  ///

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * Company
      * Create a new company
      * Delete a company
      * Get a company
      * Get all companies
      * Update company properties
  * Contact
      * Create a new contact
      * Delete a contact
      * Get a contact
      * Get all contacts
      * Update contact properties
  * Deal
      * Create a new deal
      * Delete a deal
      * Get a deal
      * Get all deals
      * Update deal properties

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'agile-crm') ]]

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Agile CRM"
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "contact",
      "options": [
        {
          "name": "Company",
          "value": "company"
        },
        {
          "name": "Contact",
          "value": "contact"
        },
        {
          "name": "Deal",
          "value": "deal"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new contact",
          "action": "Create a contact"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a contact",
          "action": "Delete a contact"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a contact",
          "action": "Get a contact"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many contacts",
          "action": "Get many contacts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update contact properties",
          "action": "Update a contact"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular contact",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 20,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filter",
      "name": "filterType",
      "type": "options",
      "default": "none",
      "options": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Build Manually",
          "value": "manual"
        },
        {
          "name": "JSON",
          "value": "json"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Must Match",
      "name": "matchType",
      "type": "options",
      "default": "anyFilter",
      "options": [
        {
          "name": "Any Filter",
          "value": "anyFilter"
        },
        {
          "name": "All Filters",
          "value": "allFilters"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": false,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Conditions",
          "name": "conditions",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "description": "Any searchable field"
            },
            {
              "displayName": "Condition Type",
              "name": "condition_type",
              "type": "options",
              "options": [
                {
                  "name": "After",
                  "value": "AFTER"
                },
                {
                  "name": "Before",
                  "value": "BEFORE"
                },
                {
                  "name": "Between",
                  "value": "BETWEEN"
                },
                {
                  "name": "Equals",
                  "value": "EQUALS"
                },
                {
                  "name": "Last",
                  "value": "LAST"
                },
                {
                  "name": "Not Equal",
                  "value": "NOTEQUALS"
                },
                {
                  "name": "On",
                  "value": "ON"
                }
              ],
              "default": "EQUALS"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Value 2",
              "name": "value2",
              "type": "string",
              "displayOptions": {
                "show": {
                  "condition_type": [
                    "BETWEEN"
                  ]
                }
              },
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters",
      "name": "jsonNotice",
      "type": "notice",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Filters (JSON)",
      "name": "filterJson",
      "type": "string",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "fixedCollection",
          "placeholder": "Add Sort",
          "default": [],
          "options": [
            {
              "displayName": "Sort",
              "name": "sort",
              "values": [
                {
                  "displayName": "Direction",
                  "name": "direction",
                  "type": "options",
                  "options": [
                    {
                      "name": "Ascending",
                      "value": "ASC"
                    },
                    {
                      "name": "Descending",
                      "value": "DESC"
                    }
                  ],
                  "default": "ASC",
                  "description": "The sorting direction"
                },
                {
                  "displayName": "Field",
                  "name": "field",
                  "type": "string",
                  "default": "",
                  "description": "The sorting field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Postal",
                      "value": "postal"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Company",
          "name": "company",
          "type": "string",
          "default": "",
          "description": "Company Name"
        },
        {
          "displayName": "Email",
          "name": "emailOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contact email",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Email Properties",
              "name": "emailProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of Email",
                  "options": [
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Personal",
                      "value": "personal"
                    }
                  ]
                },
                {
                  "displayName": "Email",
                  "name": "email",
                  "type": "string",
                  "placeholder": "name@email.com",
                  "required": true,
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "Contact first name"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Contact last name"
        },
        {
          "displayName": "Lead Score",
          "name": "leadScore",
          "type": "number",
          "default": "",
          "description": "Lead score of contact",
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of contact (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Phone",
          "name": "phoneOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts phone",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Phone Properties",
              "name": "phoneProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of phone number",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Home Fax",
                      "value": "homeFax"
                    },
                    {
                      "name": "Main",
                      "value": "main"
                    },
                    {
                      "name": "Mobile",
                      "value": "mobile"
                    },
                    {
                      "name": "Other",
                      "value": "other"
                    },
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Work Fax",
                      "value": "workFax"
                    }
                  ]
                },
                {
                  "displayName": "Number",
                  "name": "number",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Phone number"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Professional title"
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts websites",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "ID of contact to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular contact",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    },
                    {
                      "name": "Postal",
                      "value": "postal"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Company",
          "name": "company",
          "type": "string",
          "default": "",
          "description": "Company Name"
        },
        {
          "displayName": "Email",
          "name": "emailOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contact email",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Email Properties",
              "name": "emailProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of Email",
                  "options": [
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Personal",
                      "value": "personal"
                    }
                  ]
                },
                {
                  "displayName": "Email",
                  "name": "email",
                  "type": "string",
                  "placeholder": "name@email.com",
                  "required": true,
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "Contact first name"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Contact last name"
        },
        {
          "displayName": "Lead Score",
          "name": "leadScore",
          "type": "number",
          "default": "",
          "description": "Lead score of contact",
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of contact (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Phone",
          "name": "phoneOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts phone",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Phone Properties",
              "name": "phoneProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of phone number",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Home Fax",
                      "value": "homeFax"
                    },
                    {
                      "name": "Main",
                      "value": "main"
                    },
                    {
                      "name": "Mobile",
                      "value": "mobile"
                    },
                    {
                      "name": "Other",
                      "value": "other"
                    },
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Work Fax",
                      "value": "workFax"
                    }
                  ]
                },
                {
                  "displayName": "Number",
                  "name": "number",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Phone number"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Professional title"
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts websites",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new company",
          "action": "Create a company"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a company",
          "action": "Delete a company"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a company",
          "action": "Get a company"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many companies",
          "action": "Get many companies"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update company properties",
          "action": "Update a company"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Company ID",
      "name": "companyId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular company",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 20,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filter",
      "name": "filterType",
      "type": "options",
      "default": "none",
      "options": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Build Manually",
          "value": "manual"
        },
        {
          "name": "JSON",
          "value": "json"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Must Match",
      "name": "matchType",
      "type": "options",
      "default": "anyFilter",
      "options": [
        {
          "name": "Any Filter",
          "value": "anyFilter"
        },
        {
          "name": "All Filters",
          "value": "allFilters"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": false,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Conditions",
          "name": "conditions",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "description": "Any searchable field"
            },
            {
              "displayName": "Condition Type",
              "name": "condition_type",
              "type": "options",
              "options": [
                {
                  "name": "After",
                  "value": "AFTER"
                },
                {
                  "name": "Before",
                  "value": "BEFORE"
                },
                {
                  "name": "Between",
                  "value": "BETWEEN"
                },
                {
                  "name": "Equals",
                  "value": "EQUALS"
                },
                {
                  "name": "Last",
                  "value": "LAST"
                },
                {
                  "name": "Not Equal",
                  "value": "NOTEQUALS"
                },
                {
                  "name": "On",
                  "value": "ON"
                }
              ],
              "default": "EQUALS"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Value 2",
              "name": "value2",
              "type": "string",
              "displayOptions": {
                "show": {
                  "condition_type": [
                    "BETWEEN"
                  ]
                }
              },
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters",
      "name": "jsonNotice",
      "type": "notice",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Filters (JSON)",
      "name": "filterJson",
      "type": "string",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "fixedCollection",
          "placeholder": "Add Sort",
          "default": [],
          "options": [
            {
              "displayName": "Sort",
              "name": "sort",
              "values": [
                {
                  "displayName": "Direction",
                  "name": "direction",
                  "type": "options",
                  "options": [
                    {
                      "name": "Ascending",
                      "value": "ASC"
                    },
                    {
                      "name": "Descending",
                      "value": "DESC"
                    }
                  ],
                  "default": "ASC",
                  "description": "The sorting direction"
                },
                {
                  "displayName": "Field",
                  "name": "field",
                  "type": "string",
                  "default": "",
                  "description": "The sorting field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Company address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Postal",
                      "value": "postal"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "Company email"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Company name"
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "Company phone"
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of company (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to company, for easy management of companys. This is not applicable for companies."
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "description": "Companies websites",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Company ID",
      "name": "companyId",
      "type": "string",
      "default": "",
      "description": "ID of company to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Company ID",
      "name": "companyId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular company",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Company address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Postal",
                      "value": "postal"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "Company email"
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of company (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to company, for easy management of companys. This is not applicable for companies."
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Company name"
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "Company phone"
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Companys websites",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new deal",
          "action": "Create a deal"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a deal",
          "action": "Delete a deal"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a deal",
          "action": "Get a deal"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many deals",
          "action": "Get many deals"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update deal properties",
          "action": "Update a deal"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 20,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Close Date",
      "name": "closeDate",
      "type": "dateTime",
      "default": "",
      "description": "Closing date of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Expected Value",
      "name": "expectedValue",
      "type": "number",
      "default": 1,
      "description": "Expected Value of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 0,
        "maxValue": 1000000000000
      }
    },
    {
      "displayName": "Milestone",
      "name": "milestone",
      "type": "string",
      "default": "",
      "description": "Milestone of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "Name of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Probability",
      "name": "probability",
      "type": "number",
      "default": 50,
      "description": "Expected probability",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 0,
        "maxValue": 100
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Contact IDs",
          "name": "contactIds",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add ID"
          },
          "default": [],
          "description": "Unique contact identifiers"
        },
        {
          "displayName": "Custom Data",
          "name": "customData",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of deal to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of deal to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Expected Value",
          "name": "expectedValue",
          "type": "number",
          "typeOptions": {
            "minValue": 0,
            "maxValue": 10000
          },
          "default": "",
          "description": "Expected Value of deal"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Name of deal"
        },
        {
          "displayName": "Probability",
          "name": "probability",
          "type": "number",
          "typeOptions": {
            "minValue": 0,
            "maxValue": 100
          },
          "default": 50,
          "description": "Expected Value of deal"
        },
        {
          "displayName": "Contact IDs",
          "name": "contactIds",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add ID"
          },
          "default": [],
          "description": "Unique contact identifiers"
        },
        {
          "displayName": "Custom Data",
          "name": "customData",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new contact",
      "resource": "contact"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a contact",
      "resource": "contact"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a contact",
      "resource": "contact"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many contacts",
      "resource": "contact"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update contact properties",
      "resource": "contact"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new company",
      "resource": "company"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a company",
      "resource": "company"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a company",
      "resource": "company"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many companies",
      "resource": "company"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update company properties",
      "resource": "company"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new deal",
      "resource": "deal"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a deal",
      "resource": "deal"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a deal",
      "resource": "deal"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many deals",
      "resource": "deal"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update deal properties",
      "resource": "deal"
    }
  ]


node_type: nodes-base.agileCrm
package_name: n8n-nodes-base
display_name: Agile CRM
description: Consume Agile CRM API
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "agileCrmApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-07-16 12:10:21
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Agile CRM node documentation
  description: Learn how to use the Agile CRM node in n8n. Follow technical documentation to integrate Agile CRM node into your workflows.
  contentType: [integration, reference]
  ---

  # Agile CRM node

  Use the Agile CRM node to automate work in Agile CRM, and integrate Agile CRM with other applications. n8n has built-in support for a wide range of Agile CRM features, including creating, getting, updating and deleting companies, contracts, and deals.

  On this page, you'll find a list of operations the Agile CRM node supports and links to more resources.

  /// note | Credentials
  Refer to [Agile CRM credentials](/integrations/builtin/credentials/agilecrm.md) for guidance on setting up authentication. 
  ///

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * Company
      * Create a new company
      * Delete a company
      * Get a company
      * Get all companies
      * Update company properties
  * Contact
      * Create a new contact
      * Delete a contact
      * Get a contact
      * Get all contacts
      * Update contact properties
  * Deal
      * Create a new deal
      * Delete a deal
      * Get a deal
      * Get all deals
      * Update deal properties

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'agile-crm') ]]

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "contact",
      "options": [
        {
          "name": "Company",
          "value": "company"
        },
        {
          "name": "Contact",
          "value": "contact"
        },
        {
          "name": "Deal",
          "value": "deal"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new contact",
          "action": "Create a contact"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a contact",
          "action": "Delete a contact"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a contact",
          "action": "Get a contact"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many contacts",
          "action": "Get many contacts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update contact properties",
          "action": "Update a contact"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular contact",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 20,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filter",
      "name": "filterType",
      "type": "options",
      "default": "none",
      "options": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Build Manually",
          "value": "manual"
        },
        {
          "name": "JSON",
          "value": "json"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Must Match",
      "name": "matchType",
      "type": "options",
      "default": "anyFilter",
      "options": [
        {
          "name": "Any Filter",
          "value": "anyFilter"
        },
        {
          "name": "All Filters",
          "value": "allFilters"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": false,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Conditions",
          "name": "conditions",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "description": "Any searchable field"
            },
            {
              "displayName": "Condition Type",
              "name": "condition_type",
              "type": "options",
              "options": [
                {
                  "name": "After",
                  "value": "AFTER"
                },
                {
                  "name": "Before",
                  "value": "BEFORE"
                },
                {
                  "name": "Between",
                  "value": "BETWEEN"
                },
                {
                  "name": "Equals",
                  "value": "EQUALS"
                },
                {
                  "name": "Last",
                  "value": "LAST"
                },
                {
                  "name": "Not Equal",
                  "value": "NOTEQUALS"
                },
                {
                  "name": "On",
                  "value": "ON"
                }
              ],
              "default": "EQUALS"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Value 2",
              "name": "value2",
              "type": "string",
              "displayOptions": {
                "show": {
                  "condition_type": [
                    "BETWEEN"
                  ]
                }
              },
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters",
      "name": "jsonNotice",
      "type": "notice",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Filters (JSON)",
      "name": "filterJson",
      "type": "string",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "fixedCollection",
          "placeholder": "Add Sort",
          "default": [],
          "options": [
            {
              "displayName": "Sort",
              "name": "sort",
              "values": [
                {
                  "displayName": "Direction",
                  "name": "direction",
                  "type": "options",
                  "options": [
                    {
                      "name": "Ascending",
                      "value": "ASC"
                    },
                    {
                      "name": "Descending",
                      "value": "DESC"
                    }
                  ],
                  "default": "ASC",
                  "description": "The sorting direction"
                },
                {
                  "displayName": "Field",
                  "name": "field",
                  "type": "string",
                  "default": "",
                  "description": "The sorting field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Postal",
                      "value": "postal"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Company",
          "name": "company",
          "type": "string",
          "default": "",
          "description": "Company Name"
        },
        {
          "displayName": "Email",
          "name": "emailOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contact email",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Email Properties",
              "name": "emailProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of Email",
                  "options": [
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Personal",
                      "value": "personal"
                    }
                  ]
                },
                {
                  "displayName": "Email",
                  "name": "email",
                  "type": "string",
                  "placeholder": "name@email.com",
                  "required": true,
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "Contact first name"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Contact last name"
        },
        {
          "displayName": "Lead Score",
          "name": "leadScore",
          "type": "number",
          "default": "",
          "description": "Lead score of contact",
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of contact (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Phone",
          "name": "phoneOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts phone",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Phone Properties",
              "name": "phoneProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of phone number",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Home Fax",
                      "value": "homeFax"
                    },
                    {
                      "name": "Main",
                      "value": "main"
                    },
                    {
                      "name": "Mobile",
                      "value": "mobile"
                    },
                    {
                      "name": "Other",
                      "value": "other"
                    },
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Work Fax",
                      "value": "workFax"
                    }
                  ]
                },
                {
                  "displayName": "Number",
                  "name": "number",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Phone number"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Professional title"
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts websites",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "ID of contact to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular contact",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    },
                    {
                      "name": "Postal",
                      "value": "postal"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Company",
          "name": "company",
          "type": "string",
          "default": "",
          "description": "Company Name"
        },
        {
          "displayName": "Email",
          "name": "emailOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contact email",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Email Properties",
              "name": "emailProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of Email",
                  "options": [
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Personal",
                      "value": "personal"
                    }
                  ]
                },
                {
                  "displayName": "Email",
                  "name": "email",
                  "type": "string",
                  "placeholder": "name@email.com",
                  "required": true,
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "Contact first name"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Contact last name"
        },
        {
          "displayName": "Lead Score",
          "name": "leadScore",
          "type": "number",
          "default": "",
          "description": "Lead score of contact",
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of contact (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Phone",
          "name": "phoneOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts phone",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Phone Properties",
              "name": "phoneProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of phone number",
                  "options": [
                    {
                      "name": "Home",
                      "value": "home"
                    },
                    {
                      "name": "Home Fax",
                      "value": "homeFax"
                    },
                    {
                      "name": "Main",
                      "value": "main"
                    },
                    {
                      "name": "Mobile",
                      "value": "mobile"
                    },
                    {
                      "name": "Other",
                      "value": "other"
                    },
                    {
                      "name": "Work",
                      "value": "work"
                    },
                    {
                      "name": "Work Fax",
                      "value": "workFax"
                    }
                  ]
                },
                {
                  "displayName": "Number",
                  "name": "number",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Phone number"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Professional title"
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Contacts websites",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new company",
          "action": "Create a company"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a company",
          "action": "Delete a company"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a company",
          "action": "Get a company"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many companies",
          "action": "Get many companies"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update company properties",
          "action": "Update a company"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Company ID",
      "name": "companyId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular company",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 20,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filter",
      "name": "filterType",
      "type": "options",
      "default": "none",
      "options": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Build Manually",
          "value": "manual"
        },
        {
          "name": "JSON",
          "value": "json"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Must Match",
      "name": "matchType",
      "type": "options",
      "default": "anyFilter",
      "options": [
        {
          "name": "Any Filter",
          "value": "anyFilter"
        },
        {
          "name": "All Filters",
          "value": "allFilters"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      }
    },
    {
      "displayName": "Simplify",
      "name": "simple",
      "type": "boolean",
      "default": false,
      "description": "Whether to return a simplified version of the response instead of the raw data",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Conditions",
          "name": "conditions",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "description": "Any searchable field"
            },
            {
              "displayName": "Condition Type",
              "name": "condition_type",
              "type": "options",
              "options": [
                {
                  "name": "After",
                  "value": "AFTER"
                },
                {
                  "name": "Before",
                  "value": "BEFORE"
                },
                {
                  "name": "Between",
                  "value": "BETWEEN"
                },
                {
                  "name": "Equals",
                  "value": "EQUALS"
                },
                {
                  "name": "Last",
                  "value": "LAST"
                },
                {
                  "name": "Not Equal",
                  "value": "NOTEQUALS"
                },
                {
                  "name": "On",
                  "value": "ON"
                }
              ],
              "default": "EQUALS"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Value 2",
              "name": "value2",
              "type": "string",
              "displayOptions": {
                "show": {
                  "condition_type": [
                    "BETWEEN"
                  ]
                }
              },
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "manual"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters",
      "name": "jsonNotice",
      "type": "notice",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Filters (JSON)",
      "name": "filterJson",
      "type": "string",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ],
          "filterType": [
            "json"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "fixedCollection",
          "placeholder": "Add Sort",
          "default": [],
          "options": [
            {
              "displayName": "Sort",
              "name": "sort",
              "values": [
                {
                  "displayName": "Direction",
                  "name": "direction",
                  "type": "options",
                  "options": [
                    {
                      "name": "Ascending",
                      "value": "ASC"
                    },
                    {
                      "name": "Descending",
                      "value": "DESC"
                    }
                  ],
                  "default": "ASC",
                  "description": "The sorting direction"
                },
                {
                  "displayName": "Field",
                  "name": "field",
                  "type": "string",
                  "default": "",
                  "description": "The sorting field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Company address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Postal",
                      "value": "postal"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "Company email"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Company name"
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "Company phone"
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of company (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to company, for easy management of companys. This is not applicable for companies."
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "description": "Companies websites",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Company ID",
      "name": "companyId",
      "type": "string",
      "default": "",
      "description": "ID of company to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Company ID",
      "name": "companyId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular company",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "addressOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Company address",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Address Properties",
              "name": "addressProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of address",
                  "options": [
                    {
                      "name": "Postal",
                      "value": "postal"
                    },
                    {
                      "name": "Office",
                      "value": "office"
                    }
                  ]
                },
                {
                  "displayName": "Address",
                  "name": "address",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Full address"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "Company email"
        },
        {
          "displayName": "Star Value",
          "name": "starValue",
          "type": "options",
          "default": "",
          "description": "Rating of company (Max value 5). This is not applicable for companies.",
          "options": [
            {
              "name": "0",
              "value": 0
            },
            {
              "name": "1",
              "value": 1
            },
            {
              "name": "2",
              "value": 2
            },
            {
              "name": "3",
              "value": 3
            },
            {
              "name": "4",
              "value": 4
            },
            {
              "name": "5",
              "value": 5
            }
          ]
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Tag"
          },
          "default": [],
          "description": "Unique identifiers added to company, for easy management of companys. This is not applicable for companies."
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Company name"
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "Company phone"
        },
        {
          "displayName": "Website",
          "name": "websiteOptions",
          "type": "fixedCollection",
          "default": {},
          "description": "Companys websites",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Website Properties.",
              "name": "websiteProperties",
              "values": [
                {
                  "displayName": "Type",
                  "name": "subtype",
                  "type": "options",
                  "required": true,
                  "default": "",
                  "description": "Type of website",
                  "options": [
                    {
                      "name": "Facebook",
                      "value": "facebook"
                    },
                    {
                      "name": "Feed",
                      "value": "feed"
                    },
                    {
                      "name": "Flickr",
                      "value": "flickr"
                    },
                    {
                      "name": "Github",
                      "value": "github"
                    },
                    {
                      "name": "Google Plus",
                      "value": "googlePlus"
                    },
                    {
                      "name": "LinkedIn",
                      "value": "linkedin"
                    },
                    {
                      "name": "Skype",
                      "value": "skype"
                    },
                    {
                      "name": "Twitter",
                      "value": "twitter"
                    },
                    {
                      "name": "URL",
                      "value": "url"
                    },
                    {
                      "name": "Xing",
                      "value": "xing"
                    },
                    {
                      "name": "YouTube",
                      "value": "youtube"
                    }
                  ]
                },
                {
                  "displayName": "URL",
                  "name": "url",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Website URL"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Properties",
          "name": "customProperties",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Sub Type",
                  "name": "subtype",
                  "type": "string",
                  "default": "",
                  "description": "Property sub type"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "company"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new deal",
          "action": "Create a deal"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a deal",
          "action": "Delete a deal"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a deal",
          "action": "Get a deal"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many deals",
          "action": "Get many deals"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update deal properties",
          "action": "Update a deal"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for a particular deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 20,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Close Date",
      "name": "closeDate",
      "type": "dateTime",
      "default": "",
      "description": "Closing date of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Expected Value",
      "name": "expectedValue",
      "type": "number",
      "default": 1,
      "description": "Expected Value of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 0,
        "maxValue": 1000000000000
      }
    },
    {
      "displayName": "Milestone",
      "name": "milestone",
      "type": "string",
      "default": "",
      "description": "Milestone of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "Name of deal",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Probability",
      "name": "probability",
      "type": "number",
      "default": 50,
      "description": "Expected probability",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 0,
        "maxValue": 100
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Contact IDs",
          "name": "contactIds",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add ID"
          },
          "default": [],
          "description": "Unique contact identifiers"
        },
        {
          "displayName": "Custom Data",
          "name": "customData",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of deal to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of deal to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Expected Value",
          "name": "expectedValue",
          "type": "number",
          "typeOptions": {
            "minValue": 0,
            "maxValue": 10000
          },
          "default": "",
          "description": "Expected Value of deal"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Name of deal"
        },
        {
          "displayName": "Probability",
          "name": "probability",
          "type": "number",
          "typeOptions": {
            "minValue": 0,
            "maxValue": 100
          },
          "default": 50,
          "description": "Expected Value of deal"
        },
        {
          "displayName": "Contact IDs",
          "name": "contactIds",
          "type": "string",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add ID"
          },
          "default": [],
          "description": "Unique contact identifiers"
        },
        {
          "displayName": "Custom Data",
          "name": "customData",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Property",
              "name": "customProperty",
              "values": [
                {
                  "displayName": "Name",
                  "name": "name",
                  "type": "string",
                  "required": true,
                  "default": "",
                  "description": "Property name"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Property value"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new contact",
      "resource": "contact"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a contact",
      "resource": "contact"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a contact",
      "resource": "contact"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many contacts",
      "resource": "contact"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update contact properties",
      "resource": "contact"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new company",
      "resource": "company"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a company",
      "resource": "company"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a company",
      "resource": "company"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many companies",
      "resource": "company"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update company properties",
      "resource": "company"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new deal",
      "resource": "deal"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a deal",
      "resource": "deal"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a deal",
      "resource": "deal"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many deals",
      "resource": "deal"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update deal properties",
      "resource": "deal"
    }
  ]


node_type: nodes-base.airtableTool
package_name: n8n-nodes-base
display_name: Airtable Tool
description: Read, update, write and delete data from Airtable (AI Tool variant for use with AI Agents)
category: input
development_style: programmatic
version: 2.2
outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-07-16 12:10:21
tool_variant_of: nodes-base.airtable
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Airtable node documentation
  description: Learn how to use the Airtable node in n8n. Follow technical documentation to integrate Airtable node into your workflows.
  contentType: [integration, reference]
  priority: high
  ---

  # Airtable node

  Use the Airtable node to automate work in Airtable, and integrate Airtable with other applications. n8n has built-in support for a wide range of Airtable features, including creating, reading, listing, updating and deleting tables.

  On this page, you'll find a list of operations the Airtable node supports and links to more resources.

  /// note | Credentials
  Refer to [Airtable credentials](/integrations/builtin/credentials/airtable.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * Append the data to a table
  * Delete data from a table
  * List data from a table
  * Read data from a table
  * Update data in a table

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'airtable') ]]

  ## Related resources

  n8n provides a trigger node for Airtable. You can find the trigger node docs [here](/integrations/builtin/trigger-nodes/n8n-nodes-base.airtabletrigger.md).

  Refer to [Airtable's documentation](https://airtable.com/developers/web/api/introduction){:target=_blank .external-link} for more information about the service.

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"


  ## Node reference

  ### Get the Record ID

  To fetch data for a particular record, you need the Record ID. There are two ways to get the Record ID.

  ### Create a Record ID column in Airtable

  To create a `Record ID` column in your table, refer to this [article](https://support.airtable.com/docs/finding-airtable-ids){:target=_blank .external-link}. You can then use this Record ID in your Airtable node.

  ### Use the List operation

  To get the Record ID of your record, you can use the **List** operation of the Airtable node. This operation will return the Record ID along with the fields. You can then use this Record ID in your Airtable node.

  ### Filter records when using the List operation

  To filter records from your Airtable base, use the **Filter By Formula** option. For example, if you want to return all the users that belong to the organization `n8n`, follow the steps mentioned below:

  1. Select 'List' from the **Operation** dropdown list.
  2. Enter the base ID and the table name in the **Base ID** and **Table** field, respectively.
  3. Click on **Add Option** and select 'Filter By Formula' from the dropdown list.
  4. Enter the following formula in the **Filter By Formula** field: `{Organization}='n8n'`.

  Similarly, if you want to return all the users that don't belong to the organization `n8n`, use the following formula: `NOT({Organization}='n8n')`.

  Refer to the Airtable [documentation](https://support.airtable.com/hc/en-us/articles/203255215-Formula-Field-Reference){:target=_balnk .external-link} to learn more about the formulas.

  ## Common issues

  For common errors or issues and suggested resolution steps, refer to [Common Issues](/integrations/builtin/app-nodes/n8n-nodes-base.airtable/common-issues.md).

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Airtable"
    },
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "airtableTokenApi",
      "options": [
        {
          "name": "Access Token",
          "value": "airtableTokenApi"
        },
        {
          "name": "OAuth2",
          "value": "airtableOAuth2Api"
        }
      ]
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "record",
      "options": [
        {
          "name": "Base",
          "value": "base"
        },
        {
          "name": "Record",
          "value": "record"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a new record in a table",
          "action": "Create a record"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a record"
        },
        {
          "name": "Delete",
          "value": "deleteRecord",
          "description": "Delete a record from a table",
          "action": "Delete a record"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a record from a table",
          "action": "Get a record"
        },
        {
          "name": "Search",
          "value": "search",
          "description": "Search for specific records or list all",
          "action": "Search records"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a record in a table",
          "action": "Update record"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Base",
      "name": "base",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "typeOptions": {
            "searchListMethod": "baseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "By URL",
          "name": "url",
          "type": "string",
          "placeholder": "e.g. https://airtable.com/app12DiScdfes/tbl9WvGeEPa6lZyVq/viwHdfasdfeieg5p",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https://airtable.com/([a-zA-Z0-9]{2,})/.*",
                "errorMessage": "Not a valid Airtable Base URL"
              }
            }
          ],
          "extractValue": {
            "type": "regex",
            "regex": "https://airtable.com/([a-zA-Z0-9]{2,})"
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "[a-zA-Z0-9]{2,}",
                "errorMessage": "Not a valid Airtable Base ID"
              }
            }
          ],
          "placeholder": "e.g. appD3dfaeidke",
          "url": "=https://airtable.com/{{$value}}"
        }
      ]
    },
    {
      "displayName": "Table",
      "name": "table",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "base.value"
        ]
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "typeOptions": {
            "searchListMethod": "tableSearch",
            "searchable": true
          }
        },
        {
          "displayName": "By URL",
          "name": "url",
          "type": "string",
          "placeholder": "https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})/.*",
                "errorMessage": "Not a valid Airtable Table URL"
              }
            }
          ],
          "extractValue": {
            "type": "regex",
            "regex": "https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})"
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "[a-zA-Z0-9]{2,}",
                "errorMessage": "Not a valid Airtable Table ID"
              }
            }
          ],
          "placeholder": "tbl3dirwqeidke"
        }
      ]
    },
    {
      "displayName": "Columns",
      "name": "columns",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "table.value",
          "base.value"
        ],
        "resourceMapper": {
          "resourceMapperMethod": "getColumns",
          "mode": "add",
          "fieldWords": {
            "singular": "column",
            "plural": "columns"
          },
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Typecast",
          "name": "typecast",
          "type": "boolean",
          "default": false,
          "description": "Whether the Airtable API should attempt mapping of string values for linked records & select options"
        },
        {
          "displayName": "Ignore Fields From Input",
          "name": "ignoreFields",
          "type": "string",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/columns.mappingMode": [
                "autoMapInputData"
              ]
            }
          },
          "default": "",
          "description": "Comma-separated list of fields in input to ignore when updating"
        },
        {
          "displayName": "Update All Matches",
          "name": "updateAllMatches",
          "type": "boolean",
          "default": false,
          "description": "Whether to update all records matching the value in the \"Column to Match On\". If not set, only the first matching record will be updated.",
          "displayOptions": {
            "show": {
              "/operation": [
                "update",
                "upsert"
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Record ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the record to delete. <a href=\"https://support.airtable.com/docs/record-id\" target=\"_blank\">More info</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "deleteRecord"
          ]
        }
      }
    },
    {
      "displayName": "Record ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the record to get. <a href=\"https://support.airtable.com/docs/record-id\" target=\"_blank\">More info</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "description": "Additional options which decide which records should be returned",
      "options": [
        {
          "displayName": "Download Attachments",
          "name": "downloadFields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getAttachmentColumns",
            "loadOptionsDependsOn": [
              "base.value",
              "table.value"
            ]
          },
          "default": [],
          "description": "The fields of type 'attachment' that should be downloaded"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Filter By Formula",
      "name": "filterByFormula",
      "type": "string",
      "default": "",
      "description": "The formula will be evaluated for each record, and if the result is not 0, false, \"\", NaN, [], or #Error! the record will be included in the response. <a href=\"https://support.airtable.com/docs/formula-field-reference\" target=\"_blank\">More info</a>.",
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": true,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "record"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "description": "Additional options which decide which records should be returned",
      "options": [
        {
          "displayName": "Download Attachments",
          "name": "downloadFields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getAttachmentColumns",
            "loadOptionsDependsOn": [
              "base.value",
              "table.value"
            ]
          },
          "default": [],
          "description": "The fields of type 'attachment' that should be downloaded"
        },
        {
          "displayName": "Output Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getColumns",
            "loadOptionsDependsOn": [
              "base.value",
              "table.value"
            ]
          },
          "default": [],
          "description": "The fields you want to include in the output"
        },
        {
          "displayName": "View",
          "name": "view",
          "type": "resourceLocator",
          "default": {
            "mode": "list",
            "value": ""
          },
          "modes": [
            {
              "displayName": "From List",
              "name": "list",
              "type": "list",
              "typeOptions": {
                "searchListMethod": "viewSearch",
                "searchable": true
              }
            },
            {
              "displayName": "By URL",
              "name": "url",
              "type": "string",
              "placeholder": "https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p",
              "validation": [
                {
                  "type": "regex",
                  "properties": {
                    "regex": "https://airtable.com/[a-zA-Z0-9]{2,}/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})/.*",
                    "errorMessage": "Not a valid Airtable View URL"
                  }
                }
              ],
              "extractValue": {
                "type": "regex",
                "regex": "https://airtable.com/[a-zA-Z0-9]{2,}/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})"
              }
            },
            {
              "displayName": "ID",
              "name": "id",
              "type": "string",
              "validation": [
                {
                  "type": "regex",
                  "properties": {
                    "regex": "[a-zA-Z0-9]{2,}",
                    "errorMessage": "Not a valid Airtable View ID"
                  }
                }
              ],
              "placeholder": "viw3dirwqeidke"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "description": "Defines how the returned records should be ordered",
      "options": [
        {
          "name": "property",
          "displayName": "Property",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "typeOptions": {
                "loadOptionsMethod": "getColumns",
                "loadOptionsDependsOn": [
                  "base.value",
                  "table.value"
                ]
              },
              "default": "",
              "description": "Name of the field to sort on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "ASC",
                  "value": "asc",
                  "description": "Sort in ascending order (small -> large)"
                },
                {
                  "name": "DESC",
                  "value": "desc",
                  "description": "Sort in descending order (large -> small)"
                }
              ],
              "default": "asc",
              "description": "The sort direction"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Columns",
      "name": "columns",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "table.value",
          "base.value"
        ],
        "resourceMapper": {
          "resourceMapperMethod": "getColumnsWithRecordId",
          "mode": "update",
          "fieldWords": {
            "singular": "column",
            "plural": "columns"
          },
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Typecast",
          "name": "typecast",
          "type": "boolean",
          "default": false,
          "description": "Whether the Airtable API should attempt mapping of string values for linked records & select options"
        },
        {
          "displayName": "Ignore Fields From Input",
          "name": "ignoreFields",
          "type": "string",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/columns.mappingMode": [
                "autoMapInputData"
              ]
            }
          },
          "default": "",
          "description": "Comma-separated list of fields in input to ignore when updating"
        },
        {
          "displayName": "Update All Matches",
          "name": "updateAllMatches",
          "type": "boolean",
          "default": false,
          "description": "Whether to update all records matching the value in the \"Column to Match On\". If not set, only the first matching record will be updated.",
          "displayOptions": {
            "show": {
              "/operation": [
                "update",
                "upsert"
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Columns",
      "name": "columns",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "table.value",
          "base.value"
        ],
        "resourceMapper": {
          "resourceMapperMethod": "getColumnsWithRecordId",
          "mode": "update",
          "fieldWords": {
            "singular": "column",
            "plural": "columns"
          },
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Typecast",
          "name": "typecast",
          "type": "boolean",
          "default": false,
          "description": "Whether the Airtable API should attempt mapping of string values for linked records & select options"
        },
        {
          "displayName": "Ignore Fields From Input",
          "name": "ignoreFields",
          "type": "string",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/columns.mappingMode": [
                "autoMapInputData"
              ]
            }
          },
          "default": "",
          "description": "Comma-separated list of fields in input to ignore when updating"
        },
        {
          "displayName": "Update All Matches",
          "name": "updateAllMatches",
          "type": "boolean",
          "default": false,
          "description": "Whether to update all records matching the value in the \"Column to Match On\". If not set, only the first matching record will be updated.",
          "displayOptions": {
            "show": {
              "/operation": [
                "update",
                "upsert"
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "record"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getMany",
      "options": [
        {
          "name": "Get Many",
          "value": "getMany",
          "description": "List all the bases",
          "action": "Get many bases"
        },
        {
          "name": "Get Schema",
          "value": "getSchema",
          "description": "Get the schema of the tables in a base",
          "action": "Get base schema"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "base"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": true,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "base"
          ],
          "operation": [
            "getMany"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "base"
          ],
          "operation": [
            "getMany"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Permission Level",
          "name": "permissionLevel",
          "type": "multiOptions",
          "options": [
            {
              "name": "Comment",
              "value": "comment"
            },
            {
              "name": "Create",
              "value": "create"
            },
            {
              "name": "Edit",
              "value": "edit"
            },
            {
              "name": "None",
              "value": "none"
            },
            {
              "name": "Read",
              "value": "read"
            }
          ],
          "default": [],
          "description": "Filter the returned bases by one or more permission levels"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "base"
          ],
          "operation": [
            "getMany"
          ]
        }
      }
    },
    {
      "displayName": "Base",
      "name": "base",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "description": "The Airtable Base to retrieve the schema from",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "base"
          ],
          "operation": [
            "getSchema"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "typeOptions": {
            "searchListMethod": "baseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "By URL",
          "name": "url",
          "type": "string",
          "placeholder": "e.g. https://airtable.com/app12DiScdfes/tbl9WvGeEPa6lZyVq/viwHdfasdfeieg5p",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https://airtable.com/([a-zA-Z0-9]{2,})/.*",
                "errorMessage": "Not a valid Airtable Base URL"
              }
            }
          ],
          "extractValue": {
            "type": "regex",
            "regex": "https://airtable.com/([a-zA-Z0-9]{2,})"
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "[a-zA-Z0-9]{2,}",
                "errorMessage": "Not a valid Airtable Base ID"
              }
            }
          ],
          "placeholder": "e.g. appD3dfaeidke",
          "url": "=https://airtable.com/{{$value}}"
        }
      ]
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a new record in a table",
      "resource": "record"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "record"
    },
    {
      "operation": "deleteRecord",
      "name": "Delete",
      "description": "Delete a record from a table",
      "resource": "record"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a record from a table",
      "resource": "record"
    },
    {
      "operation": "search",
      "name": "Search",
      "description": "Search for specific records or list all",
      "resource": "record"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a record in a table",
      "resource": "record"
    },
    {
      "operation": "getMany",
      "name": "Get Many",
      "description": "List all the bases",
      "resource": "base"
    },
    {
      "operation": "getSchema",
      "name": "Get Schema",
      "description": "Get the schema of the tables in a base",
      "resource": "base"
    }
  ]

credentials_required:
  [
    {
      "name": "airtableTokenApi",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "airtableTokenApi"
          ]
        }
      }
    },
    {
      "name": "airtableOAuth2Api",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "airtableOAuth2Api"
          ]
        }
      }
    }
  ]


