Skip to content

Commit 6a04ab8

Browse files
authored
Merge branch 'main' into fern/update-api-specs
2 parents 0052344 + 64de236 commit 6a04ab8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

fern/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ navigation:
382382
href: https://api.vapi.ai/api-json
383383

384384
redirects:
385+
- source: /customization/knowledgebase
386+
destination: /knowledgebase
387+
- source: /developer-documentation
388+
destination: /introduction
385389
- source: /documentation/general/changelog
386390
destination: /changelog
387391
- source: /api-reference/assistants/create-assistant

fern/sdk/web.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ You can start a web call by calling the `.start()` function. The `start` functio
2525
1. **a string**, representing an assistant ID
2626
2. **an object**, representing a set of assistant configs (see [Create Assistant](/api-reference/assistants/create-assistant))
2727

28+
The `start` function returns a promise that resolves to a call object. For example:
29+
30+
```javascript
31+
const call = await vapi.start(assistantId);
32+
// { "id": "bd2184a1-bdea-4d4f-9503-b09ca8b185e6", "orgId": "6da6841c-0fca-4604-8941-3d5d65f43a17", "createdAt": "2024-11-13T19:20:24.606Z", "updatedAt": "2024-11-13T19:20:24.606Z", "type": "webCall", ... }
33+
```
34+
2835
#### Passing an Assistant ID
2936

3037
If you already have an assistant that you created (either via [the Dashboard](/quickstart/dashboard) or [the API](/api-reference/assistants/create-assistant)), you can start the call with the assistant's ID:

0 commit comments

Comments
 (0)