diff --git a/sim/app/w/[id]/components/control-bar/components/deployment-controls/deployment-controls.tsx b/sim/app/w/[id]/components/control-bar/components/deployment-controls/deployment-controls.tsx index 0499b572ef..e2e8484d5b 100644 --- a/sim/app/w/[id]/components/control-bar/components/deployment-controls/deployment-controls.tsx +++ b/sim/app/w/[id]/components/control-bar/components/deployment-controls/deployment-controls.tsx @@ -101,7 +101,7 @@ export function DeploymentControls({ content: endpoint, }, { - label: 'API Key', + label: 'x-api-key', content: apiKey, }, { @@ -134,7 +134,7 @@ export function DeploymentControls({ // Fetch API key from the existing notification const apiKey = - apiNotification.options?.sections?.find((s) => s.label === 'API Key')?.content || '' + apiNotification.options?.sections?.find((s) => s.label === 'x-api-key')?.content || '' createApiNotification( needsRedeployment diff --git a/sim/app/w/[id]/components/notifications/notifications.tsx b/sim/app/w/[id]/components/notifications/notifications.tsx index 261a471e34..1daf6e6809 100644 --- a/sim/app/w/[id]/components/notifications/notifications.tsx +++ b/sim/app/w/[id]/components/notifications/notifications.tsx @@ -397,7 +397,8 @@ export function NotificationAlert({ notification, isFading, onHide }: Notificati {/* Optional sections with copyable content */} {options?.sections?.map((section, index) => { // Get the API key from the sections to use in curl command formatting - const apiKey = options.sections?.find((s) => s.label === 'API Key')?.content || '' + const apiKey = + options.sections?.find((s) => s.label === 'x-api-key')?.content || '' return (
@@ -407,7 +408,7 @@ export function NotificationAlert({ notification, isFading, onHide }: Notificati {/* Copyable code block */}
- {section.label === 'API Key' ? ( + {section.label === 'x-api-key' ? ( <>
 s.label === 'API Key')?.content || ''
-                            const endpoint = `${process.env.NEXT_PUBLIC_APP_URL}/api/workflows/${workflowId}/execute`
-
-                            // Get input format example for curl command
-                            const inputFormatExample = ''
-
                             // Update deployment status in the store (resets needsRedeployment flag)
                             updateDeploymentStatus(
                               data.isDeployed,