Webhook Source Connector for Confluent Cloud

The fully managed Webhook Source connector for Confluent Cloud exposes an HTTPS endpoint that lets external systems push records directly to Apache Kafka® topics.

Use the connector when an upstream system can call an HTTPS endpoint but cannot run its own Kafka producer, such as a SaaS application that delivers events only through outbound webhooks. You can also use it as a fully managed alternative to REST Proxy for producing records over HTTP, with built-in Schema Registry integration.

Note

The Webhook Source connector is a Limited Availability feature in Confluent Cloud.

If you would like to participate in the Limited Availability Program, contact Confluent Support or your Confluent account team to enable Webhook Source connector for your organization.

Features

The Webhook Source connector provides the following features:

  • Endpoint authentication: The endpoint supports HTTP Basic authentication. Use the API key and secret created for the service account with Global scope.

  • Topic routing modes: Configure the connector to route records to a fixed topic, or route each record to a topic based on an HTTP header or a field in the request body. For more information, see Topic routing.

  • Batch requests: Send a single HTTP request containing a list of records. The connector returns one acknowledgement for the entire batch.

  • Flexible payload ingestion: The connector accepts JSON payloads of any structure, so webhook providers can integrate without rigid format requirements.

  • Transforms: The connector supports standard and custom Single Message Transformations (SMTs) to transform messages before they land in the topic.

  • Multiple task support: Scale the connector across multiple tasks. The connector requires a minimum of two tasks, which is also the default, for high availability (99.99%).

  • Error handling: The connector routes errors and bad records to an error topic. For more information, see How to use the endpoint.

  • Client-side encryption (CSFLE and CSPE) support: The connector supports CSFLE and CSPE for sensitive data. For more information about CSFLE or CSPE setup, see the connector configuration.

  • Supported data formats: The connector supports the Avro, JSON Schema, and Protobuf data formats, which use Schema Registry.

  • Schema Registry and schema context support: The connector allows you to map the endpoint to a specific schema context so that you can use the schema context feature in different environments.

  • Schema evolution: Using the schema.enforcement.mode property, the connector supports schema evolution through the EVOLVE enforcement mode. In EVOLVE mode, the connector maintains a single evolving schema per topic in Schema Registry. It adds newly seen fields as optional, never removes fields from the schema, and emits fields that are absent from later records as null. This reduces schema proliferation and helps pipelines tolerate additive changes. For incompatible changes, such as required-field omissions or type conflicts, the connector task fails. EVOLVE is not supported with PROTOBUF output or when CSFLE or CSPE is enabled. For more information, see Schema evolution.

For more information and examples to use with the Confluent Cloud API for Connect, see the Confluent Cloud API for Connect Usage Examples section.

Limitations

Be sure to review the following information.

Quick Start

Use this quick start to get up and running with the Confluent Cloud Webhook Source connector. The quick start provides the basics of selecting the connector and configuring it to accept records over HTTPS and stream them to an Kafka topic.

Prerequisites
  • A Dedicated Confluent Cloud cluster on Amazon Web Services (AWS).

  • The Confluent CLI installed and configured for the cluster. For installation steps, see Install the Confluent CLI.

  • A Confluent Cloud API key and secret with Global scope, created for the service account used by the connector. The upstream system uses this key and secret for HTTP Basic authentication when it calls the webhook endpoint.

  • Kafka cluster credentials. The following lists the different ways you can provide credentials.

    • Enter an existing service account resource ID.

    • Create a Confluent Cloud service account for the connector. Make sure to review the ACL entries required in the service account documentation. Some connectors have specific ACL requirements.

    • Create a Confluent Cloud API key and secret. To create a key and secret, you can use confluent api-key create or you can autogenerate the API key and secret directly in the Cloud Console when setting up the connector.

Using the Confluent Cloud Console

Step 1: Launch your Confluent Cloud cluster

To create and launch a Kafka cluster in Confluent Cloud, see Create a kafka cluster in Confluent Cloud.

Step 2: Add a connector

In the left navigation menu, click Connectors. If you already have connectors in your cluster, click + Add connector.

Step 3: Select your connector

Click the Webhook Source connector card.

Webhook Source Connector Card

Step 4: Enter the connector details

Configure the connector using the Confluent Cloud Console.

Note

  • Ensure you have all your prerequisites completed.

  • An asterisk ( * ) designates a required entry.

