@@ -185,7 +185,78 @@ Use the Google Calendar integration for availability and booking, or your own AP
185185
186186---
187187
188- ## 4. Test and validate
188+ ## 4. Make calls
189+
190+ <Tabs >
191+ <Tab title = " TypeScript (Server SDK)" >
192+ ``` typescript title="create web call"
193+ import { VapiClient } from " @vapi-ai/server-sdk" ;
194+
195+ const vapi = new VapiClient ({ token: process .env .VAPI_API_KEY ! });
196+
197+ await vapi .calls .create ({
198+ transport: { type: " web" },
199+ assistant: { assistantId: " your-assistant-id" }
200+ });
201+ ```
202+
203+ ``` typescript title="create phone call"
204+ await vapi .calls .create ({
205+ phoneNumberId: " your-phone-number-id" ,
206+ customer: { number: " +15551234567" },
207+ assistant: { assistantId: " your-assistant-id" }
208+ });
209+ ```
210+ </Tab >
211+
212+ <Tab title = " Python (Server SDK)" >
213+ ``` python title="create web call"
214+ import os
215+ from vapi import Vapi
216+
217+ client = Vapi(token = os.getenv(" VAPI_API_KEY" ))
218+
219+ client.calls.create(
220+ transport = {" type" : " web" },
221+ assistant_id = " your-assistant-id" ,
222+ )
223+ ```
224+
225+ ``` python title="create phone call"
226+ client.calls.create(
227+ phone_number_id = " your-phone-number-id" ,
228+ customer = {" number" : " +15551234567" },
229+ assistant_id = " your-assistant-id" ,
230+ )
231+ ```
232+ </Tab >
233+
234+ <Tab title = " cURL (web)" >
235+ ``` bash
236+ curl -X POST " https://api.vapi.ai/call/web" \
237+ -H " Authorization: Bearer $VAPI_API_KEY " \
238+ -H " Content-Type: application/json" \
239+ -d ' {
240+ "assistant": { "assistantId": "your-assistant-id" }
241+ }'
242+ ```
243+ </Tab >
244+
245+ <Tab title = " cURL (phone)" >
246+ ``` bash
247+ curl -X POST " https://api.vapi.ai/call" \
248+ -H " Authorization: Bearer $VAPI_API_KEY " \
249+ -H " Content-Type: application/json" \
250+ -d ' {
251+ "assistant": { "assistantId": "your-assistant-id" },
252+ "phoneNumberId": "your-phone-number-id",
253+ "customer": { "number": "+15551234567" }
254+ }'
255+ ```
256+ </Tab >
257+ </Tabs >
258+
259+ ## 5. Test and validate
189260
190261<Steps >
191262 <Step title = " Attach a phone number" >
0 commit comments