We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f0ca6 commit ab740d2Copy full SHA for ab740d2
fern/snippets/sdks/web/import-web-sdk.mdx
@@ -4,10 +4,13 @@ Import the package:
4
import Vapi from "@vapi-ai/web";
5
```
6
7
-Then, create a new instance of the Vapi class, passing your **Public Key** as a parameter to the constructor:
+Then, create a new instance of the Vapi class, passing one of the following as a parameter to the constructor:
8
+- your **Public Key**
9
+- a generated **JWT**
10
11
```javascript
-const vapi = new Vapi("your-public-key");
12
+const vapi = new Vapi("your-public-key-or-jwt");
13
14
15
You can find your public key in the [Vapi Dashboard](https://dashboard.vapi.ai/account).
16
+You can generate a JWT on the backend following [JWT Authentication](/customization/jwt-authentication) instructions.
0 commit comments