how can i add a list of query parameters while cre...
# ask-ai
h
how can i add a list of query parameters while createing custom connector
k
To add a list of query parameters when creating a custom connector in Airbyte using the Connector Builder UI, follow these steps: 1. Scroll to the "Query Parameters" section in your stream configuration. 2. Add a new query parameter for each key-value pair you want to include. 3. For dynamic or user-supplied values, click the user icon in the value input and create/select a user input. This allows the value to be set by the user when configuring the source. The value will be referenced as
{{ config['your_input_name'] }}
in the parameter field. For example, to make a query parameter configurable by the user: - Set the key (e.g.,
base
) - Click the user icon in the value field, create a new user input (e.g., "Base"), and click "Create" - The value will now be set as
{{ config['base'] }}
This approach can be repeated for each query parameter you want to add. You can use this method to add a list of parameters, each with its own key and value, and make them configurable if needed. This is demonstrated in the Airbyte documentation for making streams configurable via query parameters [Making the stream configurable](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/tutorial#making-the-stream-configurable). Note: If you need to inject more complex values (such as arrays or JSON objects) as a single query parameter, be aware that Airbyte may not always handle encoding as expected, especially for JSON arrays. There are known issues with how Airbyte encodes array values in query parameters, which may require workarounds or may not be fully supported yet. See the discussion in [this GitHub issue](https://github.com/airbytehq/airbyte/issues/58585) for more details. For advanced cases (e.g., combining multiple values, injecting into the URL path, or applying conditional logic), you can use Jinja expressions in the generic parameter section at the bottom of the stream configuration form. This allows you to freely configure query parameters, headers, and JSON body properties using available variables and expressions [Custom parameter injection](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/partitioning#custom-parameter-injection).