Endpoint Examples
Vapi - Set Context
Sets up the context for a VAPI call using customer information and payment details
POST
/
voice
/
api
/
v1
/
vapi
/
set-context
Copy
curl --request POST \
--url https://protegee.ai/voice/api/v1/vapi/set-context \
--header 'Content-Type: application/json' \
--data '{
"message": {
"customer": {
"number": "+1234567890"
},
"toolCalls": [
{
"function": {
"name": "SendContextToProtegee",
"arguments": {
"description": "iPhone 15 Pro Max",
"price": "999.99",
"vendor": "Apple Store",
"customer_id": "<string>",
"persona": "english-jessica",
"callback": "<string>",
"email": "<string>",
"full_name": "<string>",
"memory": "<string>",
"transaction_type": "once"
}
}
}
]
}
}'
Copy
{
"status": "success",
"message": {
"caller": "<string>"
}
}
Query Parameters
API token for authentication
Body
application/json
Response
200
application/json
Context set successfully
The response is of type object
.
Copy
curl --request POST \
--url https://protegee.ai/voice/api/v1/vapi/set-context \
--header 'Content-Type: application/json' \
--data '{
"message": {
"customer": {
"number": "+1234567890"
},
"toolCalls": [
{
"function": {
"name": "SendContextToProtegee",
"arguments": {
"description": "iPhone 15 Pro Max",
"price": "999.99",
"vendor": "Apple Store",
"customer_id": "<string>",
"persona": "english-jessica",
"callback": "<string>",
"email": "<string>",
"full_name": "<string>",
"memory": "<string>",
"transaction_type": "once"
}
}
}
]
}
}'
Copy
{
"status": "success",
"message": {
"caller": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.