{
  "service": "activecampaign",
  "displayName": "ActiveCampaign",
  "categories": [
    "Marketing",
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Token",
      "placeholder": "act_...",
      "description": "ActiveCampaign API token sent with the Api-Token request header. Find it on the Developer settings page: https://help.activecampaign.com/hc/en-us/articles/207317590-Getting-started-with-the-API.",
      "extraFields": [
        {
          "key": "apiUrl",
          "label": "API URL",
          "inputType": "text",
          "required": true,
          "secret": false,
          "placeholder": "https://your-account.api-us1.com",
          "description": "ActiveCampaign API URL such as https://your-account.api-us1.com. URLs ending in /api/3 are also accepted."
        }
      ]
    }
  ],
  "homepageUrl": "https://www.activecampaign.com",
  "actions": [
    {
      "id": "activecampaign.get_contact",
      "service": "activecampaign",
      "name": "get_contact",
      "description": "Get one ActiveCampaign contact by identifier.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "contactId": {
            "type": "string",
            "minLength": 1,
            "description": "ActiveCampaign contact identifier."
          }
        },
        "additionalProperties": false,
        "required": [
          "contactId"
        ],
        "description": "Input parameters for retrieving a single ActiveCampaign contact."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "contact": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ActiveCampaign contact identifier."
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact email address, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact first name, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact last name, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact phone number, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "organizationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Primary organization identifier, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact creation timestamp, or null when omitted."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact update timestamp, or null when omitted."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deleted": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the contact is deleted, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fieldValues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Custom field identifier."
                    },
                    "value": {
                      "type": "string",
                      "description": "Custom field value."
                    },
                    "raw": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "Raw ActiveCampaign object."
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "field",
                    "value",
                    "raw"
                  ],
                  "description": "ActiveCampaign contact custom field value."
                },
                "description": "Custom field values returned with the contact when present."
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Raw ActiveCampaign object."
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "email",
              "firstName",
              "lastName",
              "phone",
              "organizationId",
              "createdAt",
              "updatedAt",
              "raw"
            ],
            "description": "Normalized ActiveCampaign contact."
          }
        },
        "additionalProperties": false,
        "required": [
          "contact"
        ],
        "description": "ActiveCampaign single contact response."
      }
    },
    {
      "id": "activecampaign.get_current_user",
      "service": "activecampaign",
      "name": "get_current_user",
      "description": "Get the current ActiveCampaign user associated with the API token.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Input parameters for reading the current ActiveCampaign user."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ActiveCampaign user identifier."
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "User email address, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "User first name, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "User last name, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "username": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Username, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Phone number, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "signature": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Email signature, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Raw ActiveCampaign object."
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "email",
              "firstName",
              "lastName",
              "username",
              "phone",
              "signature",
              "raw"
            ],
            "description": "Normalized ActiveCampaign user."
          }
        },
        "additionalProperties": false,
        "required": [
          "user"
        ],
        "description": "ActiveCampaign current user response."
      }
    },
    {
      "id": "activecampaign.list_contacts",
      "service": "activecampaign",
      "name": "list_contacts",
      "description": "List ActiveCampaign contacts with pagination, search, and filtering support.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of contacts to return."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "Offset for retrieving the next ActiveCampaign page."
          },
          "search": {
            "type": "string",
            "minLength": 1,
            "description": "Free-text search applied to contact names, email, phone, or organization."
          },
          "emailLike": {
            "type": "string",
            "minLength": 1,
            "description": "Substring filter applied to the contact email address."
          },
          "listId": {
            "type": "string",
            "minLength": 1,
            "description": "Only return contacts associated with this list identifier."
          },
          "tagId": {
            "type": "integer",
            "minimum": 1,
            "description": "Only return contacts associated with this tag identifier."
          },
          "segmentId": {
            "type": "integer",
            "minimum": 1,
            "description": "Only return contacts that match this ActiveCampaign segment."
          },
          "idGreater": {
            "type": "integer",
            "minimum": 1,
            "description": "Only return contacts with an ID greater than this value."
          },
          "idLess": {
            "type": "integer",
            "minimum": 1,
            "description": "Only return contacts with an ID less than this value."
          },
          "createdAfter": {
            "type": "string",
            "description": "Only return contacts created after this date.",
            "format": "date"
          },
          "createdBefore": {
            "type": "string",
            "description": "Only return contacts created before this date.",
            "format": "date"
          },
          "updatedAfter": {
            "type": "string",
            "description": "Only return contacts updated after this date.",
            "format": "date"
          },
          "updatedBefore": {
            "type": "string",
            "description": "Only return contacts updated before this date.",
            "format": "date"
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "id",
              "name",
              "email",
              "score",
              "first_name",
              "last_name"
            ],
            "description": "Contact field used for sorting."
          },
          "sortDirection": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "Sort direction accepted by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Query parameters for listing ActiveCampaign contacts."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ActiveCampaign contact identifier."
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Contact email address, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "firstName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Contact first name, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Contact last name, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phone": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Contact phone number, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "organizationId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Primary organization identifier, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Contact creation timestamp, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Contact update timestamp, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deleted": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the contact is deleted, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fieldValues": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string",
                        "description": "Custom field identifier."
                      },
                      "value": {
                        "type": "string",
                        "description": "Custom field value."
                      },
                      "raw": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true,
                        "description": "Raw ActiveCampaign object."
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "value",
                      "raw"
                    ],
                    "description": "ActiveCampaign contact custom field value."
                  },
                  "description": "Custom field values returned with the contact when present."
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "Raw ActiveCampaign object."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "email",
                "firstName",
                "lastName",
                "phone",
                "organizationId",
                "createdAt",
                "updatedAt",
                "raw"
              ],
              "description": "Normalized ActiveCampaign contact."
            },
            "description": "Contacts returned by ActiveCampaign."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Total number of records reported by ActiveCampaign, or null when unavailable."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Page size echoed by ActiveCampaign, or null when unavailable."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "offset": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Page offset echoed by ActiveCampaign, or null when unavailable."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "total",
              "limit",
              "offset"
            ],
            "description": "Normalized ActiveCampaign pagination metadata."
          }
        },
        "additionalProperties": false,
        "required": [
          "contacts",
          "pagination"
        ],
        "description": "ActiveCampaign contact list response."
      }
    },
    {
      "id": "activecampaign.list_fields",
      "service": "activecampaign",
      "name": "list_fields",
      "description": "List ActiveCampaign custom contact fields.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of custom fields to return."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "Offset for retrieving the next ActiveCampaign custom fields page."
          }
        },
        "additionalProperties": false,
        "description": "Query parameters for listing ActiveCampaign custom fields."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ActiveCampaign custom field identifier."
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Field title, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Field type, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Field description, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "personalizationTag": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Personalization tag for the field, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Field creation timestamp, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Field update timestamp, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "visible": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the field is visible, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "required": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the field is required, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "showInList": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the field is shown in lists, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Raw ActiveCampaign object."
                  },
                  "description": "Options returned for dropdown-like fields."
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "Raw ActiveCampaign object."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "title",
                "type",
                "description",
                "personalizationTag",
                "createdAt",
                "updatedAt",
                "options",
                "raw"
              ],
              "description": "Normalized ActiveCampaign custom field."
            },
            "description": "Custom fields returned by ActiveCampaign."
          }
        },
        "additionalProperties": false,
        "required": [
          "fields"
        ],
        "description": "ActiveCampaign custom field list response."
      }
    },
    {
      "id": "activecampaign.list_lists",
      "service": "activecampaign",
      "name": "list_lists",
      "description": "List ActiveCampaign mailing lists with pagination and optional name filtering.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of lists to return."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "Offset for retrieving the next ActiveCampaign page."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Substring filter applied to the ActiveCampaign list name."
          }
        },
        "additionalProperties": false,
        "description": "Query parameters for listing ActiveCampaign mailing lists."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "lists": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ActiveCampaign list identifier."
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "List name, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "userId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Owner user identifier, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "stringId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "URL-safe list identifier, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "List creation timestamp, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "List update timestamp, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "private": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the list is private, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "senderName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Sender name, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "senderUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Sender website URL, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "senderReminder": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Sender reminder text, or null when ActiveCampaign omits it."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fullAddress": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "Sender address block, or null when omitted."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "Raw ActiveCampaign object."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "name",
                "userId",
                "stringId",
                "createdAt",
                "updatedAt",
                "raw"
              ],
              "description": "Normalized ActiveCampaign mailing list."
            },
            "description": "Mailing lists returned by ActiveCampaign."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "total": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Total number of records reported by ActiveCampaign, or null when unavailable."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "limit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Page size echoed by ActiveCampaign, or null when unavailable."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "offset": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "Page offset echoed by ActiveCampaign, or null when unavailable."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "total",
              "limit",
              "offset"
            ],
            "description": "Normalized ActiveCampaign pagination metadata."
          }
        },
        "additionalProperties": false,
        "required": [
          "lists",
          "pagination"
        ],
        "description": "ActiveCampaign mailing list response."
      }
    },
    {
      "id": "activecampaign.upsert_contact",
      "service": "activecampaign",
      "name": "upsert_contact",
      "description": "Create or update an ActiveCampaign contact using the official contact sync endpoint.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Contact email address used as the sync key.",
            "format": "email"
          },
          "firstName": {
            "type": "string",
            "minLength": 1,
            "description": "Contact first name to create or update."
          },
          "lastName": {
            "type": "string",
            "minLength": 1,
            "description": "Contact last name to create or update."
          },
          "phone": {
            "type": "string",
            "minLength": 1,
            "description": "Contact phone number to create or update."
          },
          "fieldValues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Custom field identifier."
                },
                "value": {
                  "type": "string",
                  "description": "Custom field value."
                }
              },
              "additionalProperties": false,
              "required": [
                "field",
                "value"
              ],
              "description": "One custom field value to write during the contact sync."
            },
            "description": "Custom field values to write during the contact sync.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "email"
        ],
        "description": "Payload for creating or updating an ActiveCampaign contact through the sync endpoint."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "contact": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ActiveCampaign contact identifier."
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact email address, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact first name, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact last name, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact phone number, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "organizationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Primary organization identifier, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact creation timestamp, or null when omitted."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Contact update timestamp, or null when omitted."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deleted": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the contact is deleted, or null when ActiveCampaign omits it."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fieldValues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string",
                      "description": "Custom field identifier."
                    },
                    "value": {
                      "type": "string",
                      "description": "Custom field value."
                    },
                    "raw": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "Raw ActiveCampaign object."
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "field",
                    "value",
                    "raw"
                  ],
                  "description": "ActiveCampaign contact custom field value."
                },
                "description": "Custom field values returned with the contact when present."
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Raw ActiveCampaign object."
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "email",
              "firstName",
              "lastName",
              "phone",
              "organizationId",
              "createdAt",
              "updatedAt",
              "raw"
            ],
            "description": "Normalized ActiveCampaign contact."
          }
        },
        "additionalProperties": false,
        "required": [
          "contact"
        ],
        "description": "ActiveCampaign contact sync response."
      }
    }
  ]
}
