Stav Hans
07/22/2025, 7:59 AMkapa.ai
07/22/2025, 7:59 AMjinja { "query": "...", "variables": { {% if next_page_token %} "cursor": "{{ next_page_token }}" {% endif %} } }
This would only include the "cursor" variable in the request if next_page_token is set (i.e., on paginated requests after the first one). You can find more about this approach in the documentation under "Custom parameter injection" for the Connector Builder UI, which describes how to use Jinja and available variables to handle cases where conditional logic is needed in request construction. If the UI does not provide enough flexibility for your use case, you may need to use the low-code or Python CDK for full control over request construction and pagination logic [Custom parameter injection](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/partitioning#custom-parameter-injection). In summary: - Disable default injection for the variable in question. - Use the generic parameter/body section with Jinja to conditionally include the variable based on pagination state. If you need more advanced logic than what Jinja templating allows in the UI, consider switching to the low-code or Python CDK for your connector implementation.Stav Hans
07/24/2025, 9:27 AMkapa.ai
07/24/2025, 9:27 AMkapa.ai
07/24/2025, 9:28 AM