At the Add Webhook Source Connector screen, complete the following:

  1. In the Topic name field, enter the Kafka topic to write records to.

  2. To route records to different topics based on the request, select a Topic routing mode of HEADER or JSON_FIELD, and use a placeholder in the Topic name field. For more information, see Topic routing.

  3. Click Continue.

  1. Select Service account to provide Kafka cluster credentials for the connector, then select an existing service account resource ID, or create a new one.

    Note

    The Webhook Source connector supports only service accounts for Kafka authentication.

  2. Click Continue.

  1. Configure the authentication properties:

    Authentication with Webhook

    • Authentication Mode: Specifies the authentication mechanism you use to securely push data to Confluent Cloud.

  2. Click Continue.

Note

Configuration properties that are not shown in the Cloud Console use the default values. For all property values and definitions, see Configuration Properties.

Output messages

  • Select output record value format: Sets the output Kafka record value format. Valid entries are AVRO, JSON_SR, or PROTOBUF.

Schema Config

  • Schema enforcement mode: Controls how the connector derives a Kafka Connect value schema for incoming records. NONE: each record gets its own schema, independently inferred from that record’s fields (the connector treats undeclared fields as optional strings). EVOLVE: the connector additively grows a single schema per topic as new optional fields appear and persists it in Schema Registry so the schema converges across tasks and survives restarts. EVOLVE requires value.converter.value.subject.name.strategy to be set to TopicNameStrategy. EVOLVE is not supported when output.data.format is PROTOBUF or when CSFLE or CSPE is enabled. In those cases, set this property to NONE. When CSFLE or CSPE is enabled, pre-register the schema on the Kafka topic, because the connector does not have permission to create or update schemas.

Data encryption

  • Enable Client-Side Field Level Encryption for data encryption. Specify a Service Account to access the Schema Registry and associated encryption rules or keys with that schema. For more information on CSFLE or CSPE setup, see Manage encryption for connectors.

Show advanced configurations
  • Schema context: Select a schema context to use for this connector, if using a schema-based data format. This property defaults to the Default context, which configures the connector to use the default schema set up for Schema Registry in your Confluent Cloud environment. A schema context allows you to use separate schemas (like schema sub-registries) tied to topics in different Kafka clusters that share the same Schema Registry environment. For example, if you select a non-default context, a Source connector uses only that schema context to register a schema and a Sink connector uses only that schema context to read from. For more information about setting up a schema context, see What are schema contexts and when should you use them?.

Additional Configs

  • Value Converter Decimal Format: Specifies the JSON or JSON_SR serialization format for Connect DECIMAL logical type values with two allowed literals: BASE64 to serialize DECIMAL logical types as base64 encoded binary data, and NUMERIC to serialize DECIMAL logical type values in JSON or JSON_SR as a number representing the decimal value.

  • Key Converter Schema ID Serializer: The class name of the schema ID serializer for keys. This is used to serialize schema IDs in the message headers.

  • Behavior on error: Specifies the connector’s behavior when a webhook request is invalid. A webhook request can be invalid if the body cannot be parsed, it contains no valid message, the content type is not supported, or the destination topic cannot be resolved. In both modes the request is rejected with a 4xx error response. The error is logged and, if an error topic is configured, the request is reported to the error topic. FAIL also fails the task. LOG keeps the task running, so a bad request does not stop ingestion for the other senders. A record that is accepted but then fails while being converted, for example because of a schema conflict, still fails the task in both modes. Authentication failures, authorization failures, and failures on the connector side (queue full, shutdown, commit failures, and internal errors) never fail the task regardless of this setting. With FAIL and acknowledgment disabled, requests that were already accepted but not yet processed can be lost when the task fails.

  • Value Converter Reference Subject Name Strategy: Sets the subject reference name strategy for values. Valid entries are DefaultReferenceSubjectNameStrategy or QualifiedReferenceSubjectNameStrategy. You can use this strategy only with PROTOBUF format; the default strategy is DefaultReferenceSubjectNameStrategy.

  • Value Converter Connect Meta Data: Enables the Connect converter to add its metadata to the output schema. Applies to Avro converters.

  • Value Converter Value Subject Name Strategy: Determines how to construct the subject name under which the value schema is registered with Schema Registry.

  • Key Converter Key Subject Name Strategy: Determines how to construct the subject name for key schema registration.

  • Value Converter Ignore Default For Nullables: When set to true, this property ensures that the corresponding record in Kafka is null, instead of showing the default column value. Applies to the AVRO, PROTOBUF, and JSON_SR converters.

  • Value Converter Schema ID Serializer: The class name of the schema ID serializer for values. This is used to serialize schema IDs in the message headers.

