@@ -113,7 +113,54 @@ See [Custom Tools](/tools/custom-tools) and [Google Calendar](/tools/google-cale
113113
114114---
115115
116- ## 4. Test outbound calls
116+ ## 4. Make calls
117+
118+ <Tabs >
119+ <Tab title = " TypeScript (Server SDK)" >
120+ ``` typescript title="create web call"
121+ import { VapiClient } from " @vapi-ai/server-sdk" ;
122+ const vapi = new VapiClient ({ token: process .env .VAPI_API_KEY ! });
123+ await vapi .calls .create ({ transport: { type: " web" }, assistant: { assistantId: " your-assistant-id" } });
124+ ```
125+
126+ ``` typescript title="create phone call"
127+ await vapi .calls .create ({ phoneNumberId: " your-phone-number-id" , customer: { number: " +15551234567" }, assistant: { assistantId: " your-assistant-id" } });
128+ ```
129+ </Tab >
130+
131+ <Tab title = " Python (Server SDK)" >
132+ ``` python title="create web call"
133+ import os
134+ from vapi import Vapi
135+ client = Vapi(token = os.getenv(" VAPI_API_KEY" ))
136+ client.calls.create(transport = {" type" : " web" }, assistant_id = " your-assistant-id" )
137+ ```
138+
139+ ``` python title="create phone call"
140+ client.calls.create(phone_number_id = " your-phone-number-id" , customer = {" number" : " +15551234567" }, assistant_id = " your-assistant-id" )
141+ ```
142+ </Tab >
143+
144+ <Tab title = " cURL (web)" >
145+ ``` bash
146+ curl -X POST " https://api.vapi.ai/call/web" \
147+ -H " Authorization: Bearer $VAPI_API_KEY " \
148+ -H " Content-Type: application/json" \
149+ -d ' { "assistant": { "assistantId": "your-assistant-id" } }'
150+ ```
151+ </Tab >
152+
153+ <Tab title = " cURL (phone)" >
154+ ``` bash
155+ curl -X POST " https://api.vapi.ai/call" \
156+ -H " Authorization: Bearer $VAPI_API_KEY " \
157+ -H " Content-Type: application/json" \
158+ -d ' { "assistant": { "assistantId": "your-assistant-id" }, "phoneNumberId": "your-phone-number-id", "customer": { "number": "+15551234567" } }'
159+ ```
160+ </Tab >
161+ </Tabs >
162+
163+ ## 5. Test outbound calls
117164
118165Create a phone number or trigger an outbound call. See [ Phone calls] ( /quickstart/phone ) .
119166
0 commit comments