The GET /api/v1/destination-types endpoint always returns the custom_headers field in config_fields for webhook providers, even when PORTAL_ENABLE_WEBHOOK_CUSTOM_HEADERS is false. Currently, filtering only happens client-side in the Portal UI. The backend schema should omit the field entirely when the feature is disabled so API consumers don't see an unsupported field advertised in the schema.
The
GET /api/v1/destination-typesendpoint always returns thecustom_headersfield inconfig_fieldsfor webhook providers, even whenPORTAL_ENABLE_WEBHOOK_CUSTOM_HEADERSisfalse. Currently, filtering only happens client-side in the Portal UI. The backend schema should omit the field entirely when the feature is disabled so API consumers don't see an unsupported field advertised in the schema.