{
  "service": "klicktipp",
  "displayName": "KlickTipp",
  "categories": [
    "Marketing"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Listbuilding API Key",
      "placeholder": "KLICKTIPP_LISTBUILDING_API_KEY",
      "description": "KlickTipp Listbuilding API key sent as the apikey JSON body field. Create it in KlickTipp under List Building > New List Building > Entry via API key: https://developers.klicktipp.com/guides/listbuilding-api.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://www.klicktipp.com",
  "actions": [
    {
      "id": "klicktipp.signin",
      "service": "klicktipp",
      "name": "signin",
      "description": "Create or update a subscriber and associate the tag linked to the KlickTipp Listbuilding API key.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The subscriber email address. KlickTipp requires either email or smsnumber for signin, and email for signout and signoff.",
            "format": "email"
          },
          "smsnumber": {
            "type": "string",
            "minLength": 1,
            "description": "The subscriber phone number in international format, for example +4912345678 or 004912345678."
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "A custom field value as a string. Use Unix timestamps in seconds for KlickTipp date, time, and date-time fields."
            },
            "description": "Additional custom fields for the subscriber. Keys must match KlickTipp field names and values must match the configured field type formats."
          }
        },
        "additionalProperties": false,
        "description": "Input for creating or updating a subscriber through the KlickTipp Listbuilding API signin endpoint.",
        "anyOf": [
          {
            "required": [
              "email"
            ]
          },
          {
            "required": [
              "smsnumber"
            ]
          }
        ]
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "redirect_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "A redirect URL returned by KlickTipp.",
              "format": "uri"
            },
            "description": "Redirect URLs returned by KlickTipp for the configured opt-in flow."
          }
        },
        "additionalProperties": false,
        "description": "The KlickTipp Listbuilding signin response."
      }
    },
    {
      "id": "klicktipp.signoff",
      "service": "klicktipp",
      "name": "signoff",
      "description": "Unsubscribe a contact by email address through the KlickTipp Listbuilding API key.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The subscriber email address.",
            "format": "email"
          }
        },
        "additionalProperties": false,
        "description": "Input for unsubscribing a contact."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether every returned boolean result is true."
          },
          "results": {
            "type": "array",
            "items": {
              "type": "boolean",
              "description": "A result."
            },
            "description": "The raw boolean result array returned by KlickTipp."
          }
        },
        "additionalProperties": false,
        "description": "The KlickTipp Listbuilding boolean result."
      }
    },
    {
      "id": "klicktipp.signout",
      "service": "klicktipp",
      "name": "signout",
      "description": "Remove the tag linked to the KlickTipp Listbuilding API key from a subscriber by email address.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The subscriber email address.",
            "format": "email"
          }
        },
        "additionalProperties": false,
        "description": "Input for removing the Listbuilding API key tag."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether every returned boolean result is true."
          },
          "results": {
            "type": "array",
            "items": {
              "type": "boolean",
              "description": "A result."
            },
            "description": "The raw boolean result array returned by KlickTipp."
          }
        },
        "additionalProperties": false,
        "description": "The KlickTipp Listbuilding boolean result."
      }
    }
  ]
}
