diff --git a/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx b/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx index 27446cd5b..1de0c6c7c 100644 --- a/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx +++ b/src/frontend/src/modals/apiModal/utils/get-curl-code.tsx @@ -1,3 +1,4 @@ +import { ENABLE_DATASTAX_LANGFLOW } from "@/customization/feature-flags"; import useFlowStore from "@/stores/flowStore"; import { GetCodeType } from "@/types/tweaks"; @@ -62,8 +63,12 @@ export function getCurlWebhookCode({ return `curl -X POST \\ "${baseUrl}" \\ - -H 'Content-Type: application/json'\\${ - !isAuth ? `\n -H 'x-api-key: '\\` : "" + -H 'Content-Type: application/json' \\${ + isAuth ? `\n -H 'x-api-key: ' \\` : "" + }${ + ENABLE_DATASTAX_LANGFLOW + ? `\n -H 'Authorization: Bearer ' \\` + : "" } -d '{"any": "data"}' `.trim();