Auto-restart policy

  • Enable Connector Auto-restart: Enables the auto-restart behavior of the connector and its task in the event of user-actionable errors. Defaults to true, enabling the connector to automatically restart in case of user-actionable errors. Set this property to false to disable auto-restart for failed connectors. If disabled, you must manually restart the connector.

Transforms

For all property values and definitions, see Configuration Properties.

  1. Click Continue.

  1. Enter the number of tasks for the connector to use in the Tasks field.

    Note

    The connector requires a minimum of two tasks.

  2. Click Continue.

  1. Verify the connection details.

  2. Click Launch.

    The connector status changes from Provisioning to Running.

Step 5: Check the Kafka topic

After the connector status shows Running, copy the webhook endpoint URL shown on the connector’s page in the Cloud Console. Register this URL with the upstream system that sends records to the connector. For example, to register the endpoint with Zendesk:

  1. Copy the endpoint URL shown on the connector page.

  2. In Zendesk, go to Admin Center > Apps and integrations > Webhooks > Create webhook.

  3. Paste the endpoint URL into the Endpoint URL field and set the request method to POST.

  4. Set the authentication to Basic authentication, and enter the webhook API key as the username and the webhook API secret as the password.

  5. Save the webhook and send a test request.

Note

The endpoint URL changes if you recreate the connector.

Send a test request to the endpoint, as described in How to use the endpoint, and verify that the connector writes the record to the configured topic.

For more information and examples to use with the Confluent Cloud API for Connect, see the Confluent Cloud API for Connect Usage Examples section.

By default, the connector writes records it can’t process or commit to an error topic named error-<lcc-id> (for example, error-lcc-abcd), where <lcc-id> is the connector’s logical cluster ID. You can change this name with the reporter.error.topic.name property. If you set a custom name that doesn’t start with error-, the service account needs CREATE and WRITE permissions on that topic.

Using the Confluent CLI

Complete the following steps to set up and run the connector using the Confluent CLI.

Note

Make sure you have all your prerequisites completed.

Step 1: List the available connectors

Enter the following command to list available connectors:

confluent connect plugin list

Step 2: List the connector configuration properties

Enter the following command to show the connector configuration properties:

confluent connect plugin describe <connector-plugin-name>

The command output shows the required and optional configuration properties.

Step 3: Create the connector configuration file

Create a JSON file that contains the connector configuration properties. The following example shows required and optional connector properties.

{
  "name": "WebhookSource_0",
  "config": {
    "connector.class": "WebhookSource",
    "name": "WebhookSource_0",
    "kafka.auth.mode": "SERVICE_ACCOUNT",
    "kafka.service.account.id": "<my-service-account-id>",
    "kafka.topic": "webhook-events",
    "webhook.topic.routing.mode": "NONE",
    "webhook.auth.mode": "API_KEY_SECRET",
    "webhook.api.key": "<my-webhook-api-key>",
    "webhook.api.secret": "<my-webhook-api-secret>",
    "output.data.format": "JSON_SR",
    "schema.enforcement.mode": "EVOLVE",
    "tasks.max": "2"
  }
}

Note the following property definitions:

  • "name": Sets a name for your new connector.

  • "connector.class": Identifies the connector plugin name.

  • "kafka.auth.mode": Identifies the connector authentication mode you want to use. This connector supports only SERVICE_ACCOUNT. Use a service account and specify its Resource ID in the property kafka.service.account.id=<service-account-resource-ID>, as shown in the example configuration (above). To list the available service account resource IDs, use the following command:

    confluent iam service-account list
    

    For example:

    confluent iam service-account list
    
       Id     | Resource ID |       Name        |    Description
    +---------+-------------+-------------------+-------------------
       123456 | sa-l1r23m   | sa-1              | Service account 1
       789101 | sa-l4d56p   | sa-2              | Service account 2
    
  • "kafka.topic": Identifies the Kafka topic to write records to. If webhook.topic.routing.mode is HEADER or JSON_FIELD, use this property as a template containing a placeholder, for example, events_${entityType}. For more information, see Topic routing.

  • "webhook.topic.routing.mode": Routing mode for determining the target Kafka topic. Defaults to NONE. For more information, see Topic routing.

  • "webhook.auth.mode": Specifies the authentication mechanism used to secure the webhook endpoint. Defaults to API_KEY_SECRET.

  • "webhook.api.key" and "webhook.api.secret": The existing Confluent Cloud API key and secret that authenticate requests to the webhook endpoint. The API key must have Global scope and belong to the service account you selected for Kafka access.

  • "output.data.format": Sets the output Kafka record value format. Valid entries are AVRO, JSON_SR, or PROTOBUF. If you use PROTOBUF, set schema.enforcement.mode to NONE.

  • "schema.enforcement.mode": Controls how the connector derives a schema for incoming records. Defaults to EVOLVE. For more information, see Schema evolution.

