{
  "name": "sendinblue",
  "display_name": "Brevo",
  "description": "Consume Brevo API",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "sendInBlueApi",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "options",
      "required": false,
      "default": "email"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/nodes-base/nodes/Brevo/Brevo.node.ts",
  "routing": {
    "base_url": "https://api.brevo.com",
    "auth_headers": [
      [
        "api-key",
        "{{apiKey}}"
      ]
    ],
    "auth_query": [],
    "credential_name": "sendInBlueApi",
    "operations": [
      {
        "value": "sendTemplate",
        "method": "POST",
        "url": "/v3/smtp/email",
        "body": ""
      },
      {
        "value": "create",
        "method": "POST",
        "url": "/v3/contacts",
        "body": ""
      },
      {
        "value": "upsert",
        "method": "POST",
        "url": "/v3/contacts",
        "body": ""
      },
      {
        "value": "getAll",
        "method": "GET",
        "url": "/v3/contacts",
        "body": ""
      },
      {
        "value": "delete",
        "method": "DELETE",
        "url": "/v3/senders/{{$parameter.id}}",
        "body": ""
      },
      {
        "value": "update",
        "method": "PUT",
        "url": "/v3/contacts/attributes/{{$parameter.updateAttributeCategory}}/{{encodeURI($parameter.updateAttributeName)}}",
        "body": ""
      }
    ],
    "sends": [
      {
        "param_name": "subject",
        "send_type": "body",
        "dest_key": "subject",
        "applies_to_operations": [
          "send"
        ],
        "applies_to_resources": [
          "email"
        ]
      },
      {
        "param_name": "textContent",
        "send_type": "body",
        "dest_key": "textContent",
        "applies_to_operations": [
          "send"
        ],
        "applies_to_resources": [
          "email"
        ]
      },
      {
        "param_name": "htmlContent",
        "send_type": "body",
        "dest_key": "htmlContent",
        "applies_to_operations": [
          "send"
        ],
        "applies_to_resources": [
          "email"
        ]
      },
      {
        "param_name": "templateId",
        "send_type": "body",
        "dest_key": "templateId",
        "applies_to_operations": [
          "sendTemplate"
        ],
        "applies_to_resources": [
          "email"
        ]
      },
      {
        "param_name": "email",
        "send_type": "body",
        "dest_key": "email",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "contact"
        ]
      },
      {
        "param_name": "fieldValue",
        "send_type": "body",
        "dest_key": "=attributes.{{$parent.fieldName}}",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "contact"
        ]
      },
      {
        "param_name": "limit",
        "send_type": "query",
        "dest_key": "limit",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "contact"
        ]
      },
      {
        "param_name": "ASC",
        "send_type": "query",
        "dest_key": "sort",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "contact"
        ]
      },
      {
        "param_name": "modifiedSince",
        "send_type": "query",
        "dest_key": "modifiedSince",
        "applies_to_operations": [
          "getAll"
        ],
        "applies_to_resources": [
          "contact"
        ]
      },
      {
        "param_name": "name",
        "send_type": "body",
        "dest_key": "name",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "sender"
        ]
      },
      {
        "param_name": "Text",
        "send_type": "body",
        "dest_key": "type",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "attribute"
        ]
      },
      {
        "param_name": "attributeValue",
        "send_type": "body",
        "dest_key": "value",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "attribute"
        ]
      },
      {
        "param_name": "attributeCategoryValue",
        "send_type": "body",
        "dest_key": "=enumeration[{{$index}}].value",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "attribute"
        ]
      },
      {
        "param_name": "attributeCategoryLabel",
        "send_type": "body",
        "dest_key": "=enumeration[{{$index}}].label",
        "applies_to_operations": [
          "create"
        ],
        "applies_to_resources": [
          "attribute"
        ]
      },
      {
        "param_name": "updateAttributeValue",
        "send_type": "body",
        "dest_key": "value",
        "applies_to_operations": [
          "update"
        ],
        "applies_to_resources": [
          "attribute"
        ]
      }
    ]
  }
}