Endpoint Examples
Vapi - Set Context
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
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"
}
}
}
]
}
}'
{
"status": "success",
"message": {
"caller": "<string>"
}
}
Query Parameters
API token for authentication
Body
application/json
Customer's phone number
Example:
"+1234567890"
Available options:
SendContextToProtegee
Example:
"iPhone 15 Pro Max"
Example:
"999.99"
Example:
"Apple Store"
Available options:
once
, subscription
, authorize
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"
}
}
}
]
}
}'
{
"status": "success",
"message": {
"caller": "<string>"
}
}