Calls

A call to or from a prospective care seeker.

The call object

Attributes

  • _id
    string

    A unique Id for the call.

  • ai_summary
    string

    An AI generated summary of the call.

  • anonymized
    string

    Date/time flag indicating when (if) the call's details were anonymized.

  • answered_by_machine
    boolean

    Flag indicating that the call was answered by a machine.

  • answered_date_time
    string

    The date/time the call was answered.

  • call_successful
    boolean

    Flag indicating if the call was successful.

  • care_enquiry
    string

    The Id of the care enquiry this call relates to.

  • created
    string

    The date/time the call was created.

  • date_time
    string

    The date/time the call was initiated or received.

  • destination
    string

    The telephone number that the call was to.

  • direction
    string

    The direction of the call; inbound, outbound.

  • ended
    boolean

    Flag indicating if the call has ended.

  • ended_date_time
    string

    The date/time the call was ended.

  • external_service
    string

    The service used to handle the call.

  • location
    string

    The Id of the location this call relates to.

  • modified
    string

    The date/time the call was modified.

  • origin
    string

    The telephone number that the call originates from.

  • reason_for_call
    string

    The date/time the call started ringing the destination.

  • ringing_date_time
    string
  • service_user_contact
    string

    The Id of the service user contact this call relates to.

  • status
    string

    The call status; busy, canceled, completed, failed, in_progress, no_answer, queued, ringing.

  • summary
    string

    A summary of the call and its outcome.

  • user
    string

    The Id of the user who made this call.

The call object
{
    "_id": "6a7a1e9060776d91dc87ac32",
    "ai_summary": null,
    "anonymized": null,
    "answered_by_machine": false,
    "answered_date_time": "2026-08-07 14:30:25",
    "call_successful": true,
    "care_enquiry": "6a7a1e8d60776d91dc87a94e",
    "created": "2026-08-10 18:55:12",
    "date_time": "2026-08-07 14:30:00",
    "destination": "+441905381713",
    "direction": "outbound",
    "ended": true,
    "ended_date_time": "2026-08-07 14:42:15",
    "external_service": "twilio",
    "location": "6a7a1e8860776d91dc879ba0",
    "modified": "2026-08-10 18:55:12",
    "origin": "+441865680331",
    "reason_for_call": "6a7a1e8560776d91dc879a9c",
    "ringing_date_time": "2026-08-07 14:30:10",
    "service_user_contact": null,
    "status": "completed",
    "summary": "Spoke to Gordon and answers some questions around price. Gordon was at work and\nasked if I could call him tomorrow to arrange a home visit.\n",
    "user": "6a7a1e8860776d91dc879baa"
}

List all calls

Return a list of calls.

Parameters

  • attributes
    optional
    default ['_id']

    A list of attributes to include for fetched objects.

  • filters-anonymized
    optional
    default unset

    A filter that allows calls to be filtered by whether the call is anonymized.

    • unset
    • yes
    • no
  • filters-call_status
    optional

    A filter that accepts a list of call statuses and filters calls by the status of the call.

    • busy
    • canceled
    • completed
    • failed
    • in_progress
    • no_answer
    • queued
    • ringing
  • filters-care_enquiry
    optional

    A filter that accepts a list of care enquiry Ids and filters calls to those where the call relates to one of the care enquiries.

  • filters-direction
    optional

    A filter that allows calls to be filtered by the direction calls were sent in.

    • inbound
    • outbound
  • filters-end_date
    optional

    A filter that accepts a date and filters calls to those sent or received on or before the given date.

  • filters-ids
    optional

    A filter that accepts a list of Ids and filters the items returned to those with an Id in the list.

  • filters-location
    optional

    A filter that accepts a list of location Ids and filters calls by the location they relate to.

  • filters-modified_after
    optional

    A filter that accepts a date/time and filters the items returned to those modified after the date/time.

  • filters-modified_before
    optional

    A filter that accepts a date/time and filters the items returned to those modified before the date/time.

  • filters-q
    optional

    A case insensitive keyword filter applied to the following fields; destination, origin.

  • filters-service_user_contact
    optional

    A filter that accepts a list of service user contact Ids and filters calls to those where the service user contact is one of the service user contacts.

  • filters-start_date
    optional

    A filter that accepts a date and filters calls to those sent or received on or after the given date.

  • filters-user
    optional

    A filter that accepts a list of user Ids and filters calls to those initiated by one of the users.

  • page
    optional
    default 1

    The page number to fetch.

  • per_page
    optional
    default 10

    The number of items to return per page.

  • sort_by
    optional
    default _id

    A list of fields the returned items can be sorted by. Fields prefixed with minus (-) sign are sorted in descending order.

    • _id
    • created
    • modified
    • date_time