Note

To enable CSFLE or CSPE for data encryption, specify the following properties:

  • csfle.enabled: Flag to indicate whether the connector honors CSFLE or CSPE rules.

  • sr.service.account.id: A Service Account to access the Schema Registry and associated encryption rules or keys with that schema.

For more information on CSFLE or CSPE setup, see Manage encryption for connectors.

  • "tasks.max": Maximum tasks for the connector to use. The connector requires a minimum of two tasks.

SMTs: For details about adding SMTs using the Confluent CLI, see the Single Message Transformations documentation.

For all property values and descriptions, see Configuration Properties.

Step 4: Load the configuration file and create the connector

Enter the following command to load the configuration and start the connector:

confluent connect cluster create --config-file <file-name>.json

For example:

confluent connect cluster create --config-file webhook-source-config.json

Example output:

Created connector WebhookSource_0 lcc-ix4dl

Step 5: Check the connector status

Enter the following command to check the connector status:

confluent connect cluster list

Example output:

ID          |          Name            | Status  | Type
+-----------+--------------------------+---------+--------+
lcc-ix4dl   | WebhookSource_0          | RUNNING | source

Step 6: Check the Kafka topic

Send a test request to the endpoint, as described in How to use the endpoint, and verify that the connector writes the record to the configured topic.

For more information and examples to use with the Confluent Cloud API for Connect, see the Confluent Cloud API for Connect Usage Examples section.

By default, the connector writes records it can’t process or commit to an error topic named error-<lcc-id> (for example, error-lcc-abcd), where <lcc-id> is the connector’s logical cluster ID. You can change this name with the reporter.error.topic.name property. If you set a custom name that doesn’t start with error-, the service account needs CREATE and WRITE permissions on that topic.

How to use the endpoint

After you launch the connector, send records to Kafka by making an HTTPS POST request to the webhook endpoint. Authenticate each request with HTTP Basic authentication, using the API key and secret you configured for the connector.

A successful request returns a response like the following:

{
  "status": "success",
  "status_code": 200,
  "message": "Records successfully committed to Kafka.",
  "timestamp": 1789461533555,
  "records_processed": 1
}

To send more than one record in a single call, submit a JSON array of objects in the request body. The connector processes every object in the array and returns a single acknowledgement for the entire batch.

Topic routing

Use the kafka.topic and webhook.topic.routing.mode properties together to control which Kafka topic the connector writes each record to.

webhook.topic.routing.mode supports the following values:

  • NONE (default): All records go to the fixed topic specified in kafka.topic.

  • HEADER: The connector resolves the topic from an HTTP header, using a placeholder in kafka.topic, for example, prefix_${X-Kafka-Topic}. With this setting, a request that includes the header X-Kafka-Topic: orders is written to the topic prefix_orders.

  • JSON_FIELD: The connector resolves the topic from a field in the JSON request body, using a placeholder in kafka.topic, for example, events_${entityType}. With this setting, a request with the body {"entityType": "user"} is written to the topic events_user. For a nested field, use dot notation, for example, data_${metadata.type}. With this setting, the body {"metadata": {"type": "click"}} is written to the topic data_click. To match a literal dot in a field name, escape it as \., for example, ${a\.b} to read a field literally named a.b.

Schema evolution

The connector controls how it derives the schema for the records it produces using the schema.enforcement.mode property. This is useful when the shape of incoming records changes over time, for example, when an upstream system adds new fields.

schema.enforcement.mode supports the following values:

  • NONE: The connector infers the schema for each record independently and treats undeclared fields as optional strings. The connector does not attempt to keep a single, consistent schema across records.

  • EVOLVE (default): The connector maintains a single, evolving schema per topic, using Schema Registry as the source of truth. As new fields appear in incoming records, the connector adds them to the schema as optional fields and registers a new schema version. The connector emits a field that is absent from a later record as null rather than dropping it, so the topic schema grows additively and stays consistent across tasks and connector restarts.

Use EVOLVE when you want a stable, additive schema for a topic as the incoming records evolve.

Prerequisites for EVOLVE mode

