curl --request GET \
--url https://api.aicaller.io/v1/phoneCalls \
--header 'aicaller-api-key: <api-key>'{
"data": [
{
"teamId": "363573667364666473667332",
"callTemplateId": "363573667364666473667332",
"nameOfHuman": "John",
"toPhoneNumber": "+1234567890",
"promptVariableValues": [
{
"key": "customer_name",
"value": "John"
}
],
"resultValues": [
{
"columnName": "city",
"value": "Bangalore"
}
],
"_id": "12345678901234567890",
"fileId": "363573667364666473667332",
"fileName": "lead_list.csv",
"callTriggeredAt": "2023-10-12T09:07:55.387Z",
"callStartedAt": "2023-10-12T09:08:05.387Z",
"callEndedAt": "2023-10-12T09:09:02.387Z",
"createdAt": "2023-10-12T09:08:00.387Z",
"updatedAt": "2023-10-12T09:08:00.387Z",
"phoneNumberId": "363573667364666473667332",
"fromPhoneNumber": "+1234567890",
"toEmailAddress": "[email protected]",
"status": "queued",
"telephonyProvider": "twilio",
"record": false,
"callDelayedUntil": "2023-10-12T09:08:00.387Z",
"phoneCallWebhooks": [
{
"url": "https://hooks.abc.com/",
"subscribedEvent": "phoneCall.completed",
"secret": "NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"
}
],
"statusExtraInfo": {
"statusCode": "CALL_LATER",
"dateTime": "2024-03-11T10:00:00Z"
},
"fixedMeetingTime": "2024-03-11T10:00:00Z",
"recordingUrl": "https://example.com/recording.mp3",
"callDuration": 60,
"callOrigin": "api",
"customTagsHitOnCall": [
"<string>"
]
}
]
}Get all the PhoneCall
curl --request GET \
--url https://api.aicaller.io/v1/phoneCalls \
--header 'aicaller-api-key: <api-key>'{
"data": [
{
"teamId": "363573667364666473667332",
"callTemplateId": "363573667364666473667332",
"nameOfHuman": "John",
"toPhoneNumber": "+1234567890",
"promptVariableValues": [
{
"key": "customer_name",
"value": "John"
}
],
"resultValues": [
{
"columnName": "city",
"value": "Bangalore"
}
],
"_id": "12345678901234567890",
"fileId": "363573667364666473667332",
"fileName": "lead_list.csv",
"callTriggeredAt": "2023-10-12T09:07:55.387Z",
"callStartedAt": "2023-10-12T09:08:05.387Z",
"callEndedAt": "2023-10-12T09:09:02.387Z",
"createdAt": "2023-10-12T09:08:00.387Z",
"updatedAt": "2023-10-12T09:08:00.387Z",
"phoneNumberId": "363573667364666473667332",
"fromPhoneNumber": "+1234567890",
"toEmailAddress": "[email protected]",
"status": "queued",
"telephonyProvider": "twilio",
"record": false,
"callDelayedUntil": "2023-10-12T09:08:00.387Z",
"phoneCallWebhooks": [
{
"url": "https://hooks.abc.com/",
"subscribedEvent": "phoneCall.completed",
"secret": "NjUyOTgwMjkpJU0NmY25yzWkJFWDBE12"
}
],
"statusExtraInfo": {
"statusCode": "CALL_LATER",
"dateTime": "2024-03-11T10:00:00Z"
},
"fixedMeetingTime": "2024-03-11T10:00:00Z",
"recordingUrl": "https://example.com/recording.mp3",
"callDuration": 60,
"callOrigin": "api",
"customTagsHitOnCall": [
"<string>"
]
}
]
}status and statusExtraInfo valuesUnique ID of the CallTemplate
Unique ID of the PhoneNumber you own
Get phoneCalls created after this date
Get phoneCalls created before this date
Get phoneCalls made to a phoneNumber
Get phoneCalls with specific status, Possible values: "queued", "ringing", "inProgress", "busy", "noAnswer", "canceled", "failed", "completed".
Get bulk phoneCalls triggered using a file associated with fileId
Phone calls found.
Show child attributes
The unique ID of the Team, phoneCall associated with.
"363573667364666473667332"
The ID of the call template used for the call.
"363573667364666473667332"
The name of the human making the call to.
"John"
The phone number the call is made to.
"+1234567890"
Unique identifier for the phoneCall
"12345678901234567890"
File Id of File from which this call was created.
"363573667364666473667332"
File name from which this call was created.
"lead_list.csv"
Time stamp when the call was triggered
"2023-10-12T09:07:55.387Z"
Time stamp when the call started (i.e connected)
"2023-10-12T09:08:05.387Z"
Time stamp when the call ended
"2023-10-12T09:09:02.387Z"
"2023-10-12T09:08:00.387Z"
"2023-10-12T09:08:00.387Z"
The ID of the phone number associated with the call.
"363573667364666473667332"
The optional phone number the call should be made from. If not provided AI will use a number from twilio settings.
"+1234567890"
The email of the person, the call is made to.
The status of the phone call. Possible values: "queued", "ringing", "inProgress", "busy", "noAnswer", "canceled", "failed", "completed".
queued, ringing, inProgress, busy, failed, noAnswer, cancelled, completed "queued"
The telephony provider to be used for the phone call. Possible values: "twilio", "plivo", "telnyx".
twilio, plivo, telnyx "twilio"
Flag indicating whether recording is enabled for the specific phone call.
false
Can be used to schedule a call for the future. Must be ISO Date as a string with UTC timezone.
"2023-10-12T09:08:00.387Z"
Array of webhooks to be notified for this call.
Extra information about how did the call end.
{
"statusCode": "CALL_LATER",
"dateTime": "2024-03-11T10:00:00Z"
}If the call was scheduled for a meeting, the time will be shown here.
"2024-03-11T10:00:00Z"
URL to the recording of the phone call.
"https://example.com/recording.mp3"
Duration of the phone call in seconds.
60
Origin of call (demo, ui, api, batch)
demo, ui, api, batch "api"
custom tags hit on call