From c02888363e47022c64e4b57a6ef951cf19020bd2 Mon Sep 17 00:00:00 2001 From: Dima Grossman Date: Tue, 3 Dec 2024 23:46:30 +0200 Subject: [PATCH] fix: add sdk ref --- apps/dashboard/src/pages/api-keys.tsx | 70 +++++++++------------------ 1 file changed, 24 insertions(+), 46 deletions(-) diff --git a/apps/dashboard/src/pages/api-keys.tsx b/apps/dashboard/src/pages/api-keys.tsx index b4ab4e31b99..11cff7f2cbb 100644 --- a/apps/dashboard/src/pages/api-keys.tsx +++ b/apps/dashboard/src/pages/api-keys.tsx @@ -1,5 +1,5 @@ import { useState } from 'react'; -import { RiKey2Line, RiEyeLine, RiEyeOffLine } from 'react-icons/ri'; +import { RiKey2Line, RiEyeLine, RiEyeOffLine, RiLockStarFill, RiExternalLinkLine } from 'react-icons/ri'; import { useEnvironment } from '@/context/environment/hooks'; import { CopyButton } from '@/components/primitives/copy-button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/primitives/card'; @@ -47,14 +47,11 @@ export function ApiKeysPage() { <> API Keys}> -
-
+
+
- - - Environment Keys - - + +
@@ -119,50 +116,31 @@ export function ApiKeysPage() { - - - - - Using Your API Keys - - - -
-

Authentication

-

Add your API key to the request headers:

-
Authorization: ApiKey YOUR_API_KEY
-
-
-

SDK Usage

-
-                    {`import { Novu } from '@novu/node'; 
-
-const novu = new Novu(process.env['NOVU_SECRET_KEY']);
-
-novu.trigger('workflow-id', {
-  to: {
-    subscriberId: '123456'
-  },
-  payload: {
-
-  }
-});
-`}
-                  
-
+
+
+ +

Environment Keys

+

Copy and manage your public and private keys

+ View API Reference + + + - View Full API Reference - - - + Read about our SDKs + - - +
+