To use EVOLVE, the following must be true:

  • output.data.format is set to AVRO or JSON_SR. PROTOBUF is not supported with EVOLVE.

  • value.converter.value.subject.name.strategy is set to TopicNameStrategy (the default).

  • If output.data.format is JSON_SR, value.converter.object.additional.properties is set according to the compatibility mode of the topic’s subject. The default, false, works with BACKWARD and FULL compatibility. If the subject uses FORWARD compatibility, set it to true. This lets the connector additively register new fields it hasn’t seen before.

  • Neither CSFLE nor CSPE is enabled. When you enable CSFLE or CSPE, the schema must already be registered on the Kafka topic, because the connector does not have permission to create or update schemas for that topic.

Notes and limitations

  • Schema evolution depends on the Schema Registry compatibility mode configured for the topic’s subject. When the connector registers an evolved schema, Schema Registry checks the new schema against the subject’s compatibility type and rejects the change if incompatible, so the compatibility mode determines which evolutions succeed. The connector’s changes are additive (the connector adds new fields as optional fields), which Schema Registry accepts under BACKWARD (the Schema Registry default), FORWARD, and FULL compatibility. For JSON_SR, FORWARD compatibility requires value.converter.object.additional.properties to be set to true. The default, false, works with BACKWARD and FULL compatibility. For the changes each compatibility type allows, see Schema Evolution and Compatibility for Schema Registry on Confluent Cloud and Compatibility types. To change the compatibility mode for a subject, see Change subject level (per topic) compatibility mode of a schema.

Error codes and responses

This section describes the HTTP responses the webhook endpoint returns when a request fails, how the connector handles an invalid record in a single request or a batch, and how the connector reports failures to the error topic.

Response body

Every response is JSON with the same fields. The records_processed and error_details fields appear only when they apply.

Success:

{
  "status": "success",
  "status_code": 200,
  "message": "Records successfully committed to Kafka.",
  "timestamp": 1730000000000,
  "records_processed": 3
}

Error:

{
  "status": "error",
  "status_code": 400,
  "message": "Invalid payload format.",
  "timestamp": 1730000000000,
  "error_details": "<failure_details>"
}

A 200 response means that the connector committed every record in the request to Kafka. The connector never returns a success response for a failed request.

HTTP status codes

Code

Meaning

200

The connector committed all records in the request to Kafka. records_processed is the number of records in the request.

400

The request body is not valid JSON, or is not a JSON object or an array of JSON objects.

401

Authentication failed. The request has a missing or invalid credential.

403

The caller authenticated but does not have permission to send data to this connector. For example, the service account does not match the connector’s, or the caller’s IP address is not allowed.

415

The Content-Type is not application/json. The endpoint accepts only JSON.

422

The request is well-formed JSON, but the connector cannot process it. This happens when the array is empty or contains no valid record, when the routing header or JSON field does not resolve to a valid topic name, or when the connector cannot convert a record to the output format. The connector commits no record from the request.

500

An unexpected error occurred, or Kafka did not confirm the commit of the records within the response timeout, which is five seconds by default.

503

The connector is temporarily unable to accept the request, for example while it restarts or rebalances, or when it reaches capacity. Where the response includes a Retry-After header, wait that long before you retry.

A 400, 415, or 422 response indicates a problem with the content of the request. Sending the same request again returns the same error, so correct the request first. 500 and 503 responses are generally temporary, so retry them after a delay. For the effect of retrying, see Batch requests.

Single request

When the record in a request is not valid, the connector rejects the request with an error response. It does not return a success response, and it does not write the record to the destination topic. The failed request is also written to the error topic. The sender gets the error response in both cases.

Problem

Response

The body is not valid JSON

400

The Content-Type is not JSON

415

The routing header is missing, or the routing field is missing, null, or not a valid topic name

422

The connector cannot convert the record to the output format

422

Routing errors apply when webhook.topic.routing.mode is HEADER or JSON_FIELD.

Schema conflicts. The connector handles two kinds of schema problems differently:

  • A record that the connector cannot convert to the output format is rejected with 422, as shown in the table.

  • A conflict between the types of the same field across different records (for example, a number in one record and a string in another) is detected later in the connector pipeline. The connector accepts the request and returns a success response, and then the connector task fails.

Keep each field’s type consistent across records. For how the connector handles added fields, see Schema evolution.

Batch requests

