curl --request POST \
--url https://app.revve.ai/api/voice-agents/{agentId}/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "+84775352590",
"fullName": "Jane Doe",
"email": "[email protected]",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "Asia/Ho_Chi_Minh",
"fromPhoneNumber": "<string>",
"numberPoolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '+84775352590',
fullName: 'Jane Doe',
email: '[email protected]',
companyName: '<string>',
companyWebsite: '<string>',
timezone: 'Asia/Ho_Chi_Minh',
fromPhoneNumber: '<string>',
numberPoolId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.revve.ai/api/voice-agents/{agentId}/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.revve.ai/api/voice-agents/{agentId}/calls"
payload = {
"phoneNumber": "+84775352590",
"fullName": "Jane Doe",
"email": "[email protected]",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "Asia/Ho_Chi_Minh",
"fromPhoneNumber": "<string>",
"numberPoolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"callRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rescheduled": true,
"runsAt": "2023-11-07T05:31:56Z"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": false,
"message": "Agent not found",
"reason": "<string>"
}Trigger an outbound call
Places (or schedules) an outbound call from a voice agent to a phone number. The contact is created or updated from the identifying fields before dialing, so the agent’s {{contact}} placeholders resolve. Any additional body fields beyond the ones listed become dynamic variables available to the agent’s prompt templates.
A call requested outside the agent’s allowed calling hours is scheduled for the next allowed slot and returns rescheduled: true with runsAt (this scheduling happens before the guardrail checks below, which then apply when the scheduled call fires).
Guardrails: team call limits and plan limits (429); the outbound whitelist when enabled (400); numbers on the Do Not Call list are not dialed; a number with a call already processed in the last 12 hours is not re-dialed (both of the latter surface through the 500 response with an explanatory message).
Caller ID: uses the agent’s configured outbound number or pool. Override per call with fromPhoneNumber (must be an active team number with outbound calling provisioned) or numberPoolId — when both are sent, the pool wins.
curl --request POST \
--url https://app.revve.ai/api/voice-agents/{agentId}/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "+84775352590",
"fullName": "Jane Doe",
"email": "[email protected]",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "Asia/Ho_Chi_Minh",
"fromPhoneNumber": "<string>",
"numberPoolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '+84775352590',
fullName: 'Jane Doe',
email: '[email protected]',
companyName: '<string>',
companyWebsite: '<string>',
timezone: 'Asia/Ho_Chi_Minh',
fromPhoneNumber: '<string>',
numberPoolId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.revve.ai/api/voice-agents/{agentId}/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.revve.ai/api/voice-agents/{agentId}/calls"
payload = {
"phoneNumber": "+84775352590",
"fullName": "Jane Doe",
"email": "[email protected]",
"companyName": "<string>",
"companyWebsite": "<string>",
"timezone": "Asia/Ho_Chi_Minh",
"fromPhoneNumber": "<string>",
"numberPoolId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"callRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rescheduled": true,
"runsAt": "2023-11-07T05:31:56Z"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": false,
"message": "Agent not found",
"reason": "<string>"
}Authorizations
Body
Response
Call queued for dialing, or scheduled for the next allowed calling window (rescheduled: true with runsAt).