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"
}
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": {
"customerId": "cust_124"
}
}
]
}
'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'}
},
{
assistant: {assistantId: '2227823180112723968', version: 'latest'},
toNumber: '+14155550124',
metadata: {customerId: 'cust_124'}
}
]
})
};
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" }
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": { "customerId": "cust_124" }
}
] }
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 },\n {\n \"assistant\": {\n \"assistantId\": \"2227823180112723968\",\n \"version\": \"latest\"\n },\n \"toNumber\": \"+14155550124\",\n \"metadata\": {\n \"customerId\": \"cust_124\"\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"
}
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": {
"customerId": "cust_124"
}
}
]
}
'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'}
},
{
assistant: {assistantId: '2227823180112723968', version: 'latest'},
toNumber: '+14155550124',
metadata: {customerId: 'cust_124'}
}
]
})
};
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" }
},
{
"assistant": {
"assistantId": "2227823180112723968",
"version": "latest"
},
"toNumber": "+14155550124",
"metadata": { "customerId": "cust_124" }
}
] }
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 },\n {\n \"assistant\": {\n \"assistantId\": \"2227823180112723968\",\n \"version\": \"latest\"\n },\n \"toNumber\": \"+14155550124\",\n \"metadata\": {\n \"customerId\": \"cust_124\"\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 options for call behavior and configuration.
{ "priority": "standard" }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