The connector processes a request that contains a JSON array of records as a single unit. The connector commits the records from one request together or not at all.

  • If any record in the array fails validation, routing, or conversion, the connector rejects the whole request and commits none of its records. Records from other requests are not affected.

  • The connector sends one response for the whole request after it commits all records. records_processed is the number of records in the array. The response does not include a per-record result.

  • A 4xx response means that the connector committed none of the records in the request. Correct the request before you send it again.

Retries and duplicate records. If the connector cannot confirm that it committed a request, it returns a 5xx response. For example, the connector might be restarting, or Kafka might not confirm the commit within the response timeout. In these cases, Kafka can still write part of the request, or the entire request, after you receive the error. On error responses, records_processed is not a reliable count of committed records. If your sender retries the whole request, Kafka can receive duplicate records. To handle this, include a unique event ID in each record so that your consumers can discard duplicates.

Error topic

The connector writes information about a failed request to an error topic.

  • Topic name: The default name is error-<lcc-id>, for example error-lcc-abcd, where <lcc-id> is the connector’s logical cluster ID. You can change the name with the reporter.error.topic.name property.

  • Which requests: The connector writes failures of requests that reach it, including invalid payloads, Content-Type and routing errors, unconvertible records, commit timeouts and failures, and temporary unavailability. Requests that fail authentication are not written to the error topic.

  • Record value: The record value is the original request body, so that you can inspect and resend it.

  • Record headers: Each record includes the following headers:

    Header

    Description

    error_type

    A short category for the failure, for example payload_parse, unsupported_content_type, no_valid_message, topic_resolution, unprocessable_record, commit_timeout, commit_failed, shutdown, or authorization_denied.

    http_status

    The HTTP status code returned to the sender.

    error_reason

    A description of the failure. The connector might omit this header.

    payload_omitted

    The connector includes this header when it omits the request body from the record.

  • CSFLE and CSPE: When you enable CSFLE or CSPE, the connector does not send the request payload to the error topic, because it might contain data that must stay encrypted. The record value is empty, the connector sets payload_omitted to csfle_enabled, and error_reason contains only a general description of the failure.

  • Unauthorized requests: If the request failed authorization, the record contains a short message instead of the payload, and payload_omitted is set accordingly.

Relationship to behavior.on.error

The behavior.on.error property controls what the connector does with its task when a request is invalid. A request is invalid when the connector cannot parse the body, the request contains no valid record, the connector does not support the Content-Type, or the connector cannot resolve the destination topic.

Value

Behavior

LOG (default)

The connector rejects the request with an error response, logs the error, and writes it to the error topic. The task keeps running, so one bad request does not stop ingestion for other senders.

FAIL

The connector does the same, and then fails the task. Requests that arrive while the task is failing receive a 503 response.

In both modes, the sender receives the error response and the connector writes the failure to the error topic. Authentication and authorization failures, temporary unavailability, commit failures, and internal errors never fail the task, regardless of this setting.

Limits

  • Request size: The connector does not enforce its own maximum request size. The Kafka record size limit of your cluster type applies to each record. The connector cannot produce a record that exceeds the limit, and the connector goes into a DEGRADED state until it no longer receives that record. Keep each event under your cluster’s maximum message size.

  • Records per request: The connector does not set a fixed limit on the number of records in an array. The connector buffers each request in memory until Kafka confirms it, so a large request, or a burst of concurrent requests, can cause a 503 response. If this happens, send smaller batches and retry.

Configuration Properties

Use the following configuration properties with the fully managed connector. For self-managed connector property definitions and other details, see the connector docs in Self-managed connectors for Confluent Platform.

Which topic do you want to send data to?

kafka.topic

Identifies the topic name to write the data to.

  • Type: string

  • Importance: high

webhook.topic.routing.mode

Routing mode for determining the target Kafka topic. NONE: all records go to the fixed topic specified in kafka.topic. HEADER: the connector resolves the topic from an HTTP header specified as a placeholder in kafka.topic, for example, prefix_${X-Kafka-Topic}. JSON_FIELD: the connector resolves the topic per record from a JSON field specified as a placeholder in kafka.topic, for example, events_${entityType}. For nested fields, use dot notation, for example, data_${metadata.type}. Use \. for literal dots in field names.

  • Type: string

  • Default: NONE

  • Importance: high

Authentication with Webhook

webhook.auth.mode

Specifies the authentication mechanism you use to securely push data to Confluent Cloud.

  • Type: string

  • Default: API_KEY_SECRET

  • Importance: high

How should we connect to your data?

name

Sets a name for your connector.

  • Type: string

  • Valid Values: A string at most 64 characters long

  • Importance: high

