Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-2778: Fix postprocessing webhook URL not being saved in exported APIs (#1519)

Deepak K845b5310e737
diff --git a/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py b/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py
index efd97504c..49fd66cb3 100644
--- a/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py
+++ b/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py
@@ -1551,6 +1551,8 @@ class PromptStudioHelper:
"eval_security_pii": prompt.eval_security_pii,
"eval_guidance_toxicity": prompt.eval_guidance_toxicity,
"eval_guidance_completeness": prompt.eval_guidance_completeness,
+ "enable_postprocessing_webhook": prompt.enable_postprocessing_webhook,
+ "postprocessing_webhook_url": prompt.postprocessing_webhook_url,
}
@staticmethod
diff --git a/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py b/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py
index 02107e794..b40a2f249 100644
--- a/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py
+++ b/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py
@@ -346,11 +346,9 @@ class PromptStudioRegistryHelper:
output[JsonSchemaKey.ENABLE_POSTPROCESSING_WEBHOOK] = (
prompt.enable_postprocessing_webhook
)
- # Do NOT export raw URLs by default to avoid leakage
- if getattr(settings, "EXPORT_WEBHOOK_URLS", False):
- output[JsonSchemaKey.POSTPROCESSING_WEBHOOK_URL] = (
- prompt.postprocessing_webhook_url
- )
+ output[JsonSchemaKey.POSTPROCESSING_WEBHOOK_URL] = (
+ prompt.postprocessing_webhook_url
+ )
# Retaining the old fields in condition
# for backward compatibility. To be removed in future.
if (