curl --request POST \
--url https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phoneCalls": [
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550123",
"fromNumber": "+14155550100",
"metadata": {
"customerId": "cust_123"
},
"args": {
"customerName": "Jane"
},
"options": {
"experience.greeting": "Hi {{customerName}}, this is Rapida calling about your appointment.",
"listen.language": "en",
"speak.voice.id": "VOICE_ID_PLACEHOLDER"
}
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": {
"customerId": "cust_124"
},
"args": {
"customerName": "Sam"
},
"options": {
"experience.greeting": "Hi {{customerName}}, this is Rapida calling with an update."
}
}
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneCalls: [
{
assistant: {assistantId: '2227823180112723968', version: 'latest'},
toNumber: '+14155550123',
fromNumber: '+14155550100',
metadata: {customerId: 'cust_123'},
args: {customerName: 'Jane'},
options: {
'experience.greeting': 'Hi {{customerName}}, this is Rapida calling about your appointment.',
'listen.language': 'en',
'speak.voice.id': 'VOICE_ID_PLACEHOLDER'
}
},
{
assistant: {assistantId: '2227823180112723968', version: 'latest'},
toNumber: '+14155550124',
metadata: {customerId: 'cust_124'},
args: {customerName: 'Sam'},
options: {
'experience.greeting': 'Hi {{customerName}}, this is Rapida calling with an update.'
}
}
]
})
};
fetch('https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call"
payload = { "phoneCalls": [
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550123",
"fromNumber": "+14155550100",
"metadata": { "customerId": "cust_123" },
"args": { "customerName": "Jane" },
"options": {
"experience.greeting": "Hi {{customerName}}, this is Rapida calling about your appointment.",
"listen.language": "en",
"speak.voice.id": "VOICE_ID_PLACEHOLDER"
}
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": { "customerId": "cust_124" },
"args": { "customerName": "Sam" },
"options": { "experience.greeting": "Hi {{customerName}}, this is Rapida calling with an update." }
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call"
payload := strings.NewReader("{\n \"phoneCalls\": [\n {\n \"assistant\": {\n \"assistantId\": \"2227823180112723968\",\n \"version\": \"latest\"\n },\n \"toNumber\": \"+14155550123\",\n \"fromNumber\": \"+14155550100\",\n \"metadata\": {\n \"customerId\": \"cust_123\"\n },\n \"args\": {\n \"customerName\": \"Jane\"\n },\n \"options\": {\n \"experience.greeting\": \"Hi {{customerName}}, this is Rapida calling about your appointment.\",\n \"listen.language\": \"en\",\n \"speak.voice.id\": \"VOICE_ID_PLACEHOLDER\"\n }\n },\n {\n \"assistant\": {\n \"assistantId\": \"2227823180112723968\",\n \"version\": \"latest\"\n },\n \"toNumber\": \"+14155550124\",\n \"metadata\": {\n \"customerId\": \"cust_124\"\n },\n \"args\": {\n \"customerName\": \"Sam\"\n },\n \"options\": {\n \"experience.greeting\": \"Hi {{customerName}}, this is Rapida calling with an update.\"\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 200,
"success": true,
"data": [
{
"id": "2230142097179373568"
},
{
"id": "2230142097179373569"
}
]
}create-bulk-phone-call
Starts multiple outbound phone calls using configured assistants and returns the created conversation identifiers.
curl --request POST \
--url https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phoneCalls": [
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550123",
"fromNumber": "+14155550100",
"metadata": {
"customerId": "cust_123"
},
"args": {
"customerName": "Jane"
},
"options": {
"experience.greeting": "Hi {{customerName}}, this is Rapida calling about your appointment.",
"listen.language": "en",
"speak.voice.id": "VOICE_ID_PLACEHOLDER"
}
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": {
"customerId": "cust_124"
},
"args": {
"customerName": "Sam"
},
"options": {
"experience.greeting": "Hi {{customerName}}, this is Rapida calling with an update."
}
}
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneCalls: [
{
assistant: {assistantId: '2227823180112723968', version: 'latest'},
toNumber: '+14155550123',
fromNumber: '+14155550100',
metadata: {customerId: 'cust_123'},
args: {customerName: 'Jane'},
options: {
'experience.greeting': 'Hi {{customerName}}, this is Rapida calling about your appointment.',
'listen.language': 'en',
'speak.voice.id': 'VOICE_ID_PLACEHOLDER'
}
},
{
assistant: {assistantId: '2227823180112723968', version: 'latest'},
toNumber: '+14155550124',
metadata: {customerId: 'cust_124'},
args: {customerName: 'Sam'},
options: {
'experience.greeting': 'Hi {{customerName}}, this is Rapida calling with an update.'
}
}
]
})
};
fetch('https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call"
payload = { "phoneCalls": [
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550123",
"fromNumber": "+14155550100",
"metadata": { "customerId": "cust_123" },
"args": { "customerName": "Jane" },
"options": {
"experience.greeting": "Hi {{customerName}}, this is Rapida calling about your appointment.",
"listen.language": "en",
"speak.voice.id": "VOICE_ID_PLACEHOLDER"
}
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": { "customerId": "cust_124" },
"args": { "customerName": "Sam" },
"options": { "experience.greeting": "Hi {{customerName}}, this is Rapida calling with an update." }
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://assistant-01.in.rapida.ai/v1/talk/create-bulk-phone-call"
payload := strings.NewReader("{\n \"phoneCalls\": [\n {\n \"assistant\": {\n \"assistantId\": \"2227823180112723968\",\n \"version\": \"latest\"\n },\n \"toNumber\": \"+14155550123\",\n \"fromNumber\": \"+14155550100\",\n \"metadata\": {\n \"customerId\": \"cust_123\"\n },\n \"args\": {\n \"customerName\": \"Jane\"\n },\n \"options\": {\n \"experience.greeting\": \"Hi {{customerName}}, this is Rapida calling about your appointment.\",\n \"listen.language\": \"en\",\n \"speak.voice.id\": \"VOICE_ID_PLACEHOLDER\"\n }\n },\n {\n \"assistant\": {\n \"assistantId\": \"2227823180112723968\",\n \"version\": \"latest\"\n },\n \"toNumber\": \"+14155550124\",\n \"metadata\": {\n \"customerId\": \"cust_124\"\n },\n \"args\": {\n \"customerName\": \"Sam\"\n },\n \"options\": {\n \"experience.greeting\": \"Hi {{customerName}}, this is Rapida calling with an update.\"\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 200,
"success": true,
"data": [
{
"id": "2230142097179373568"
},
{
"id": "2230142097179373569"
}
]
}Authorizations
API key from Rapida credentials.
Headers
Client source identifier. SDK clients send this automatically.
sdk Optional user identifier to propagate with the request.
Body
1Hide child attributes
Hide child attributes
Destination phone number in E.164 format.
"+14155550123"
Arbitrary metadata stored with the conversation for tracking and analytics.
{ "customerId": "cust_123" }
Runtime arguments made available to the assistant.
{ "customerName": "Jane" }
Runtime overrides for this call. Supported option groups include experience.* for session behavior, listen.* for speech-to-text and voice input, speak.* and speaker.* for text-to-speech and spoken output, model.* for model provider options, and agentkit.* for AgentKit connection settings.
{
"experience.greeting": "Hi {{customerName}}, this is Rapida calling about your appointment.",
"experience.greeting_interruptible": false,
"listen.language": "en",
"listen.model": "nova-3",
"speak.voice.id": "VOICE_ID_PLACEHOLDER",
"speak.language": "en",
"model.name": "gpt-4o-mini"
}
Caller ID phone number in E.164 format. If omitted, Rapida uses the configured default.
"+14155550100"
Response
Bulk outbound phone call request accepted.
200
true
Hide child attributes
Hide child attributes
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
Hide child attributes
Hide child attributes
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
^[0-9]+$"2227823180112723968"
^[0-9]+$"2227823180112723968"
Platform error response details. errorCode is a stable platform error code.
See PlatformErrorCode for documented code/message mappings.
Hide child attributes
Hide child attributes