Kafka Cluster credentials

kafka.auth.mode

Kafka Authentication mode. It can be one of KAFKA_API_KEY or SERVICE_ACCOUNT. It defaults to KAFKA_API_KEY mode, whenever possible.

  • Type: string

  • Valid Values: SERVICE_ACCOUNT, KAFKA_API_KEY

  • Importance: high

kafka.api.key

Kafka API Key. Required when kafka.auth.mode==KAFKA_API_KEY.

  • Type: password

  • Importance: high

kafka.service.account.id

The Service Account that will be used to generate the API keys to communicate with Kafka Cluster.

  • Type: string

  • Importance: high

kafka.api.secret

Secret associated with Kafka API key. Required when kafka.auth.mode==KAFKA_API_KEY.

  • Type: password

  • Importance: high

Number of tasks for this connector

tasks.max

Maximum number of tasks for the connector.

  • Type: int

  • Default: 2

  • Valid Values: [2,…]

  • Importance: high

Schema Config

schema.enforcement.mode

Controls how the connector derives a Kafka Connect value schema for incoming records. NONE: each record gets its own schema, independently inferred from that record’s fields (the connector treats undeclared fields as optional strings). EVOLVE: the connector additively grows a single schema per topic as new optional fields appear and persists it in Schema Registry so the schema converges across tasks and survives restarts. EVOLVE requires value.converter.value.subject.name.strategy to be set to TopicNameStrategy. EVOLVE is not supported when output.data.format is PROTOBUF; set this property to NONE for PROTOBUF output.

  • Type: string

  • Default: EVOLVE

  • Importance: high

schema.context.name

Add a schema context name. A schema context represents an independent scope in Schema Registry. It is a separate sub-schema tied to topics in different Kafka clusters that share the same Schema Registry instance. If not used, the connector uses the default schema configured for Schema Registry in your Confluent Cloud environment.

  • Type: string

  • Default: default

  • Importance: medium

Output messages

output.data.format

Sets the output Kafka record value format. Valid entries are AVRO, JSON_SR, or PROTOBUF. Please configure Confluent Cloud Schema Registry.

  • Type: string

  • Default: JSON_SR

  • Valid Values: AVRO, JSON_SR, PROTOBUF

  • Importance: high

Additional Configs

header.converter

The converter class for the headers. This is used to serialize and deserialize the headers of the messages.

  • Type: string

  • Importance: low

producer.override.compression.type

The compression type for all data generated by the producer. Valid values are none, gzip, snappy, lz4, and zstd.

  • Type: string

  • Importance: low

producer.override.linger.ms

The producer groups together any records that arrive in between request transmissions into a single batched request. More details can be found in the documentation: https://docs.confluent.io/platform/current/installation/configuration/producer-configs.html#linger-ms.

  • Type: long

  • Valid Values: [100,…,1000]

  • Importance: low

value.converter.allow.optional.map.keys

Allow optional string map key when converting from Connect Schema to Avro Schema. Applicable for Avro Converters.

  • Type: boolean

  • Importance: low

value.converter.auto.register.schemas

Specify if the Serializer should attempt to register the Schema.

  • Type: boolean

  • Importance: low

value.converter.connect.meta.data

Allow the Connect converter to add its metadata to the output schema. Applicable for Avro Converters.

  • Type: boolean

  • Importance: low

value.converter.enhanced.avro.schema.support

Enable enhanced schema support to preserve package information and Enums. Applicable for Avro Converters.

  • Type: boolean

  • Importance: low

value.converter.enhanced.protobuf.schema.support

Enable enhanced schema support to preserve package information. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.flatten.unions

Whether to flatten unions (oneofs). Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.generate.index.for.unions

Whether to generate an index suffix for unions. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.generate.struct.for.nulls

Whether to generate a struct variable for null values. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.int.for.enums

Whether to represent enums as integers. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.latest.compatibility.strict

Verify latest subject version is backward compatible when use.latest.version is true.

  • Type: boolean

  • Importance: low

value.converter.optional.for.nullables

Whether nullable fields should be specified with an optional label. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.optional.for.proto2

Whether proto2 optionals are supported. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.scrub.invalid.names

Whether to scrub invalid names by replacing invalid characters with valid characters. Applicable for Avro and Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.use.latest.version

Use latest version of schema in subject for serialization when auto.register.schemas is false.

  • Type: boolean

  • Importance: low

value.converter.use.optional.for.nonrequired

Whether to set non-required properties to be optional. Applicable for JSON_SR Converters.

  • Type: boolean

  • Importance: low

