diff --git a/apps/dashboard/src/pages/api-keys.tsx b/apps/dashboard/src/pages/api-keys.tsx index 0bc8ef5b5d8..b4ab4e31b99 100644 --- a/apps/dashboard/src/pages/api-keys.tsx +++ b/apps/dashboard/src/pages/api-keys.tsx @@ -133,25 +133,21 @@ export function ApiKeysPage() {
Authorization: ApiKey YOUR_API_KEY
-

Example Request

+

SDK Usage

-                    {`fetch('https://api.novu.co/v1/notifications', {
-  method: 'POST',
-  headers: {
-    'Authorization': 'ApiKey YOUR_API_KEY',
-    'Content-Type': 'application/json'
+                    {`import { Novu } from '@novu/node'; 
+
+const novu = new Novu(process.env['NOVU_SECRET_KEY']);
+
+novu.trigger('workflow-id', {
+  to: {
+    subscriberId: '123456'
   },
-  body: JSON.stringify({
-    name: "Trigger Name",
-    to: {
-      subscriberId: "...",
-      email: "..."
-    },
-    payload: {
-      // your custom payload
-    }
-  })
-});`}
+  payload: {
+
+  }
+});
+`}