From 12f140233cbcc89cfd61f2ef2ca1b93afd55605d Mon Sep 17 00:00:00 2001 From: Dipesh Kumar Sah Date: Tue, 2 Jun 2026 15:11:58 +0545 Subject: [PATCH] fix(swagger): add addSecurityRequirements header while using swagger --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 61966fb2..ee87722b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -146,6 +146,7 @@ async function bootstrap() { .setDescription('Open Source WhatsApp API Gateway - Free, Self-Hosted HTTP API') .setVersion('0.1.6') .addApiKey({ type: 'apiKey', name: 'X-API-Key', in: 'header' }, 'X-API-Key') + .addSecurityRequirements('X-API-Key') .addTag('sessions', 'WhatsApp session management') .addTag('messages', 'Send and manage messages') .addTag('webhooks', 'Webhook configuration')