value.converter.wrapper.for.nullables

Whether nullable fields should use primitive wrapper messages. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

value.converter.wrapper.for.raw.primitives

Whether a wrapper message should be interpreted as a raw primitive at root level. Applicable for Protobuf Converters.

  • Type: boolean

  • Importance: low

behavior.on.error

Specifies the connector’s behavior when a webhook request is invalid. A webhook request can be invalid if the body cannot be parsed, it contains no valid message, the content type is not supported, or the destination topic cannot be resolved. In both modes the request is rejected with a 4xx error response. The error is logged and, if an error topic is configured, the request is reported to the error topic. FAIL also fails the task. LOG keeps the task running, so a bad request does not stop ingestion for the other senders. A record that is accepted but then fails while being converted, for example because of a schema conflict, still fails the task in both modes. Authentication failures, authorization failures, and failures on the connector side (queue full, shutdown, commit failures, and internal errors) never fail the task regardless of this setting. With FAIL and acknowledgment disabled, requests that were already accepted but not yet processed can be lost when the task fails.

  • Type: string

  • Default: LOG

  • Importance: low

key.converter.key.schema.id.serializer

The class name of the schema ID serializer for keys. This is used to serialize schema IDs in the message headers.

  • Type: string

  • Default: io.confluent.kafka.serializers.schema.id.PrefixSchemaIdSerializer

  • Importance: low

key.converter.key.subject.name.strategy

How to construct the subject name for key schema registration.

  • Type: string

  • Default: TopicNameStrategy

  • Importance: low

value.converter.decimal.format

Specify the JSON/JSON_SR serialization format for Connect DECIMAL logical type values with two allowed literals:

BASE64 to serialize DECIMAL logical types as base64 encoded binary data and

NUMERIC to serialize Connect DECIMAL logical type values in JSON/JSON_SR as a number representing the decimal value.

  • Type: string

  • Default: BASE64

  • Importance: low

value.converter.flatten.singleton.unions

Whether to flatten singleton unions. Applicable for Avro and JSON_SR Converters.

  • Type: boolean

  • Default: false

  • Importance: low

value.converter.ignore.default.for.nullables

When set to true, this property ensures that the corresponding record in Kafka is NULL, instead of showing the default column value. Applicable for AVRO,PROTOBUF and JSON_SR Converters.

  • Type: boolean

  • Default: false

  • Importance: low

value.converter.object.additional.properties

Whether to allow additional properties for object schemas. Applicable for JSON_SR Converters.

  • Type: boolean

  • Default: false

  • Importance: low

value.converter.reference.subject.name.strategy

Set the subject reference name strategy for value. Valid entries are DefaultReferenceSubjectNameStrategy or QualifiedReferenceSubjectNameStrategy. Note that the subject reference name strategy can be selected only for PROTOBUF format with the default strategy being DefaultReferenceSubjectNameStrategy.

  • Type: string

  • Default: DefaultReferenceSubjectNameStrategy

  • Importance: low

value.converter.value.schema.id.serializer

The class name of the schema ID serializer for values. This is used to serialize schema IDs in the message headers.

  • Type: string

  • Default: io.confluent.kafka.serializers.schema.id.PrefixSchemaIdSerializer

  • Importance: low

value.converter.value.subject.name.strategy

Determines how to construct the subject name under which the value schema is registered with Schema Registry.

  • Type: string

  • Default: TopicNameStrategy

  • Importance: low

reporter.error.topic.name

The name of the topic to produce a record to when a webhook event fails to be processed or committed. Defaults to ‘error-${connector}’ if not set. You can provide ${connector} in the value to use it as a placeholder for the logical cluster ID.

  • Type: string

  • Default: error-${connector}

  • Importance: low

Which topics do you want to get data from?

reporter.result.topic.name

The name of the topic to produce records to after successfully processing a sink record. Defaults to ‘success-${connector}’ if not set. You can provide ${connector} in the value to use it as a placeholder for the logical cluster ID.

  • Type: string

  • Default: success-${connector}

  • Importance: low

Auto-restart policy

auto.restart.on.user.error

Enable connector to automatically restart on user-actionable errors.

  • Type: boolean

  • Default: true

  • Importance: medium

Next Steps

For an example that shows fully managed Confluent Cloud connectors in action with Confluent Cloud for Apache Flink, see the Cloud ETL Demo. This example also shows how to use Confluent CLI to manage your resources in Confluent Cloud.

../_images/topology.png