API Request Tool quickstart
Create a coffee-order assistant that calls an HTTP API during an inbound phone call.
In this quickstart, you’ll create a coffee-order assistant and place a test order in about 10 minutes. The assistant collects order details, calls a public endpoint, and reads the server-calculated result to the caller.
What you’ll build
- An API Request Tool that sends a confirmed coffee order to an HTTP endpoint
- An assistant that collects and confirms the order before calling the tool
- An inbound phone experience that reads back the server-calculated total and order number
Prerequisites
- A Vapi account
- A Vapi phone number
- For the cURL method, a Vapi API key
1. Test the order endpoint
Send a coffee order directly to the public test endpoint.
The endpoint returns an HTTP 201 response. The requestId and five-digit orderId change with every request.
2. Create the API Request Tool
Dashboard
cURL
Create an API Request Tool
Open the Dashboard, select Tools, select Create Tool, then choose API Request.
Configure the request
Enter the following values under Base Configuration:
Under Authorization, keep No authentication selected. This public endpoint is for testing only.

Define the request body
Under Request Body, select Add Property and add these properties:
Set the productId description to The product the customer confirmed. and the quantity description to The confirmed quantity. Then enable Lock schema (no additional properties).

3. Create the assistant
Use this system prompt in either method:
Dashboard
cURL
Configure the assistant
Set Name to Docs Coffee Order Hello World and First Message to:
Select OpenAI GPT-4o Mini Cluster as the model and Vapi Clara v2 as the voice. Replace System Prompt with the prompt above.

Attach the tool
In the assistant’s Tools section, add createCoffeeOrder.

Configure how the call ends
In the assistant editor, set End Call Message to Thanks for your order. Goodbye. Then add Thanks for your order to End Call Phrases.
Only the assistant’s speech triggers an end call phrase. The phrase omits punctuation so it still matches the closing sentence in the system prompt.

4. Connect the phone number
Open Phone Numbers in the Dashboard, then select your existing phone number. Find Inbound Settings, choose Docs Coffee Order Hello World from the Assistant menu, then select Save.
If you do not have a number, request a free Vapi phone number before continuing.
5. Place a coffee order
Call the phone number and order two bags of house coffee beans. Give the assistant your name, then confirm the complete order when it reads the details back.
The assistant should call the API only after confirmation. It should then read a five-digit order number and the server-calculated total of $36.00. When it asks whether you need anything else, say no. The assistant should say its closing sentence and end the call.
Next steps
Add headers, static fields, Liquid values, and authentication.
Configure timeouts, caller messages, and safe retry behavior.
Design response contracts and help the assistant recover from failures.
Extract response values and pass them to later tools.
Learn how spoken phrases end an assistant’s call.