VoiceCall Queries

These queries allow you to interact with voicecall data.

activeVoiceCalls

Returns: [VoiceCall]

Search for active calls filtering by location phone number

Arguments

ArgumentTypeDescription
locationIdrequiredID!ID of the location
Example Query
query($locationId: ID!) {
activeVoiceCalls(locationId: $locationId) {
id
# Add other fields you need
}
}
Variables
{
"locationId": "1"
}

callLog

Returns: CallLog

Arguments

ArgumentTypeDescription
idrequiredID!ID of resource to lookup
Example Query
query($id: ID!) {
callLog(id: $id) {
id
# Add other fields you need
}
}
Variables
{
"id": "1"
}

callLogs

Returns: [CallLog]

Get a list of call logs

Arguments

ArgumentTypeDescription
insertedAtEndNaiveDateTimeInserted at end
insertedAtStartNaiveDateTimeInserted at start
limitIntMaximum number of results to return
locationIds[String]List of location IDs
offsetIntNumber of results to skip for pagination
patientIdIDID of the patient
Example Query
query(
$insertedAtEnd: NaiveDateTime,
$insertedAtStart: NaiveDateTime,
$limit: Int,
$locationIds: [String],
$offset: Int,
$patientId: ID
) {
callLogs(
insertedAtEnd: $insertedAtEnd,
insertedAtStart: $insertedAtStart,
limit: $limit,
locationIds: $locationIds,
offset: $offset,
patientId: $patientId
) {
id
# Add other fields you need
}
}
Variables
{
"insertedAtEnd": {},
"insertedAtStart": {},
"limit": 1,
"locationIds": "example",
"offset": 1,
"patientId": "1"
}

callLogsCount

Returns: Int

Arguments

ArgumentTypeDescription
insertedAtEndNaiveDateTimeInserted at end
insertedAtStartNaiveDateTimeInserted at start
locationIds[String]List of location IDs
Example Query
query(
$insertedAtEnd: NaiveDateTime,
$insertedAtStart: NaiveDateTime,
$locationIds: [String]
) {
callLogsCount(
insertedAtEnd: $insertedAtEnd,
insertedAtStart: $insertedAtStart,
locationIds: $locationIds
) {
id
# Add other fields you need
}
}
Variables
{
"insertedAtEnd": {},
"insertedAtStart": {},
"locationIds": "example"
}

dialpadOffices

Returns: [DialpadOffice]
Example Query
query {
dialpadOffices {
id
# Add other fields you need
}
}

recentVoiceCalls

Returns: [VoiceCall]

Search for recent calls filtering by location phone number

Arguments

ArgumentTypeDescription
insertedAtEndNaiveDateTimeInserted at end
insertedAtStartNaiveDateTimeInserted at start
limitIntMaximum number of results to return
locationIds[String]List of location IDs
offsetIntNumber of results to skip for pagination
Example Query
query(
$insertedAtEnd: NaiveDateTime,
$insertedAtStart: NaiveDateTime,
$limit: Int,
$locationIds: [String],
$offset: Int
) {
recentVoiceCalls(
insertedAtEnd: $insertedAtEnd,
insertedAtStart: $insertedAtStart,
limit: $limit,
locationIds: $locationIds,
offset: $offset
) {
id
# Add other fields you need
}
}
Variables
{
"insertedAtEnd": {},
"insertedAtStart": {},
"limit": 1,
"locationIds": "example",
"offset": 1
}

recentVoiceCallsCount

Returns: Int

Arguments

ArgumentTypeDescription
insertedAtEndNaiveDateTimeInserted at end
insertedAtStartNaiveDateTimeInserted at start
locationIds[String]List of location IDs
offsetIntNumber of results to skip for pagination
Example Query
query(
$insertedAtEnd: NaiveDateTime,
$insertedAtStart: NaiveDateTime,
$locationIds: [String],
$offset: Int
) {
recentVoiceCallsCount(
insertedAtEnd: $insertedAtEnd,
insertedAtStart: $insertedAtStart,
locationIds: $locationIds,
offset: $offset
) {
id
# Add other fields you need
}
}
Variables
{
"insertedAtEnd": {},
"insertedAtStart": {},
"locationIds": "example",
"offset": 1
}