Response

Returns a page of calls.

GET
/v1/calls
var calls = apiClient.Request(
    HttpMethod.Get,
    "calls",
    new MultiValueDict()
        .Add("attributes", "call_status", "destination", "date_time")
        .Add("filters-direction", "outbound")
        .Add("sort_by", "date_time")
);
const calls = await apiClient.request(
    "GET",
    "calls",
    {
        "params": {
            "attributes": ['call_status', 'destination', 'date_time'],
            "filters-direction": ["outbound"],
            "sort_by": "date_time"
        }
    }
)
<?php

$calls = $api_client->request(
    'GET',
    'calls',
    [
        'attributes'=>['call_status', 'destination', 'date_time'],
        'filters-direction'=>['outbound'],
        'sort_by'=>'date_time'
    ]
);
calls = api_client(
    'GET',
    'calls',
    params={
        'attributes': ['call_status', 'destination', 'date_time'],
        'filters-direction': ['outbound'],
        'sort_by': 'date_time'
    }
)
calls = api_client.request(
    'GET',
    'calls',
    params: {
        'attributes' => ['call_status', 'destination', 'date_time'],
        'filters-direction' => ['outbound'],
        'sort_by' => 'date_time'
    }
)
Response
{
    "item_count": 5,
    "items": [
        {
            "_id": "6a7a1e9060776d91dc87ac34",
            "date_time": "2026-07-23 17:00:00",
            "destination": "+447205755726"
        },
        {
            "_id": "6a7a1e9060776d91dc87ac36",
            "date_time": "2026-07-26 12:00:00",
            "destination": "+447205755726"
        },
        {
            "_id": "6a7a1e9060776d91dc87ac32",
            "date_time": "2026-08-07 14:30:00",
            "destination": "+441905381713"
        },
        {
            "_id": "6a7a1e9060776d91dc87ac30",
            "date_time": "2026-08-08 10:30:00",
            "destination": "+441905381713"
        },
        {
            "_id": "6a7a1e9060776d91dc87ac2e",
            "date_time": "2026-08-09 16:50:00",
            "destination": "+07865443145"
        }
    ],
    "page": 1,
    "page_count": 1,
    "per_page": 10
}

Retrieve a call

Retrieve a call object.

Response

Returns a call object.

GET
/v1/calls/<call_id>
var call = apiClient.Request(HttpMethod.Get, $"calls/{callId}");
const call = await apiClient.request("GET", `calls/${callsId}`)
<?php

$call = $api_client->request('GET', 'calls/' . $call_id);
call = api_client('GET', f'calls/{call_id}')
call = api_client.request('GET', "calls/#{call_id}")
Response
{
    "_id": "6a7a1e9060776d91dc87ac32",
    "ai_summary": null,
    "anonymized": null,
    "answered_by_machine": false,
    "answered_date_time": "2026-08-07 14:30:25",
    "call_successful": true,
    "care_enquiry": "6a7a1e8d60776d91dc87a94e",
    "created": "2026-08-10 18:55:12",
    "date_time": "2026-08-07 14:30:00",
    "destination": "+441905381713",
    "direction": "outbound",
    "ended": true,
    "ended_date_time": "2026-08-07 14:42:15",
    "external_service": "twilio",
    "location": "6a7a1e8860776d91dc879ba0",
    "modified": "2026-08-10 18:55:12",
    "origin": "+441865680331",
    "reason_for_call": "6a7a1e8560776d91dc879a9c",
    "ringing_date_time": "2026-08-07 14:30:10",
    "service_user_contact": null,
    "status": "completed",
    "summary": "Spoke to Gordon and answers some questions around price. Gordon was at work and\nasked if I could call him tomorrow to arrange a home visit.\n",
    "user": "6a7a1e8860776d91dc879baa"
}