MENU navbar-image

Introduction

This API is designed to let you do (almost) everything you can do from the timetoreply portal programatically via API requests

Authentication

We currently only support personal access tokens for authentication. These can be obtained by logging into a company administrator account on timetoreply, visiting the API section, and clicking "Generate Access Token". Tokens have an expiration time of 1 year.

All requests made to our api with these generated access tokens will be assigned to the user that generated the access token.

You can create as many access tokens as you like, and you can revoke their access at any time from the same page when you created them.

Rate Limiting

Our API is rate limited to 30 requests per minute and the lower limit of 900 requests per hour.

If you exceed these limits, responses will get a Retry-After header which indicates how long you should wait until trying again.

Dates and Times

Most Dates and Times are converted into the timezone of your user profile on the fly before being sent to you.

Reply times are usually returned in seconds, but many reply times also have a "Friendly Reply Time" which is a formatted string.

Nomenclature

General

Responses have been generally optimized for use in our own front-end, and as such, the structure of responses might not be exactly as you expect. It may also contain information that is not relevant to you. Unfortunately we currently do not offer a method to get exactly the information you want, but we may create this functionality in future.

Base URL

https://portal.timetoreply.com

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can generate your token by logging in and visiting TOOLS > API

Reports

Overview

Overview - Report

requires authentication

Overview Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/overview"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "timetoreply.com",
    "model_type": "Contact",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "voluptatem",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "sort_by": "threads.total",
    "direction": "desc",
    "per_page_agents": "2",
    "page_agents": "1",
    "per_page_contacts": "2",
    "page_contacts": "1",
    "per_page_domains": "2",
    "page_domains": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/overview',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'timetoreply.com',
            'model_type' => 'Contact',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'voluptatem',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'per_page_agents' => '2',
            'page_agents' => '1',
            'per_page_contacts' => '2',
            'page_contacts' => '1',
            'per_page_domains' => '2',
            'page_domains' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/overview?from=2020-01-01&to=2020-01-08&model=timetoreply.com&model_type=Contact&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=voluptatem&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&sort_by=threads.total&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "threads": {
            "total": 319,
            "internal": 11,
            "inbound": 271,
            "outbound": 37,
            "sent_internally": 45,
            "await_customer": 88,
            "await_agent": 152,
            "closed": 34,
            "have_replies": 243,
            "have_replies_from_agents": 223,
            "have_no_replies_from_agents": 96,
            "completionRatio": {
                "ratio": 554.05,
                "numerator": 205,
                "denominator": 37
            },
            "handledRate": {
                "rate": 38.24,
                "numerator": 122,
                "denominator": 319
            },
            "labels": {
                "total": 56,
                "list": [
                    {
                        "key": "UNREAD",
                        "doc_count": 205
                    },
                    {
                        "key": "CATEGORY_SOCIAL",
                        "doc_count": 45
                    },
                    {
                        "key": "IMPORTANT",
                        "doc_count": 45
                    },
                    {
                        "key": "STARRED",
                        "doc_count": 42
                    },
                    {
                        "key": "INBOX",
                        "doc_count": 40
                    },
                    {
                        "key": "CATEGORY_FORUMS",
                        "doc_count": 39
                    },
                    {
                        "key": "CATEGORY_PERSONAL",
                        "doc_count": 39
                    },
                    {
                        "key": "CATEGORY_PROMOTIONS",
                        "doc_count": 31
                    },
                    {
                        "key": "SENT",
                        "doc_count": 30
                    },
                    {
                        "key": "CATEGORY_UPDATES",
                        "doc_count": 28
                    },
                    {
                        "key": "Outdoors",
                        "doc_count": 4
                    },
                    {
                        "key": "Baby",
                        "doc_count": 2
                    },
                    {
                        "key": "Automotive",
                        "doc_count": 1
                    },
                    {
                        "key": "Automotive, Tools & Electronics",
                        "doc_count": 1
                    },
                    {
                        "key": "Baby & Computers",
                        "doc_count": 1
                    },
                    {
                        "key": "Beauty & Kids",
                        "doc_count": 1
                    },
                    {
                        "key": "Beauty & Music",
                        "doc_count": 1
                    },
                    {
                        "key": "Books & Beauty",
                        "doc_count": 1
                    },
                    {
                        "key": "Books & Tools",
                        "doc_count": 1
                    },
                    {
                        "key": "Books, Automotive & Shoes",
                        "doc_count": 1
                    }
                ]
            }
        },
        "messages": {
            "count": 836,
            "initial": 296,
            "replies": 444,
            "forward": 69,
            "follow_up": 27,
            "received": {
                "count": 578,
                "initial": 264,
                "replies": 218,
                "forward": 69,
                "follow_up": 27,
                "initial_replies": 57,
                "dayOfWeek": {
                    "Monday": 81,
                    "Tuesday": 99.5,
                    "Wednesday": 99,
                    "Thursday": 91,
                    "Friday": 93,
                    "Saturday": 10,
                    "Sunday": 5
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0.13,
                    "02:00": 0.38,
                    "03:00": 0.25,
                    "04:00": 0.25,
                    "05:00": 0,
                    "06:00": 0.13,
                    "07:00": 0,
                    "08:00": 0.25,
                    "09:00": 1.63,
                    "10:00": 2.38,
                    "11:00": 5.75,
                    "12:00": 8.63,
                    "13:00": 8.5,
                    "14:00": 11.25,
                    "15:00": 9.38,
                    "16:00": 10.38,
                    "17:00": 8,
                    "18:00": 3.63,
                    "19:00": 0.5,
                    "20:00": 0.38,
                    "21:00": 0.25,
                    "22:00": 0.13,
                    "23:00": 0.13
                },
                "avg_wait": "92h:49m",
                "avg_wait_raw": 334143,
                "avg_first_wait": "94h:50m",
                "avg_first_wait_raw": 341418
            },
            "sent": {
                "count": 383,
                "initial": 41,
                "replies": 272,
                "forward": 69,
                "follow_up": 1,
                "initial_replies": 205,
                "dayOfWeek": {
                    "Monday": 56,
                    "Tuesday": 68.5,
                    "Wednesday": 65,
                    "Thursday": 63,
                    "Friday": 54,
                    "Saturday": 5,
                    "Sunday": 3
                },
                "hourOfDay": {
                    "00:00": 0.13,
                    "01:00": 0.13,
                    "02:00": 0.13,
                    "03:00": 0.13,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0.13,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 1.13,
                    "10:00": 2.25,
                    "11:00": 3.63,
                    "12:00": 4.88,
                    "13:00": 5.5,
                    "14:00": 7,
                    "15:00": 7.25,
                    "16:00": 6,
                    "17:00": 6.63,
                    "18:00": 1.88,
                    "19:00": 0.63,
                    "20:00": 0.25,
                    "21:00": 0.13,
                    "22:00": 0.13,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "01h:56m",
            "raw": 6990.125,
            "friendly_no_business": "07h:46m",
            "raw_no_business": 27970.966911764706,
            "deviation_friendly": "15m:22s",
            "deviation_raw": 921.5,
            "deviation_friendly_no_business": "13m:50s",
            "deviation_raw_no_business": 829.5,
            "median_friendly": "18m:55s",
            "median_raw": 1134.9921875,
            "median_friendly_no_business": "22m:36s",
            "median_raw_no_business": 1355.984375,
            "consistency_score": "18.81%",
            "consistency_score_no_business": "38.83%",
            "percentileRanks": [
                {
                    "key": "30m:00s",
                    "value": 68.01,
                    "count": 0
                },
                {
                    "key": "01h:00m",
                    "value": 73.53,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 80.88,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "30m:00s",
                    "value": 65.44,
                    "count": 0
                },
                {
                    "key": "01h:00m",
                    "value": 70.96,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 77.57,
                    "count": 0
                }
            ],
            "within_sla": 200,
            "within_sla_percentage_friendly": 73.53,
            "sla_breach": 72,
            "sla_breach_percentage_friendly": 26.47,
            "excluded_from_sla": 0,
            "excluded_from_sla_percentage_friendly": 0
        },
        "initialTTR": {
            "friendly": "02h:00m",
            "raw": 7248.809756097561,
            "friendly_no_business": "08h:14m",
            "raw_no_business": 29644.126829268294,
            "deviation_friendly": "16m:55s",
            "deviation_raw": 1015,
            "deviation_friendly_no_business": "16m:19s",
            "deviation_raw_no_business": 979,
            "median_friendly": "20m:06s",
            "median_raw": 1205.9921875,
            "median_friendly_no_business": "24m:09s",
            "median_raw_no_business": 1448.984375,
            "consistency_score": "15.84%",
            "consistency_score_no_business": "32.44%",
            "percentileRanks": [
                {
                    "key": "30m:00s",
                    "value": 65.85,
                    "count": 0
                },
                {
                    "key": "01h:00m",
                    "value": 71.71,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 80,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "30m:00s",
                    "value": 63.9,
                    "count": 0
                },
                {
                    "key": "01h:00m",
                    "value": 69.27,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 76.59,
                    "count": 0
                }
            ],
            "within_sla": 147,
            "within_sla_percentage_friendly": 71.71,
            "sla_breach": 58,
            "sla_breach_percentage_friendly": 28.29,
            "excluded_from_sla": 0,
            "excluded_from_sla_percentage_friendly": 0
        },
        "overallTTF": {
            "friendly": "04h:01m",
            "raw": 14508.623188405798,
            "friendly_no_business": "17h:01m",
            "raw_no_business": 61308.260869565216
        },
        "overallTTC": {
            "friendly": "03h:01m",
            "raw": 10891.79411764706,
            "friendly_no_business": "13h:56m",
            "raw_no_business": 50168,
            "percentileRanks": [
                {
                    "key": "30m:00s",
                    "value": 29.41,
                    "count": 0
                },
                {
                    "key": "01h:00m",
                    "value": 44.12,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 64.71,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "30m:00s",
                    "value": 20.59,
                    "count": 0
                },
                {
                    "key": "01h:00m",
                    "value": 41.18,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 58.82,
                    "count": 0
                }
            ],
            "within_sla": 15,
            "within_sla_percentage_friendly": 44.12,
            "sla_breach": 19,
            "sla_breach_percentage_friendly": 55.88
        },
        "dailyStats": [
            {
                "timestamp": 1683586800000,
                "date": "Tue, 9th May",
                "messages": {
                    "sent": 55,
                    "forward": 6,
                    "reply": 42,
                    "received": 82
                },
                "overallTTR": {
                    "raw": 9997.42857142857,
                    "raw_no_business": 48900.90476190476
                },
                "overallTTF": {
                    "raw": 4988,
                    "raw_no_business": 14394
                },
                "initialTTR": {
                    "raw": 7908.48,
                    "raw_no_business": 39731.56
                },
                "threads": {
                    "total": 36,
                    "have_replies_from_agents": 14,
                    "have_no_replies_from_agents": 22,
                    "completionRatio": 38.89
                }
            },
            {
                "timestamp": 1683673200000,
                "date": "Wed, 10th May",
                "messages": {
                    "sent": 65,
                    "forward": 11,
                    "reply": 48,
                    "received": 99
                },
                "overallTTR": {
                    "raw": 8396.8125,
                    "raw_no_business": 25799.708333333332
                },
                "overallTTF": {
                    "raw": 4055.818181818182,
                    "raw_no_business": 9524
                },
                "initialTTR": {
                    "raw": 9729.0625,
                    "raw_no_business": 30389.5
                },
                "threads": {
                    "total": 41,
                    "have_replies_from_agents": 13,
                    "have_no_replies_from_agents": 28,
                    "completionRatio": 31.71
                }
            },
            {
                "timestamp": 1683759600000,
                "date": "Thu, 11th May",
                "messages": {
                    "sent": 63,
                    "forward": 10,
                    "reply": 44,
                    "received": 91
                },
                "overallTTR": {
                    "raw": 7120.477272727273,
                    "raw_no_business": 21532.295454545456
                },
                "overallTTF": {
                    "raw": 3698.6,
                    "raw_no_business": 10325.3
                },
                "initialTTR": {
                    "raw": 5763.416666666667,
                    "raw_no_business": 16981.083333333332
                },
                "threads": {
                    "total": 44,
                    "have_replies_from_agents": 13,
                    "have_no_replies_from_agents": 31,
                    "completionRatio": 29.55
                }
            },
            {
                "timestamp": 1683846000000,
                "date": "Fri, 12th May",
                "messages": {
                    "sent": 54,
                    "forward": 9,
                    "reply": 39,
                    "received": 93
                },
                "overallTTR": {
                    "raw": 7652.615384615385,
                    "raw_no_business": 22606.51282051282
                },
                "overallTTF": {
                    "raw": 33410.555555555555,
                    "raw_no_business": 108003
                },
                "initialTTR": {
                    "raw": 9996.9375,
                    "raw_no_business": 35402.25
                },
                "threads": {
                    "total": 47,
                    "have_replies_from_agents": 13,
                    "have_no_replies_from_agents": 34,
                    "completionRatio": 27.66
                }
            },
            {
                "timestamp": 1683932400000,
                "date": "Sat, 13th May",
                "messages": {
                    "sent": 5,
                    "forward": 2,
                    "reply": 2,
                    "received": 10
                },
                "overallTTR": {
                    "raw": 0,
                    "raw_no_business": 21699
                },
                "overallTTF": {
                    "raw": 72491,
                    "raw_no_business": 270341
                },
                "initialTTR": {
                    "raw": 7223,
                    "raw_no_business": 7262
                },
                "threads": {
                    "total": 2,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 2,
                    "completionRatio": 0
                }
            },
            {
                "timestamp": 1684018800000,
                "date": "Sun, 14th May",
                "messages": {
                    "sent": 3,
                    "forward": 3,
                    "reply": 0,
                    "received": 5
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": 0,
                    "raw_no_business": 38759.666666666664
                },
                "initialTTR": {
                    "raw": 0,
                    "raw_no_business": 1541
                },
                "threads": {
                    "total": 2,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 2,
                    "completionRatio": 0
                }
            },
            {
                "timestamp": 1684105200000,
                "date": "Mon, 15th May",
                "messages": {
                    "sent": 56,
                    "forward": 11,
                    "reply": 39,
                    "received": 81
                },
                "overallTTR": {
                    "raw": 5910.974358974359,
                    "raw_no_business": 41860.846153846156
                },
                "overallTTF": {
                    "raw": 11344.09090909091,
                    "raw_no_business": 68502.27272727272
                },
                "initialTTR": {
                    "raw": 4926.935483870968,
                    "raw_no_business": 36970.709677419356
                },
                "threads": {
                    "total": 42,
                    "have_replies_from_agents": 15,
                    "have_no_replies_from_agents": 27,
                    "completionRatio": 35.71
                }
            },
            {
                "timestamp": 1684191600000,
                "date": "Tue, 16th May",
                "messages": {
                    "sent": 82,
                    "forward": 17,
                    "reply": 58,
                    "received": 117
                },
                "overallTTR": {
                    "raw": 4070.5862068965516,
                    "raw_no_business": 13979.879310344828
                },
                "overallTTF": {
                    "raw": 18770.882352941175,
                    "raw_no_business": 91375.05882352941
                },
                "initialTTR": {
                    "raw": 6139.086956521739,
                    "raw_no_business": 26194.456521739132
                },
                "threads": {
                    "total": 58,
                    "have_replies_from_agents": 20,
                    "have_no_replies_from_agents": 38,
                    "completionRatio": 34.48
                }
            }
        ]
    },
    "all_agent_stats": {
        "maxima": {
            "name": "Total",
            "threads.total": 319,
            "threads.internal": 11,
            "threads.inbound": 271,
            "threads.outbound": 37,
            "threads.sent_internally": 45,
            "threads.await_customer": 88,
            "threads.await_agent": 152,
            "threads.closed": 34,
            "threads.have_replies": 243,
            "threads.handledRate.rate": 38.24,
            "messages.received.count": 578,
            "messages.received.initial": 264,
            "messages.received.replies": 218,
            "messages.received.forward": 69,
            "messages.received.follow_up": 27,
            "messages.received.avg_first_wait": "94h:50m",
            "messages.received.avg_wait": "92h:49m",
            "messages.sent.count": 383,
            "messages.sent.initial": 41,
            "messages.sent.replies": 272,
            "messages.sent.forward": 69,
            "messages.sent.follow_up": 1,
            "overallTTR.friendly": "01h:56m",
            "overallTTR.friendly_no_business": "07h:46m",
            "overallTTR.deviation_friendly": "15m:22s",
            "overallTTR.deviation_friendly_no_business": "13m:50s",
            "overallTTR.median_friendly": "18m:55s",
            "overallTTR.median_friendly_no_business": "22m:36s",
            "overallTTR.consistency_score": "18.81%",
            "overallTTR.consistency_score_no_business": "38.83%",
            "overallTTR.within_sla": 200,
            "overallTTR.within_sla_percentage_friendly": 73.53,
            "overallTTR.sla_breach": 72,
            "overallTTR.sla_breach_percentage_friendly": 26.47,
            "overallTTR.excluded_from_sla": 0,
            "overallTTR.excluded_from_sla_percentage_friendly": 0,
            "initialTTR.friendly": "02h:00m",
            "initialTTR.friendly_no_business": "08h:14m",
            "initialTTR.deviation_friendly": "16m:55s",
            "initialTTR.deviation_friendly_no_business": "16m:19s",
            "initialTTR.median_friendly": "20m:06s",
            "initialTTR.median_friendly_no_business": "24m:09s",
            "initialTTR.consistency_score": "15.84%",
            "initialTTR.consistency_score_no_business": "32.44%",
            "initialTTR.within_sla": 147,
            "initialTTR.within_sla_percentage_friendly": 71.71,
            "initialTTR.sla_breach": 58,
            "initialTTR.sla_breach_percentage_friendly": 28.29,
            "initialTTR.excluded_from_sla": 0,
            "initialTTR.excluded_from_sla_percentage_friendly": 0,
            "overallTTC.friendly": "03h:01m",
            "overallTTC.friendly_no_business": "13h:56m",
            "overallTTC.within_sla": 15,
            "overallTTC.within_sla_percentage_friendly": 44.12,
            "overallTTC.sla_breach": 19,
            "overallTTC.sla_breach_percentage_friendly": 55.88,
            "overallTTF.friendly": "04h:01m",
            "overallTTF.friendly_no_business": "17h:01m"
        },
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 85,
                        "internal": 3,
                        "inbound": 76,
                        "outbound": 6,
                        "sent_internally": 16,
                        "await_customer": 21,
                        "await_agent": 36,
                        "closed": 12,
                        "have_replies": 75,
                        "have_initial_replies": 74,
                        "handledRate": {
                            "rate": 38.82
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 113,
                            "initial": 5,
                            "replies": 83,
                            "forward": 25,
                            "follow_up": 0,
                            "initial_replies": 69,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 109,
                            "initial": 23,
                            "replies": 62,
                            "forward": 23,
                            "follow_up": 1,
                            "initial_replies": 5,
                            "dailyStats": [],
                            "avg_wait": "92h:19m",
                            "avg_wait_raw": 332372,
                            "avg_first_wait": "75h:06m",
                            "avg_first_wait_raw": 270376
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:24m",
                        "raw": 5088.036144578313,
                        "friendly_no_business": "03h:54m",
                        "raw_no_business": 14057.44578313253,
                        "deviation_friendly": "14m:02s",
                        "deviation_raw": 842,
                        "deviation_friendly_no_business": "15m:16s",
                        "deviation_raw_no_business": 916,
                        "median_friendly": "18m:55s",
                        "median_raw": 1134.96875,
                        "median_friendly_no_business": "22m:28s",
                        "median_raw_no_business": 1347.96875,
                        "consistency_score": "25.81%",
                        "consistency_score_no_business": "32.05%",
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 72.29,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 74.7,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 86.75,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 69.88,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 72.29,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 83.13,
                                "count": 0
                            }
                        ],
                        "within_sla": 62,
                        "within_sla_percentage_friendly": 74.7,
                        "sla_breach": 21,
                        "sla_breach_percentage_friendly": 25.3,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "02h:14m",
                        "raw": 8052.96,
                        "friendly_no_business": "07h:57m",
                        "raw_no_business": 28659.88
                    },
                    "initialTTR": {
                        "friendly": "01h:33m",
                        "raw": 5636.753623188406,
                        "friendly_no_business": "04h:53m",
                        "raw_no_business": 17619.782608695652,
                        "deviation_friendly": "15m:16s",
                        "deviation_raw": 916,
                        "deviation_friendly_no_business": "17m:38s",
                        "deviation_raw_no_business": 1058,
                        "median_friendly": "19m:30s",
                        "median_raw": 1169.96875,
                        "median_friendly_no_business": "24m:09s",
                        "median_raw_no_business": 1448.96875,
                        "consistency_score": "21.71%",
                        "consistency_score_no_business": "26.98%",
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 71.01,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 73.91,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 85.51,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 68.12,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 71.01,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 81.16,
                                "count": 0
                            }
                        ],
                        "within_sla": 51,
                        "within_sla_percentage_friendly": 73.91,
                        "sla_breach": 18,
                        "sla_breach_percentage_friendly": 26.09,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "01h:35m",
                        "raw": 5706.666666666667,
                        "friendly_no_business": "09h:20m",
                        "raw_no_business": 33655.333333333336,
                        "within_sla": 5,
                        "within_sla_percentage_friendly": 41.67,
                        "sla_breach": 7,
                        "sla_breach_percentage_friendly": 58.33,
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 33.33,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 41.67,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 58.33,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 25,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 33.33,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 41.67,
                                "count": 0
                            }
                        ]
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 76,
                        "internal": 3,
                        "inbound": 65,
                        "outbound": 8,
                        "sent_internally": 10,
                        "await_customer": 26,
                        "await_agent": 33,
                        "closed": 7,
                        "have_replies": 61,
                        "have_initial_replies": 55,
                        "handledRate": {
                            "rate": 43.42
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 84,
                            "initial": 9,
                            "replies": 65,
                            "forward": 10,
                            "follow_up": 0,
                            "initial_replies": 49,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 90,
                            "initial": 31,
                            "replies": 43,
                            "forward": 10,
                            "follow_up": 6,
                            "initial_replies": 6,
                            "dailyStats": [],
                            "avg_wait": "107h:08m",
                            "avg_wait_raw": 385699,
                            "avg_first_wait": "78h:05m",
                            "avg_first_wait_raw": 281141
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:43m",
                        "raw": 6215.4,
                        "friendly_no_business": "07h:55m",
                        "raw_no_business": 28512.753846153846,
                        "deviation_friendly": "11m:30s",
                        "deviation_raw": 690,
                        "deviation_friendly_no_business": "10m:04s",
                        "deviation_raw_no_business": 604,
                        "median_friendly": "18m:33s",
                        "median_raw": 1112.9921875,
                        "median_friendly_no_business": "19m:45s",
                        "median_raw_no_business": 1184.9375,
                        "consistency_score": "38%",
                        "consistency_score_no_business": "49.03%",
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 70.77,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 84.62,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 69.23,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 76.92,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 81.54,
                                "count": 0
                            }
                        ],
                        "within_sla": 52,
                        "within_sla_percentage_friendly": 80,
                        "sla_breach": 13,
                        "sla_breach_percentage_friendly": 20,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "06h:19m",
                        "raw": 22788.8,
                        "friendly_no_business": "29h:02m",
                        "raw_no_business": 104542.8
                    },
                    "initialTTR": {
                        "friendly": "01h:42m",
                        "raw": 6130.857142857143,
                        "friendly_no_business": "07h:38m",
                        "raw_no_business": 27532.591836734693,
                        "deviation_friendly": "12m:19s",
                        "deviation_raw": 739,
                        "deviation_friendly_no_business": "09m:30s",
                        "deviation_raw_no_business": 570,
                        "median_friendly": "18m:42s",
                        "median_raw": 1121.9921875,
                        "median_friendly_no_business": "20m:46s",
                        "median_raw_no_business": 1245.9375,
                        "consistency_score": "34.14%",
                        "consistency_score_no_business": "54.25%",
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 69.39,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 79.59,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 85.71,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 67.35,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 75.51,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 81.63,
                                "count": 0
                            }
                        ],
                        "within_sla": 39,
                        "within_sla_percentage_friendly": 79.59,
                        "sla_breach": 10,
                        "sla_breach_percentage_friendly": 20.41,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "04h:26m",
                        "raw": 15967,
                        "friendly_no_business": "20h:09m",
                        "raw_no_business": 72572.28571428571,
                        "within_sla": 3,
                        "within_sla_percentage_friendly": 42.86,
                        "sla_breach": 4,
                        "sla_breach_percentage_friendly": 57.14,
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 28.57,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 42.86,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.43,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 28.57,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 42.86,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.43,
                                "count": 0
                            }
                        ]
                    }
                }
            ],
            "first_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
            "from": 1,
            "last_page": 5,
            "last_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=5",
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=2",
                    "label": "Next »",
                    "active": false
                }
            ],
            "next_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=2",
            "path": "https://timetoreply.local/api/reports/overview",
            "per_page": 2,
            "prev_page_url": null,
            "to": 2,
            "total": 10
        }
    },
    "all_domain_stats": {
        "maxima": [],
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "timetoreply.com",
                    "threads": {
                        "total": 319,
                        "internal": 11,
                        "inbound": 271,
                        "outbound": 37,
                        "sent_internally": 45,
                        "await_customer": 88,
                        "await_agent": 152,
                        "closed": 34,
                        "have_replies": 243,
                        "have_initial_replies": 230,
                        "handledRate": {
                            "rate": 38.24
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 383,
                            "initial": 41,
                            "replies": 272,
                            "forward": 69,
                            "follow_up": 1,
                            "initial_replies": 205,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 383,
                            "initial": 41,
                            "replies": 272,
                            "forward": 69,
                            "follow_up": 1,
                            "initial_replies": 205,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:56m",
                        "raw": 6990.125,
                        "friendly_no_business": "07h:46m",
                        "raw_no_business": 27970.966911764706,
                        "deviation_friendly": "15m:22s",
                        "deviation_raw": 921.5,
                        "deviation_friendly_no_business": "13m:50s",
                        "deviation_raw_no_business": 829.5,
                        "median_friendly": "18m:55s",
                        "median_raw": 1134.9921875,
                        "median_friendly_no_business": "22m:36s",
                        "median_raw_no_business": 1355.984375,
                        "consistency_score": "18.81%",
                        "consistency_score_no_business": "38.83%",
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 68.01,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 73.53,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 80.88,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 65.44,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 70.96,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 77.57,
                                "count": 0
                            }
                        ],
                        "within_sla": 200,
                        "within_sla_percentage_friendly": 73.53,
                        "sla_breach": 72,
                        "sla_breach_percentage_friendly": 26.47,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "04h:01m",
                        "raw": 14508.623188405798,
                        "friendly_no_business": "17h:01m",
                        "raw_no_business": 61308.260869565216
                    },
                    "initialTTR": {
                        "friendly": "02h:00m",
                        "raw": 7248.809756097561,
                        "friendly_no_business": "08h:14m",
                        "raw_no_business": 29644.126829268294,
                        "deviation_friendly": "16m:55s",
                        "deviation_raw": 1015,
                        "deviation_friendly_no_business": "16m:19s",
                        "deviation_raw_no_business": 979,
                        "median_friendly": "20m:06s",
                        "median_raw": 1205.9921875,
                        "median_friendly_no_business": "24m:09s",
                        "median_raw_no_business": 1448.984375,
                        "consistency_score": "15.84%",
                        "consistency_score_no_business": "32.44%",
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 65.85,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 71.71,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 80,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 63.9,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 69.27,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 76.59,
                                "count": 0
                            }
                        ],
                        "within_sla": 147,
                        "within_sla_percentage_friendly": 71.71,
                        "sla_breach": 58,
                        "sla_breach_percentage_friendly": 28.29,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "03h:01m",
                        "raw": 10891.79411764706,
                        "friendly_no_business": "13h:56m",
                        "raw_no_business": 50168,
                        "within_sla": 15,
                        "within_sla_percentage_friendly": 44.12,
                        "sla_breach": 19,
                        "sla_breach_percentage_friendly": 55.88,
                        "percentileRanks": [
                            {
                                "key": "30m:00s",
                                "value": 29.41,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 44.12,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 64.71,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "30m:00s",
                                "value": 20.59,
                                "count": 0
                            },
                            {
                                "key": "01h:00m",
                                "value": 41.18,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 58.82,
                                "count": 0
                            }
                        ]
                    }
                }
            ],
            "first_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next »",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "https://timetoreply.local/api/reports/overview",
            "per_page": 2,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    },
    "all_customer_stats": {
        "maxima": [],
        "data": {
            "current_page": 1,
            "data": [],
            "first_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
            "from": null,
            "last_page": 1,
            "last_page_url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/overview?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&direction=desc&per_page_agents=2&page_agents=1&per_page_contacts=2&page_contacts=1&per_page_domains=2&page_domains=1&per_page=2&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next »",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "https://timetoreply.local/api/reports/overview",
            "per_page": 2,
            "prev_page_url": null,
            "to": null,
            "total": 0
        }
    },
    "args": {
        "model": {
            "id": null,
            "name": "timetoreply.com",
            "email_usernames": [
                "timetoreply.com"
            ],
            "model_type": "Contact",
            "icon": "user"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    },
    "mailbox_names": {
        "data": {
            "[email protected]": "Elmore Becker",
            "[email protected]": "Treva Bradtke"
        },
        "enabled": false
    }
}
 

Request   

GET api/reports/overview

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: timetoreply.com

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Contact

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

sort_by   string  optional  

Field Name to sort agents by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

per_page_agents   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

page_agents   integer  optional  

For paginated results, which page to get. Example: 1

per_page_contacts   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

page_contacts   integer  optional  

For paginated results, which page to get. Example: 1

per_page_domains   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

page_domains   integer  optional  

For paginated results, which page to get. Example: 1

Productivity

Productivity - Report

requires authentication

Productivity Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/productivity"
);

const params = {
    "date": "2020-01-01",
    "model": "My Company",
    "model_type": "Internal",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "label[0]": "incidunt",
    "per_page": "2",
    "sort_by": "threads.total",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/productivity',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'date' => '2020-01-01',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'label[0]' => 'incidunt',
            'per_page' => '2',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/productivity?date=2020-01-01&model=My+Company&model_type=Internal&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&label[]=incidunt&per_page=2&sort_by=threads.total&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "email_volumes": {
        "columns": [
            {
                "field": "name",
                "label": "Mailbox",
                "sortable": true,
                "visible": true,
                "subheading": "Overall:",
                "meta": {
                    "hasEmails": true,
                    "tooltip": "These are the email accounts you're currently tracking."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "messages_received_count",
                "label": "Emails Received",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "hasSpark": true,
                    "tooltip": "The total number of emails received for this period, regardless of business hours."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "messages_sent_count",
                "label": "Emails Sent",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "hasSpark": true,
                    "tooltip": "The total number of emails sent for the period regardless of business hours."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "messages_sent_replies_percent",
                "label": "% Replies Sent",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The percentage of sent emails that were replies, regardless of business hours.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "messages_sent_initial_percent",
                "label": "% New Emails Sent",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The percentage of sent emails that were new emails (i.e. not a reply or a forward) regardless of business hours.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "messages_sent_forwards_percent",
                "label": "% Forwards Sent",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The percentage of sent emails that were emails that were forwards regardless of business hours.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "messages_sent_follow_ups_percent",
                "label": "% Follow-Ups Sent",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The percentage of sent emails that were emails that were follow-ups regardless of business hours.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            }
        ],
        "data": [
            {
                "name": "[email protected]",
                "messages_received_count": {
                    "display": 0,
                    "spark": {
                        "Tue 24th Dec": 0,
                        "Wed 25th Dec": 0,
                        "Thu 26th Dec": 0,
                        "Fri 27th Dec": 0,
                        "Sat 28th Dec": 0,
                        "Sun 29th Dec": 0,
                        "Mon 30th Dec": 0,
                        "Tue 31st Dec": 0,
                        "Wed 1st Jan": 0
                    }
                },
                "messages_sent_count": {
                    "display": 0,
                    "spark": {
                        "Tue 24th Dec": 0,
                        "Wed 25th Dec": 0,
                        "Thu 26th Dec": 0,
                        "Fri 27th Dec": 0,
                        "Sat 28th Dec": 0,
                        "Sun 29th Dec": 0,
                        "Mon 30th Dec": 0,
                        "Tue 31st Dec": 0,
                        "Wed 1st Jan": 0
                    }
                },
                "messages_sent_replies_percent": {
                    "display": 0,
                    "percentage": 0
                },
                "messages_sent_initial_percent": {
                    "display": 0,
                    "percentage": 0
                },
                "messages_sent_forwards_percent": {
                    "display": 0,
                    "percentage": 0
                },
                "messages_sent_follow_ups_percent": {
                    "display": 0,
                    "percentage": 0
                }
            },
            {
                "name": "[email protected]",
                "messages_received_count": {
                    "display": 0,
                    "spark": {
                        "Tue 24th Dec": 0,
                        "Wed 25th Dec": 0,
                        "Thu 26th Dec": 0,
                        "Fri 27th Dec": 0,
                        "Sat 28th Dec": 0,
                        "Sun 29th Dec": 0,
                        "Mon 30th Dec": 0,
                        "Tue 31st Dec": 0,
                        "Wed 1st Jan": 0
                    }
                },
                "messages_sent_count": {
                    "display": 0,
                    "spark": {
                        "Tue 24th Dec": 0,
                        "Wed 25th Dec": 0,
                        "Thu 26th Dec": 0,
                        "Fri 27th Dec": 0,
                        "Sat 28th Dec": 0,
                        "Sun 29th Dec": 0,
                        "Mon 30th Dec": 0,
                        "Tue 31st Dec": 0,
                        "Wed 1st Jan": 0
                    }
                },
                "messages_sent_replies_percent": {
                    "display": 0,
                    "percentage": 0
                },
                "messages_sent_initial_percent": {
                    "display": 0,
                    "percentage": 0
                },
                "messages_sent_forwards_percent": {
                    "display": 0,
                    "percentage": 0
                },
                "messages_sent_follow_ups_percent": {
                    "display": 0,
                    "percentage": 0
                }
            }
        ],
        "default_sort": [
            "messages_sent_count",
            "desc"
        ],
        "default_sort_direction": "desc",
        "loading": false,
        "per_page": 2,
        "total": 8,
        "page": 1
    },
    "activity": {
        "columns": [
            {
                "field": "name",
                "label": "Mailbox",
                "sortable": true,
                "visible": true,
                "subheading": "Overall:",
                "meta": {
                    "hasEmails": true,
                    "tooltip": "These are the email accounts you're currently tracking."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "first_activity",
                "label": "Time of First Activity",
                "sortable": true,
                "visible": true,
                "meta": {
                    "tooltip": "The time that the first email was sent by the mailbox on the date you are viewing for the report. (uses the mailbox's own timezone if available)"
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "last_activity",
                "label": "Time of Last Activity",
                "sortable": true,
                "visible": true,
                "meta": {
                    "tooltip": "The time that the last email was sent by the mailbox on the date you are viewing for the report. (uses the mailbox's own timezone if available)"
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "in_business_hours",
                "label": "Sent Within Business Hours",
                "sortable": true,
                "visible": true,
                "meta": {
                    "tooltip": "The total number of emails that were sent during business hours for the date you are viewing the report. (uses the mailbox's own timezone if available)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "out_business_hours",
                "label": "Sent Outside Business Hours",
                "sortable": true,
                "visible": true,
                "meta": {
                    "tooltip": "The total number of emails that were sent outside business hours for the date you are viewing the report. (uses the mailbox's own timezone if available)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "received_per_hour",
                "label": "Average Emails Received Per Hour",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The average number of emails that were received by the mailbox per hour (ignoring business hours) for the date you are viewing the report."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "sent_per_hour",
                "label": "Average Emails Sent Per Hour",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The average number of emails that were sent by the mailbox per hour (ignoring business hours) for the date you are viewing the report."
                },
                "headerClass": "has-tooltip"
            }
        ],
        "data": [
            {
                "name": "[email protected]",
                "first_activity": "N/A",
                "last_activity": "N/A",
                "in_business_hours": {
                    "display": 0,
                    "percentage": 0
                },
                "out_business_hours": {
                    "display": 0,
                    "percentage": 0
                },
                "received_per_hour": "0",
                "sent_per_hour": "0"
            },
            {
                "name": "[email protected]",
                "first_activity": "N/A",
                "last_activity": "N/A",
                "in_business_hours": {
                    "display": 0,
                    "percentage": 0
                },
                "out_business_hours": {
                    "display": 0,
                    "percentage": 0
                },
                "received_per_hour": "0",
                "sent_per_hour": "0"
            }
        ],
        "default_sort": [
            "first_activity",
            "asc"
        ],
        "default_sort_direction": "desc",
        "loading": false,
        "per_page": 2,
        "total": 8,
        "page": 1
    },
    "conversations": {
        "columns": [
            {
                "field": "name",
                "label": "Mailbox",
                "sortable": true,
                "visible": true,
                "subheading": "Overall:",
                "meta": {
                    "hasEmails": true,
                    "tooltip": "These are the email accounts you're currently tracking."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "threads_count",
                "label": "Conversations",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The total number of conversations (or email threads) that each mailbox was part of for the date range you are viewing. A conversation is a group of emails received and sent that all form part of the same thread."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "threads_inbound",
                "label": "Inbound Conversations",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The number of conversations that were started by someone outside of your company, i.e. the first email in the conversation was from someone outside of your company.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "threads_outbound",
                "label": "Outbound Conversations",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The number of conversations that were started by someone in your company, i.e. the first email in the conversation was from someone inside of your company to someone external to your company.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "threads_internal",
                "label": "Internal Conversations",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The number of conversations where all participants have been in your company.",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "threads_await_agent",
                "label": "Conversations waiting for a reply",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The last email was from someone external, so the ball's in your court to reply. For better accuracy, this should be used in conjunction with our \"close conversations\" function that allows you to mark conversations that have been completed or no longer require a reply as \"closed\".",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip",
                "cellClass": "has-background-white-ter"
            },
            {
                "field": "threads_closed",
                "label": "Conversations closed",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The number of conversations that the mailbox that you are viewing has been part of that have been marked as \"closed\" using our \"close conversations\" functionality. You can find this under TOOLS > SETTINGS > COMPANY > CLOSE CONVERSATION SETTINGS",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip",
                "cellClass": "has-background-white-ter"
            }
        ],
        "data": [
            {
                "name": "[email protected]",
                "threads_count": "0",
                "threads_inbound": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_outbound": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_internal": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_await_agent": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_closed": {
                    "display": 0,
                    "percentage": 0
                }
            },
            {
                "name": "[email protected]",
                "threads_count": "0",
                "threads_inbound": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_outbound": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_internal": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_await_agent": {
                    "display": 0,
                    "percentage": 0
                },
                "threads_closed": {
                    "display": 0,
                    "percentage": 0
                }
            }
        ],
        "default_sort": [
            "threads_count",
            "desc"
        ],
        "default_sort_direction": "desc",
        "loading": false,
        "per_page": 2,
        "total": 8,
        "page": 1
    },
    "average_reply_times": {
        "columns": [
            {
                "field": "name",
                "label": "Mailbox",
                "sortable": true,
                "visible": true,
                "subheading": "Overall:",
                "meta": {
                    "hasEmails": true,
                    "tooltip": "These are the email accounts you're currently tracking."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "initialTTR7Days",
                "label": "7 day avg. First Reply Time",
                "centered": true,
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "tooltip": "This is your average First Reply time for the last 7 days prior to the date you have selected for the report."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "initialTTR",
                "label": "Current avg. First Reply Time",
                "centered": true,
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "hasComparison": true,
                    "tooltip": "The average First Reply Time is the average time it takes to reply to the first email in a new email conversation. It only looks at the first reply that goes back to the conversation starter, the first \"from\". This average takes business hours into account and only calculates the time that has elapsed during business hours when calculating the average."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "overallTTR7Days",
                "label": "7 days avg. Overall Reply Time",
                "centered": true,
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "tooltip": "This is your average overall reply time for the last 7 days prior to the date you have selected for this report."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "overallTTR",
                "label": "Current avg. Overall Reply Time",
                "centered": true,
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "hasComparison": true,
                    "tooltip": "The average Overall Reply Time is the average time it takes to reply to any email. First and all subsequent replies are included in the avg. Overall Reply Time. This average takes business hours into account, and only calculates the time that has elapsed during business hours when calculating the average."
                },
                "headerClass": "has-tooltip"
            }
        ],
        "data": [
            {
                "name": "[email protected]",
                "initialTTR7Days": "N/A",
                "initialTTR": {
                    "display": "N/A",
                    "comparison": {
                        "value": "N/A",
                        "improved": true,
                        "separatedColumns": true
                    }
                },
                "overallTTR7Days": "N/A",
                "overallTTR": {
                    "display": "N/A",
                    "comparison": {
                        "value": "N/A",
                        "improved": true,
                        "separatedColumns": true
                    }
                }
            },
            {
                "name": "[email protected]",
                "initialTTR7Days": "N/A",
                "initialTTR": {
                    "display": "N/A",
                    "comparison": {
                        "value": "N/A",
                        "improved": true,
                        "separatedColumns": true
                    }
                },
                "overallTTR7Days": "N/A",
                "overallTTR": {
                    "display": "N/A",
                    "comparison": {
                        "value": "N/A",
                        "improved": true,
                        "separatedColumns": true
                    }
                }
            }
        ],
        "default_sort": [
            "initialTTR",
            "asc"
        ],
        "default_sort_direction": "asc",
        "loading": false,
        "per_page": 2,
        "total": 8,
        "page": 1
    },
    "responsiveness": {
        "columns": [
            {
                "field": "name",
                "label": "Mailbox",
                "sortable": true,
                "visible": true,
                "subheading": "Overall:",
                "meta": {
                    "hasEmails": true,
                    "tooltip": "These are the email accounts you're currently tracking."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_count",
                "label": "Replies Sent",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "The total replies that were sent (used to calculate reply times), regardless of business hours."
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_under_1800",
                "label": "Replies under 30m:00s",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 30m:00s (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_under_3600",
                "label": "Replies under 01h:00m",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 01h:00m (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_under_7200",
                "label": "Replies under 02h:00m",
                "sortable": true,
                "visible": true,
                "subheading": "0",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 02h:00m (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            }
        ],
        "data": [
            {
                "name": "[email protected]",
                "replies_count": "0",
                "replies_under_1800": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_3600": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_7200": {
                    "display": 0,
                    "percentage": 0
                }
            },
            {
                "name": "[email protected]",
                "replies_count": "0",
                "replies_under_1800": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_3600": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_7200": {
                    "display": 0,
                    "percentage": 0
                }
            }
        ],
        "default_sort": [
            "replies_under_3600",
            "desc"
        ],
        "default_sort_direction": "desc",
        "loading": false,
        "per_page": 2,
        "total": 8,
        "page": 1
    },
    "stats": {
        "messages": {
            "received": {
                "hourOfDay": []
            },
            "sent": {
                "hourOfDay": []
            }
        }
    },
    "page": 1,
    "total": 8,
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    }
}
 

Request   

GET api/reports/productivity

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

date   string  optional  

The date of your request in the format "YYYY-MM-DD". Example: 2020-01-01

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort agents by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Ratio

Ratio - Report

requires authentication

Ratio Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/ratio"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "esse",
    "thread_type": "inbound",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "sort_by": "threads.total",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/ratio',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'esse',
            'thread_type' => 'inbound',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/ratio?from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=esse&thread_type=inbound&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&sort_by=threads.total&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "threads": {
            "total": 182,
            "internal": 0,
            "inbound": 182,
            "outbound": 0,
            "sent_internally": 0,
            "await_customer": 0,
            "await_agent": 0,
            "closed": 0,
            "have_replies": 0,
            "have_replies_from_agents": 153,
            "have_no_replies_from_agents": 29,
            "completionRatio": {
                "ratio": 81.87,
                "numerator": 149,
                "denominator": 182
            },
            "handledRate": {
                "rate": 0,
                "numerator": 0,
                "denominator": 182
            },
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 433,
            "initial": 0,
            "replies": 0,
            "forward": 0,
            "follow_up": 0,
            "received": {
                "count": 253,
                "initial": 0,
                "replies": 0,
                "forward": 0,
                "follow_up": 0,
                "initial_replies": 0,
                "dayOfWeek": {
                    "Monday": 31,
                    "Tuesday": 43.5,
                    "Wednesday": 40,
                    "Thursday": 49,
                    "Friday": 37,
                    "Saturday": 5,
                    "Sunday": 4
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                },
                "avg_wait": "N/A",
                "avg_wait_raw": null,
                "avg_first_wait": "N/A",
                "avg_first_wait_raw": null
            },
            "sent": {
                "count": 231,
                "initial": 0,
                "replies": 181,
                "forward": 50,
                "follow_up": 0,
                "initial_replies": 149,
                "dayOfWeek": {
                    "Monday": 31,
                    "Tuesday": 41,
                    "Wednesday": 39,
                    "Thursday": 45,
                    "Friday": 29,
                    "Saturday": 2,
                    "Sunday": 3
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "N/A",
            "raw": null,
            "friendly_no_business": "N/A",
            "raw_no_business": null,
            "deviation_friendly": "N/A",
            "deviation_raw": null,
            "deviation_friendly_no_business": "N/A",
            "deviation_raw_no_business": null,
            "median_friendly": "N/A",
            "median_raw": null,
            "median_friendly_no_business": "N/A",
            "median_raw_no_business": null,
            "consistency_score": "N/A",
            "consistency_score_no_business": "N/A",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": 0,
            "sla_breach": null,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 181,
            "excluded_from_sla_percentage_friendly": 100
        },
        "initialTTR": {
            "friendly": "01h:44m",
            "raw": 6249.181208053691,
            "friendly_no_business": "06h:21m",
            "raw_no_business": 22908.161073825504,
            "deviation_friendly": "15m:02s",
            "deviation_raw": 902,
            "deviation_friendly_no_business": "14m:24s",
            "deviation_raw_no_business": 864,
            "median_friendly": "18m:33s",
            "median_raw": 1112.9921875,
            "median_friendly_no_business": "21m:59s",
            "median_raw_no_business": 1318.984375,
            "consistency_score": "18.96%",
            "consistency_score_no_business": "34.5%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 149,
            "excluded_from_sla_percentage_friendly": 100
        },
        "overallTTF": {
            "friendly": "N/A",
            "raw": null,
            "friendly_no_business": "N/A",
            "raw_no_business": null
        },
        "overallTTC": {
            "friendly": "N/A",
            "raw": null,
            "friendly_no_business": "N/A",
            "raw_no_business": null,
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": 0,
            "sla_breach_percentage_friendly": "N/A"
        },
        "dailyStats": [
            {
                "timestamp": 1683586800000,
                "date": "Tue, 9th May",
                "messages": {
                    "sent": 31,
                    "forward": 3,
                    "reply": 28,
                    "received": 31
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 5181.777777777777,
                    "raw_no_business": 27186.222222222223,
                    "ttr_ratio": 1.29
                },
                "threads": {
                    "total": 18,
                    "have_replies_from_agents": 8,
                    "have_no_replies_from_agents": 10,
                    "completionRatio": 44.44,
                    "haveCustomerSuccess": 20,
                    "have_initial_replies_from_agents": 23
                }
            },
            {
                "timestamp": 1683673200000,
                "date": "Wed, 10th May",
                "messages": {
                    "sent": 39,
                    "forward": 8,
                    "reply": 31,
                    "received": 40
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 8981.08,
                    "raw_no_business": 22895.96,
                    "ttr_ratio": 0.59
                },
                "threads": {
                    "total": 26,
                    "have_replies_from_agents": 7,
                    "have_no_replies_from_agents": 19,
                    "completionRatio": 26.92,
                    "haveCustomerSuccess": 23,
                    "have_initial_replies_from_agents": 28
                }
            },
            {
                "timestamp": 1683759600000,
                "date": "Thu, 11th May",
                "messages": {
                    "sent": 45,
                    "forward": 9,
                    "reply": 36,
                    "received": 49
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 6356.53125,
                    "raw_no_business": 18955.90625,
                    "ttr_ratio": 0.71
                },
                "threads": {
                    "total": 32,
                    "have_replies_from_agents": 10,
                    "have_no_replies_from_agents": 22,
                    "completionRatio": 31.25,
                    "haveCustomerSuccess": 24,
                    "have_initial_replies_from_agents": 30
                }
            },
            {
                "timestamp": 1683846000000,
                "date": "Fri, 12th May",
                "messages": {
                    "sent": 29,
                    "forward": 6,
                    "reply": 23,
                    "received": 37
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 10499.777777777777,
                    "raw_no_business": 33115,
                    "ttr_ratio": 0.36
                },
                "threads": {
                    "total": 22,
                    "have_replies_from_agents": 8,
                    "have_no_replies_from_agents": 14,
                    "completionRatio": 36.36,
                    "haveCustomerSuccess": 14,
                    "have_initial_replies_from_agents": 18
                }
            },
            {
                "timestamp": 1683932400000,
                "date": "Sat, 13th May",
                "messages": {
                    "sent": 2,
                    "forward": 1,
                    "reply": 1,
                    "received": 5
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": null,
                    "raw_no_business": null,
                    "ttr_ratio": 0
                },
                "threads": {
                    "total": 1,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 1,
                    "completionRatio": 0,
                    "haveCustomerSuccess": 0,
                    "have_initial_replies_from_agents": 0
                }
            },
            {
                "timestamp": 1684018800000,
                "date": "Sun, 14th May",
                "messages": {
                    "sent": 3,
                    "forward": 3,
                    "reply": 0,
                    "received": 4
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 0,
                    "raw_no_business": 1541,
                    "ttr_ratio": 0
                },
                "threads": {
                    "total": 2,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 2,
                    "completionRatio": 0,
                    "haveCustomerSuccess": 0,
                    "have_initial_replies_from_agents": 0
                }
            },
            {
                "timestamp": 1684105200000,
                "date": "Mon, 15th May",
                "messages": {
                    "sent": 31,
                    "forward": 7,
                    "reply": 24,
                    "received": 31
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 4075.7,
                    "raw_no_business": 27053.25,
                    "ttr_ratio": 1.02
                },
                "threads": {
                    "total": 23,
                    "have_replies_from_agents": 7,
                    "have_no_replies_from_agents": 16,
                    "completionRatio": 30.43,
                    "haveCustomerSuccess": 16,
                    "have_initial_replies_from_agents": 20
                }
            },
            {
                "timestamp": 1684191600000,
                "date": "Tue, 16th May",
                "messages": {
                    "sent": 51,
                    "forward": 13,
                    "reply": 38,
                    "received": 56
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": 3983.1428571428573,
                    "raw_no_business": 17322.85714285714,
                    "ttr_ratio": 1.02
                },
                "threads": {
                    "total": 34,
                    "have_replies_from_agents": 14,
                    "have_no_replies_from_agents": 20,
                    "completionRatio": 41.18,
                    "haveCustomerSuccess": 23,
                    "have_initial_replies_from_agents": 30
                }
            }
        ]
    },
    "all_agent_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 0,
                    "inbound": 76,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 35,
                    "closed": 7,
                    "have_replies": 69,
                    "have_initial_replies": 68,
                    "handledRate": {
                        "rate": 9.21
                    },
                    "have_contact_success": 57,
                    "success_rate": 75,
                    "ttr_ratio": 0.8,
                    "initial_reply_rate": 89.47,
                    "success_time": 19219.263157894737,
                    "success_time_friendly": "05h:20m",
                    "have_initial_reply_rate": 89.47
                },
                "messages": {
                    "sent": {
                        "count": 104,
                        "initial": 0,
                        "replies": 81,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 68,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": null,
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "deviation_friendly": "N/A",
                    "deviation_raw": null,
                    "deviation_friendly_no_business": "N/A",
                    "deviation_raw_no_business": null,
                    "median_friendly": "N/A",
                    "median_raw": null,
                    "median_friendly_no_business": "N/A",
                    "median_raw_no_business": null,
                    "consistency_score": "N/A",
                    "consistency_score_no_business": "N/A",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 81,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null
                },
                "initialTTR": {
                    "friendly": "01h:34m",
                    "raw": 5657.838235294118,
                    "friendly_no_business": "04h:56m",
                    "raw_no_business": 17817.08823529412,
                    "deviation_friendly": "13m:47s",
                    "deviation_raw": 827,
                    "deviation_friendly_no_business": "16m:53s",
                    "deviation_raw_no_business": 1013,
                    "median_friendly": "15m:54s",
                    "median_raw": 954.46875,
                    "median_friendly_no_business": "22m:36s",
                    "median_raw_no_business": 1355.96875,
                    "consistency_score": "13.35%",
                    "consistency_score_no_business": "25.29%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 68,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:23m",
                    "raw": 4999.857142857143,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 65,
                    "internal": 0,
                    "inbound": 65,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 32,
                    "closed": 6,
                    "have_replies": 55,
                    "have_initial_replies": 49,
                    "handledRate": {
                        "rate": 9.23
                    },
                    "have_contact_success": 38,
                    "success_rate": 58.46,
                    "ttr_ratio": 0.57,
                    "initial_reply_rate": 75.38,
                    "success_time": 35411.31578947369,
                    "success_time_friendly": "09h:50m",
                    "have_initial_reply_rate": 75.38
                },
                "messages": {
                    "sent": {
                        "count": 69,
                        "initial": 0,
                        "replies": 61,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": null,
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "deviation_friendly": "N/A",
                    "deviation_raw": null,
                    "deviation_friendly_no_business": "N/A",
                    "deviation_raw_no_business": null,
                    "median_friendly": "N/A",
                    "median_raw": null,
                    "median_friendly_no_business": "N/A",
                    "median_raw_no_business": null,
                    "consistency_score": "N/A",
                    "consistency_score_no_business": "N/A",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 61,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "03h:50m",
                    "raw": 13828.166666666666,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "first_page_url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 4,
        "last_page_url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=4",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "https://timetoreply.local/api/reports/ratio?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
        "path": "https://timetoreply.local/api/reports/ratio",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 8
    },
    "maxima": {
        "threads.inbound": 76,
        "threads.ttr_ratio": 0.8,
        "threads.have_initial_replies": 68,
        "threads.initial_reply_rate": 89.47,
        "threads.have_contact_success": 57,
        "threads.success_rate": 75,
        "threads.await_agent": 35,
        "threads.closed": 7
    },
    "overall": {
        "total": 182,
        "have_initial_reply": 149,
        "success": 120,
        "avg_convo_length": 3.68,
        "have_initial_reply_rate": 81.87,
        "success_rate": 65.93,
        "success_time": 28207,
        "success_time_friendly": "07h:50m",
        "customer_reply_time": 21426,
        "customer_reply_time_friendly": "05h:57m",
        "avg_initial_reply_time": 6249.181208053691,
        "avg_initial_reply_time_friendly": "01h:44m",
        "ttr_ratio": 0.63
    },
    "contact_rate_data": {
        "total": [
            69,
            42,
            23,
            3,
            12
        ],
        "have_initial_reply": [
            69,
            42,
            23,
            3,
            12
        ],
        "success": [
            57,
            31,
            19,
            3,
            10
        ],
        "avg_convo_length": [
            3.49,
            3.81,
            3.79,
            4,
            4
        ],
        "have_initial_reply_rate": [
            100,
            100,
            100,
            100,
            100
        ],
        "success_rate": [
            82.61,
            73.81,
            82.61,
            100,
            83.33
        ],
        "success_time": [
            12370,
            32012,
            28307,
            20429,
            108833
        ],
        "success_time_friendly": [
            "03h:26m",
            "08h:53m",
            "07h:51m",
            "05h:40m",
            "30h:13m"
        ],
        "customer_reply_time": [
            12055,
            30452,
            20296,
            1667,
            54942
        ],
        "customer_reply_time_friendly": [
            "03h:20m",
            "08h:27m",
            "05h:38m",
            "27m:47s",
            "15h:15m"
        ],
        "avg_initial_reply_time": [
            313.4927536231884,
            1554.642857142857,
            7585.217391304348,
            18761.333333333332,
            51121.5
        ],
        "avg_initial_reply_time_friendly": [
            "05m:13s",
            "25m:55s",
            "02h:06m",
            "05h:12m",
            "14h:12m"
        ],
        "ttr_ratio": [
            15.81,
            2.85,
            0.65,
            0.32,
            0.1
        ]
    },
    "page": 1,
    "ttr_categories": [
        "< 15m",
        "15m - 1h",
        "1h - 4h",
        "4h - 8h",
        "> 8h"
    ],
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    }
}
 

Request   

GET api/reports/ratio

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

This field is provided simply for compatibility with other methods. It will always be set to "inbound" for this report. Example: inbound

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort agents by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Comparative

Comparative - Report

requires authentication

Comparative Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/comparative"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "consequatur",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/comparative',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'consequatur',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/comparative?from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=consequatur&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "replyTimePercentages": {
        "categories": [
            "[email protected]",
            "[email protected]"
        ],
        "series": [
            {
                "name": "Replies in under 30m:00s",
                "data": [
                    72.29,
                    70.77
                ],
                "index": 2,
                "legendIndex": 0,
                "stringKey": "30m:00s"
            },
            {
                "name": "Replies in under 01h:00m",
                "data": [
                    2.41,
                    9.23
                ],
                "index": 1,
                "legendIndex": 1,
                "stringKey": "01h:00m"
            },
            {
                "name": "Replies in under 02h:00m",
                "data": [
                    12.05,
                    4.62
                ],
                "index": 0,
                "legendIndex": 2,
                "stringKey": "02h:00m"
            }
        ]
    },
    "forwardTimePercentages": {
        "categories": [
            "[email protected]",
            "[email protected]"
        ],
        "series": [
            {
                "name": "Forwards in under 30m:00s",
                "data": [
                    0,
                    0
                ],
                "index": 2,
                "legendIndex": 0,
                "stringKey": "30m:00s"
            },
            {
                "name": "Forwards in under 01h:00m",
                "data": [
                    0,
                    0
                ],
                "index": 1,
                "legendIndex": 1,
                "stringKey": "01h:00m"
            },
            {
                "name": "Forwards in under 02h:00m",
                "data": [
                    0,
                    0
                ],
                "index": 0,
                "legendIndex": 2,
                "stringKey": "02h:00m"
            }
        ]
    },
    "agentStats": {
        "initialTTR.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 3,
                    "inbound": 65,
                    "outbound": 8,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 7,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.21
                    }
                },
                "messages": {
                    "sent": {
                        "count": 84,
                        "initial": 9,
                        "replies": 65,
                        "forward": 10,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 90,
                        "initial": 31,
                        "replies": 43,
                        "forward": 10,
                        "follow_up": 6,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:43m",
                    "raw": 6215.4,
                    "friendly_no_business": "07h:55m",
                    "raw_no_business": 28512.753846153846,
                    "deviation_friendly": "11m:30s",
                    "deviation_raw": 690,
                    "deviation_friendly_no_business": "10m:04s",
                    "deviation_raw_no_business": 604,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "19m:45s",
                    "median_raw_no_business": 1184.9375,
                    "consistency_score": "38%",
                    "consistency_score_no_business": "49.03%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 70.77,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 80,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 84.62,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 65,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "06h:19m",
                    "raw": 22788.8,
                    "friendly_no_business": "29h:02m",
                    "raw_no_business": 104542.8
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "04h:26m",
                    "raw": 15967,
                    "friendly_no_business": "20h:09m",
                    "raw_no_business": 72572.28571428571,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "messages.received.count": [
            {
                "name": "e[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 3,
                    "inbound": 65,
                    "outbound": 8,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 7,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.21
                    }
                },
                "messages": {
                    "sent": {
                        "count": 84,
                        "initial": 9,
                        "replies": 65,
                        "forward": 10,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 90,
                        "initial": 31,
                        "replies": 43,
                        "forward": 10,
                        "follow_up": 6,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:43m",
                    "raw": 6215.4,
                    "friendly_no_business": "07h:55m",
                    "raw_no_business": 28512.753846153846,
                    "deviation_friendly": "11m:30s",
                    "deviation_raw": 690,
                    "deviation_friendly_no_business": "10m:04s",
                    "deviation_raw_no_business": 604,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "19m:45s",
                    "median_raw_no_business": 1184.9375,
                    "consistency_score": "38%",
                    "consistency_score_no_business": "49.03%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 70.77,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 80,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 84.62,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 65,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "06h:19m",
                    "raw": 22788.8,
                    "friendly_no_business": "29h:02m",
                    "raw_no_business": 104542.8
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "04h:26m",
                    "raw": 15967,
                    "friendly_no_business": "20h:09m",
                    "raw_no_business": 72572.28571428571,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "messages.sent.replies": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 3,
                    "inbound": 65,
                    "outbound": 8,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 7,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.21
                    }
                },
                "messages": {
                    "sent": {
                        "count": 84,
                        "initial": 9,
                        "replies": 65,
                        "forward": 10,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 90,
                        "initial": 31,
                        "replies": 43,
                        "forward": 10,
                        "follow_up": 6,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:43m",
                    "raw": 6215.4,
                    "friendly_no_business": "07h:55m",
                    "raw_no_business": 28512.753846153846,
                    "deviation_friendly": "11m:30s",
                    "deviation_raw": 690,
                    "deviation_friendly_no_business": "10m:04s",
                    "deviation_raw_no_business": 604,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "19m:45s",
                    "median_raw_no_business": 1184.9375,
                    "consistency_score": "38%",
                    "consistency_score_no_business": "49.03%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 70.77,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 80,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 84.62,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 65,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "06h:19m",
                    "raw": 22788.8,
                    "friendly_no_business": "29h:02m",
                    "raw_no_business": 104542.8
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "04h:26m",
                    "raw": 15967,
                    "friendly_no_business": "20h:09m",
                    "raw_no_business": 72572.28571428571,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "messages.sent.count": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 3,
                    "inbound": 65,
                    "outbound": 8,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 7,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.21
                    }
                },
                "messages": {
                    "sent": {
                        "count": 84,
                        "initial": 9,
                        "replies": 65,
                        "forward": 10,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 90,
                        "initial": 31,
                        "replies": 43,
                        "forward": 10,
                        "follow_up": 6,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:43m",
                    "raw": 6215.4,
                    "friendly_no_business": "07h:55m",
                    "raw_no_business": 28512.753846153846,
                    "deviation_friendly": "11m:30s",
                    "deviation_raw": 690,
                    "deviation_friendly_no_business": "10m:04s",
                    "deviation_raw_no_business": 604,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "19m:45s",
                    "median_raw_no_business": 1184.9375,
                    "consistency_score": "38%",
                    "consistency_score_no_business": "49.03%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 70.77,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 80,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 84.62,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 65,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "06h:19m",
                    "raw": 22788.8,
                    "friendly_no_business": "29h:02m",
                    "raw_no_business": 104542.8
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "04h:26m",
                    "raw": 15967,
                    "friendly_no_business": "20h:09m",
                    "raw_no_business": 72572.28571428571,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "messages.sent.forward": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 2,
                    "inbound": 41,
                    "outbound": 3,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 1,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 2.17
                    }
                },
                "messages": {
                    "sent": {
                        "count": 63,
                        "initial": 2,
                        "replies": 42,
                        "forward": 19,
                        "follow_up": 0,
                        "initial_replies": 33,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 50,
                        "initial": 7,
                        "replies": 25,
                        "forward": 17,
                        "follow_up": 1,
                        "initial_replies": 2,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "02h:14m",
                    "raw": 8051.214285714285,
                    "friendly_no_business": "09h:23m",
                    "raw_no_business": 33830.26190476191,
                    "deviation_friendly": "18m:33s",
                    "deviation_raw": 1113,
                    "deviation_friendly_no_business": "23m:55s",
                    "deviation_raw_no_business": 1435,
                    "median_friendly": "17m:03s",
                    "median_raw": 1023.484375,
                    "median_friendly_no_business": "26m:08s",
                    "median_raw_no_business": 1567.984375,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "8.48%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 59.52,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 61.9,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 71.43,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 42,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "04h:40m",
                    "raw": 16848.105263157893,
                    "friendly_no_business": "22h:14m",
                    "raw_no_business": 80075.1052631579
                },
                "initialTTR": {
                    "friendly": "02h:19m",
                    "raw": 8359.424242424242,
                    "friendly_no_business": "08h:39m",
                    "raw_no_business": 31148.484848484848,
                    "deviation_friendly": "17m:03s",
                    "deviation_raw": 1023,
                    "deviation_friendly_no_business": "17m:06s",
                    "deviation_raw_no_business": 1026,
                    "median_friendly": "17m:03s",
                    "median_raw": 1023.484375,
                    "median_friendly_no_business": "20m:37s",
                    "median_raw_no_business": 1236.984375,
                    "consistency_score": "0.05%",
                    "consistency_score_no_business": "17.06%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 33,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "05m:37s",
                    "raw": 337,
                    "friendly_no_business": "63h:00m",
                    "raw_no_business": 226821,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "overallTTC.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 2,
                    "inbound": 41,
                    "outbound": 3,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 1,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 2.17
                    }
                },
                "messages": {
                    "sent": {
                        "count": 63,
                        "initial": 2,
                        "replies": 42,
                        "forward": 19,
                        "follow_up": 0,
                        "initial_replies": 33,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 50,
                        "initial": 7,
                        "replies": 25,
                        "forward": 17,
                        "follow_up": 1,
                        "initial_replies": 2,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "02h:14m",
                    "raw": 8051.214285714285,
                    "friendly_no_business": "09h:23m",
                    "raw_no_business": 33830.26190476191,
                    "deviation_friendly": "18m:33s",
                    "deviation_raw": 1113,
                    "deviation_friendly_no_business": "23m:55s",
                    "deviation_raw_no_business": 1435,
                    "median_friendly": "17m:03s",
                    "median_raw": 1023.484375,
                    "median_friendly_no_business": "26m:08s",
                    "median_raw_no_business": 1567.984375,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "8.48%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 59.52,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 61.9,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 71.43,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 42,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "04h:40m",
                    "raw": 16848.105263157893,
                    "friendly_no_business": "22h:14m",
                    "raw_no_business": 80075.1052631579
                },
                "initialTTR": {
                    "friendly": "02h:19m",
                    "raw": 8359.424242424242,
                    "friendly_no_business": "08h:39m",
                    "raw_no_business": 31148.484848484848,
                    "deviation_friendly": "17m:03s",
                    "deviation_raw": 1023,
                    "deviation_friendly_no_business": "17m:06s",
                    "deviation_raw_no_business": 1026,
                    "median_friendly": "17m:03s",
                    "median_raw": 1023.484375,
                    "median_friendly_no_business": "20m:37s",
                    "median_raw_no_business": 1236.984375,
                    "consistency_score": "0.05%",
                    "consistency_score_no_business": "17.06%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 33,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "05m:37s",
                    "raw": 337,
                    "friendly_no_business": "63h:00m",
                    "raw_no_business": 226821,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 24,
                    "internal": 0,
                    "inbound": 24,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 1,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 4.17
                    }
                },
                "messages": {
                    "sent": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": null
                    },
                    "received": {
                        "count": 32,
                        "initial": 24,
                        "replies": 6,
                        "forward": 0,
                        "follow_up": 2,
                        "initial_replies": 4,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "deviation_friendly": "N/A",
                    "deviation_raw": null,
                    "deviation_friendly_no_business": "N/A",
                    "deviation_raw_no_business": null,
                    "median_friendly": "N/A",
                    "median_raw": null,
                    "median_friendly_no_business": "N/A",
                    "median_raw_no_business": null,
                    "consistency_score": "N/A",
                    "consistency_score_no_business": "N/A",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0,
                    "excluded_from_sla_percentage_friendly": "N/A"
                },
                "overallTTF": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null
                },
                "initialTTR": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "deviation_friendly": "N/A",
                    "deviation_raw": null,
                    "deviation_friendly_no_business": "N/A",
                    "deviation_raw_no_business": null,
                    "median_friendly": "N/A",
                    "median_raw": null,
                    "median_friendly_no_business": "N/A",
                    "median_raw_no_business": null,
                    "consistency_score": "N/A",
                    "consistency_score_no_business": "N/A",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0,
                    "excluded_from_sla_percentage_friendly": "N/A"
                },
                "overallTTC": {
                    "friendly": "45m:24s",
                    "raw": 2724,
                    "friendly_no_business": "45m:24s",
                    "raw_no_business": 2724,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "overallTTF.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 2,
                    "inbound": 41,
                    "outbound": 3,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 1,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 2.17
                    }
                },
                "messages": {
                    "sent": {
                        "count": 63,
                        "initial": 2,
                        "replies": 42,
                        "forward": 19,
                        "follow_up": 0,
                        "initial_replies": 33,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 50,
                        "initial": 7,
                        "replies": 25,
                        "forward": 17,
                        "follow_up": 1,
                        "initial_replies": 2,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "02h:14m",
                    "raw": 8051.214285714285,
                    "friendly_no_business": "09h:23m",
                    "raw_no_business": 33830.26190476191,
                    "deviation_friendly": "18m:33s",
                    "deviation_raw": 1113,
                    "deviation_friendly_no_business": "23m:55s",
                    "deviation_raw_no_business": 1435,
                    "median_friendly": "17m:03s",
                    "median_raw": 1023.484375,
                    "median_friendly_no_business": "26m:08s",
                    "median_raw_no_business": 1567.984375,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "8.48%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 59.52,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 61.9,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 71.43,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 42,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "04h:40m",
                    "raw": 16848.105263157893,
                    "friendly_no_business": "22h:14m",
                    "raw_no_business": 80075.1052631579
                },
                "initialTTR": {
                    "friendly": "02h:19m",
                    "raw": 8359.424242424242,
                    "friendly_no_business": "08h:39m",
                    "raw_no_business": 31148.484848484848,
                    "deviation_friendly": "17m:03s",
                    "deviation_raw": 1023,
                    "deviation_friendly_no_business": "17m:06s",
                    "deviation_raw_no_business": 1026,
                    "median_friendly": "17m:03s",
                    "median_raw": 1023.484375,
                    "median_friendly_no_business": "20m:37s",
                    "median_raw_no_business": 1236.984375,
                    "consistency_score": "0.05%",
                    "consistency_score_no_business": "17.06%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 33,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "05m:37s",
                    "raw": 337,
                    "friendly_no_business": "63h:00m",
                    "raw_no_business": 226821,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "overallTTR.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 3,
                    "inbound": 65,
                    "outbound": 8,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 7,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.21
                    }
                },
                "messages": {
                    "sent": {
                        "count": 84,
                        "initial": 9,
                        "replies": 65,
                        "forward": 10,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 90,
                        "initial": 31,
                        "replies": 43,
                        "forward": 10,
                        "follow_up": 6,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:43m",
                    "raw": 6215.4,
                    "friendly_no_business": "07h:55m",
                    "raw_no_business": 28512.753846153846,
                    "deviation_friendly": "11m:30s",
                    "deviation_raw": 690,
                    "deviation_friendly_no_business": "10m:04s",
                    "deviation_raw_no_business": 604,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "19m:45s",
                    "median_raw_no_business": 1184.9375,
                    "consistency_score": "38%",
                    "consistency_score_no_business": "49.03%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 70.77,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 80,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 84.62,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 65,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "06h:19m",
                    "raw": 22788.8,
                    "friendly_no_business": "29h:02m",
                    "raw_no_business": 104542.8
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "04h:26m",
                    "raw": 15967,
                    "friendly_no_business": "20h:09m",
                    "raw_no_business": 72572.28571428571,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ],
        "threads.total": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 85,
                    "internal": 3,
                    "inbound": 76,
                    "outbound": 6,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 8,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.41
                    }
                },
                "messages": {
                    "sent": {
                        "count": 113,
                        "initial": 5,
                        "replies": 83,
                        "forward": 25,
                        "follow_up": 0,
                        "initial_replies": 69,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 109,
                        "initial": 23,
                        "replies": 62,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:24m",
                    "raw": 5088.036144578313,
                    "friendly_no_business": "03h:54m",
                    "raw_no_business": 14057.44578313253,
                    "deviation_friendly": "14m:02s",
                    "deviation_raw": 842,
                    "deviation_friendly_no_business": "15m:16s",
                    "deviation_raw_no_business": 916,
                    "median_friendly": "18m:55s",
                    "median_raw": 1134.96875,
                    "median_friendly_no_business": "22m:28s",
                    "median_raw_no_business": 1347.96875,
                    "consistency_score": "25.81%",
                    "consistency_score_no_business": "32.05%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 72.29,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 74.7,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 86.75,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 83,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "02h:14m",
                    "raw": 8052.96,
                    "friendly_no_business": "07h:57m",
                    "raw_no_business": 28659.88
                },
                "initialTTR": {
                    "friendly": "01h:33m",
                    "raw": 5636.753623188406,
                    "friendly_no_business": "04h:53m",
                    "raw_no_business": 17619.782608695652,
                    "deviation_friendly": "15m:16s",
                    "deviation_raw": 916,
                    "deviation_friendly_no_business": "17m:38s",
                    "deviation_raw_no_business": 1058,
                    "median_friendly": "19m:30s",
                    "median_raw": 1169.96875,
                    "median_friendly_no_business": "24m:09s",
                    "median_raw_no_business": 1448.96875,
                    "consistency_score": "21.71%",
                    "consistency_score_no_business": "26.98%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 69,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "01h:14m",
                    "raw": 4460.125,
                    "friendly_no_business": "09h:09m",
                    "raw_no_business": 32995.5,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 76,
                    "internal": 3,
                    "inbound": 65,
                    "outbound": 8,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 7,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 9.21
                    }
                },
                "messages": {
                    "sent": {
                        "count": 84,
                        "initial": 9,
                        "replies": 65,
                        "forward": 10,
                        "follow_up": 0,
                        "initial_replies": 49,
                        "dailyStats": []
                    },
                    "received": {
                        "count": 90,
                        "initial": 31,
                        "replies": 43,
                        "forward": 10,
                        "follow_up": 6,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    }
                },
                "overallTTR": {
                    "friendly": "01h:43m",
                    "raw": 6215.4,
                    "friendly_no_business": "07h:55m",
                    "raw_no_business": 28512.753846153846,
                    "deviation_friendly": "11m:30s",
                    "deviation_raw": 690,
                    "deviation_friendly_no_business": "10m:04s",
                    "deviation_raw_no_business": 604,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "19m:45s",
                    "median_raw_no_business": 1184.9375,
                    "consistency_score": "38%",
                    "consistency_score_no_business": "49.03%",
                    "percentileRanks": [
                        {
                            "key": "30m:00s",
                            "value": 70.77,
                            "count": 0
                        },
                        {
                            "key": "01h:00m",
                            "value": 80,
                            "count": 0
                        },
                        {
                            "key": "02h:00m",
                            "value": 84.62,
                            "count": 0
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 65,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTF": {
                    "friendly": "06h:19m",
                    "raw": 22788.8,
                    "friendly_no_business": "29h:02m",
                    "raw_no_business": 104542.8
                },
                "initialTTR": {
                    "friendly": "01h:42m",
                    "raw": 6130.857142857143,
                    "friendly_no_business": "07h:38m",
                    "raw_no_business": 27532.591836734693,
                    "deviation_friendly": "12m:19s",
                    "deviation_raw": 739,
                    "deviation_friendly_no_business": "09m:30s",
                    "deviation_raw_no_business": 570,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "20m:46s",
                    "median_raw_no_business": 1245.9375,
                    "consistency_score": "34.14%",
                    "consistency_score_no_business": "54.25%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 49,
                    "excluded_from_sla_percentage_friendly": 100
                },
                "overallTTC": {
                    "friendly": "04h:26m",
                    "raw": 15967,
                    "friendly_no_business": "20h:09m",
                    "raw_no_business": 72572.28571428571,
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": []
                }
            }
        ]
    },
    "pagination": {
        "total": 8,
        "page": 1
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    }
}
 

Request   

GET api/reports/comparative

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Interactions

Interactions - Report

requires authentication

Interactions Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/interactions"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "1",
    "model_type": "Mailbox",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "eum",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/interactions',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => '1',
            'model_type' => 'Mailbox',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'eum',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/interactions?from=2020-01-01&to=2020-01-08&model=1&model_type=Mailbox&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=eum&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "[email protected]": {
        "interactions": {
            "[email protected]": {
                "to": 13,
                "email": "[email protected]",
                "from": 9,
                "cc": 0
            },
            "[email protected]": {
                "to": 4,
                "email": "[email protected]",
                "from": 4,
                "cc": 0
            },
            "[email protected]": {
                "to": 3,
                "email": "[email protected]",
                "cc": 1,
                "from": 2
            },
            "[email protected]": {
                "to": 2,
                "email": "gibson[email protected]",
                "from": 4,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 3,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 3,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 3,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 2,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 2,
                "cc": 0
            },
            "[email protected]": {
                "to": 1,
                "email": "[email protected]",
                "from": 3,
                "cc": 0
            },
            "[email protected]": {
                "to": 1,
                "email": "[email protected]",
                "from": 2,
                "cc": 0
            },
            "[email protected]": {
                "from": 3,
                "email": "[email protected]",
                "to": 0,
                "cc": 0
            },
            "[email protected]": {
                "from": 3,
                "email": "[email protected]",
                "to": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "from": 2,
                "email": "[email protected]",
                "to": 0,
                "cc": 0
            }
        },
        "agent": {
            "key": 0,
            "email_username": "[email protected]"
        }
    }
}
 

Request   

GET api/reports/interactions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name or ID of the mailbox you want results for. Example: 1

model_type   string  optional  

Model Type of the mailbox being queried. For this report, it must be "Mailbox". Example: Mailbox

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

SLA

SLA - Report

requires authentication

SLA Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/sla"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "timetoreply.com",
    "model_type": "Contact",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "dolores",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "sort_by": "threads.total",
    "direction": "desc",
    "page": "1",
    "init_ttr_goal": "02:00:00",
    "overall_ttr_goal": "02:00:00",
    "overall_ttc_goal": "02:00:00",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/sla',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'timetoreply.com',
            'model_type' => 'Contact',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'dolores',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'page' => '1',
            'init_ttr_goal' => '02:00:00',
            'overall_ttr_goal' => '02:00:00',
            'overall_ttc_goal' => '02:00:00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/sla?from=2020-01-01&to=2020-01-08&model=timetoreply.com&model_type=Contact&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=dolores&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&sort_by=threads.total&direction=desc&page=1&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "threads": {
            "total": 319,
            "internal": 11,
            "inbound": 271,
            "outbound": 37,
            "sent_internally": 49,
            "await_customer": 88,
            "await_agent": 154,
            "closed": 28,
            "have_replies": 243,
            "have_replies_from_agents": 223,
            "have_no_replies_from_agents": 96,
            "completionRatio": {
                "ratio": 554.05,
                "numerator": 205,
                "denominator": 37
            },
            "handledRate": {
                "rate": 36.36,
                "numerator": 116,
                "denominator": 319
            },
            "labels": {
                "total": 56,
                "list": [
                    {
                        "key": "UNREAD",
                        "doc_count": 205
                    },
                    {
                        "key": "CATEGORY_SOCIAL",
                        "doc_count": 45
                    },
                    {
                        "key": "IMPORTANT",
                        "doc_count": 45
                    },
                    {
                        "key": "STARRED",
                        "doc_count": 42
                    },
                    {
                        "key": "INBOX",
                        "doc_count": 40
                    },
                    {
                        "key": "CATEGORY_FORUMS",
                        "doc_count": 39
                    },
                    {
                        "key": "CATEGORY_PERSONAL",
                        "doc_count": 39
                    },
                    {
                        "key": "CATEGORY_PROMOTIONS",
                        "doc_count": 31
                    },
                    {
                        "key": "SENT",
                        "doc_count": 30
                    },
                    {
                        "key": "CATEGORY_UPDATES",
                        "doc_count": 28
                    },
                    {
                        "key": "Outdoors",
                        "doc_count": 4
                    },
                    {
                        "key": "Baby",
                        "doc_count": 2
                    },
                    {
                        "key": "Automotive",
                        "doc_count": 1
                    },
                    {
                        "key": "Automotive, Tools & Electronics",
                        "doc_count": 1
                    },
                    {
                        "key": "Baby & Computers",
                        "doc_count": 1
                    },
                    {
                        "key": "Beauty & Kids",
                        "doc_count": 1
                    },
                    {
                        "key": "Beauty & Music",
                        "doc_count": 1
                    },
                    {
                        "key": "Books & Beauty",
                        "doc_count": 1
                    },
                    {
                        "key": "Books & Tools",
                        "doc_count": 1
                    },
                    {
                        "key": "Books, Automotive & Shoes",
                        "doc_count": 1
                    }
                ]
            }
        },
        "messages": {
            "count": 836,
            "initial": 296,
            "replies": 444,
            "forward": 69,
            "follow_up": 27,
            "received": {
                "count": 578,
                "initial": 264,
                "replies": 218,
                "forward": 69,
                "follow_up": 27,
                "initial_replies": 57,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                },
                "avg_wait": "93h:38m",
                "avg_wait_raw": 337084,
                "avg_first_wait": "94h:50m",
                "avg_first_wait_raw": 341419
            },
            "sent": {
                "count": 383,
                "initial": 41,
                "replies": 272,
                "forward": 69,
                "follow_up": 1,
                "initial_replies": 205,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "01h:56m",
            "raw": 6990.125,
            "friendly_no_business": "07h:46m",
            "raw_no_business": 27970.966911764706,
            "deviation_friendly": "15m:22s",
            "deviation_raw": 921.5,
            "deviation_friendly_no_business": "13m:50s",
            "deviation_raw_no_business": 829.5,
            "median_friendly": "18m:55s",
            "median_raw": 1134.9921875,
            "median_friendly_no_business": "22m:36s",
            "median_raw_no_business": 1355.984375,
            "consistency_score": "18.81%",
            "consistency_score_no_business": "38.83%",
            "percentileRanks": [
                {
                    "key": "01h:00m",
                    "value": 73.53,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 80.88,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 87.87,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 91.91,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "01h:00m",
                    "value": 70.96,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 77.57,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 82.72,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 84.19,
                    "count": 0
                }
            ],
            "within_sla": 219,
            "within_sla_percentage_friendly": 80.51,
            "sla_breach": 53,
            "sla_breach_percentage_friendly": 19.49,
            "excluded_from_sla": 0,
            "excluded_from_sla_percentage_friendly": 0
        },
        "initialTTR": {
            "friendly": "02h:00m",
            "raw": 7248.809756097561,
            "friendly_no_business": "08h:14m",
            "raw_no_business": 29644.126829268294,
            "deviation_friendly": "16m:55s",
            "deviation_raw": 1015,
            "deviation_friendly_no_business": "16m:19s",
            "deviation_raw_no_business": 979,
            "median_friendly": "20m:06s",
            "median_raw": 1205.9921875,
            "median_friendly_no_business": "24m:09s",
            "median_raw_no_business": 1448.984375,
            "consistency_score": "15.84%",
            "consistency_score_no_business": "32.44%",
            "percentileRanks": [
                {
                    "key": "01h:00m",
                    "value": 71.71,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 80,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 87.32,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 91.71,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "01h:00m",
                    "value": 69.27,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 76.59,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 81.46,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 82.93,
                    "count": 0
                }
            ],
            "within_sla": 163,
            "within_sla_percentage_friendly": 79.51,
            "sla_breach": 42,
            "sla_breach_percentage_friendly": 20.49,
            "excluded_from_sla": 0,
            "excluded_from_sla_percentage_friendly": 0
        },
        "overallTTF": {
            "friendly": "04h:01m",
            "raw": 14508.623188405798,
            "friendly_no_business": "17h:01m",
            "raw_no_business": 61308.260869565216
        },
        "overallTTC": {
            "friendly": "03h:20m",
            "raw": 12036.035714285714,
            "friendly_no_business": "15h:31m",
            "raw_no_business": 55881.642857142855,
            "percentileRanks": [
                {
                    "key": "01h:00m",
                    "value": 42.86,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 64.29,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 78.57,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 89.29,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "01h:00m",
                    "value": 39.29,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 60.71,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 71.43,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 71.43,
                    "count": 0
                }
            ],
            "within_sla": 18,
            "within_sla_percentage_friendly": 64.29,
            "sla_breach": 10,
            "sla_breach_percentage_friendly": 35.71
        },
        "dailyStats": []
    },
    "previous_period": {
        "threads": {
            "total": 269,
            "internal": 23,
            "inbound": 214,
            "outbound": 32,
            "sent_internally": 45,
            "await_customer": 72,
            "await_agent": 129,
            "closed": 23,
            "have_replies": 198,
            "have_replies_from_agents": 188,
            "have_no_replies_from_agents": 81,
            "completionRatio": {
                "ratio": 546.88,
                "numerator": 175,
                "denominator": 32
            },
            "handledRate": {
                "rate": 35.32,
                "numerator": 95,
                "denominator": 269
            },
            "labels": {
                "total": 50,
                "list": [
                    {
                        "key": "UNREAD",
                        "doc_count": 191
                    },
                    {
                        "key": "STARRED",
                        "doc_count": 32
                    },
                    {
                        "key": "CATEGORY_FORUMS",
                        "doc_count": 30
                    },
                    {
                        "key": "SENT",
                        "doc_count": 27
                    },
                    {
                        "key": "INBOX",
                        "doc_count": 24
                    },
                    {
                        "key": "CATEGORY_PROMOTIONS",
                        "doc_count": 23
                    },
                    {
                        "key": "CATEGORY_SOCIAL",
                        "doc_count": 23
                    },
                    {
                        "key": "CATEGORY_UPDATES",
                        "doc_count": 23
                    },
                    {
                        "key": "IMPORTANT",
                        "doc_count": 22
                    },
                    {
                        "key": "CATEGORY_PERSONAL",
                        "doc_count": 21
                    },
                    {
                        "key": "Books",
                        "doc_count": 2
                    },
                    {
                        "key": "Health & Outdoors",
                        "doc_count": 2
                    },
                    {
                        "key": "Jewelry",
                        "doc_count": 2
                    },
                    {
                        "key": "Automotive",
                        "doc_count": 1
                    },
                    {
                        "key": "Automotive & Kids",
                        "doc_count": 1
                    },
                    {
                        "key": "Automotive, Movies & Jewelry",
                        "doc_count": 1
                    },
                    {
                        "key": "Baby",
                        "doc_count": 1
                    },
                    {
                        "key": "Baby & Clothing",
                        "doc_count": 1
                    },
                    {
                        "key": "Books & Tools",
                        "doc_count": 1
                    },
                    {
                        "key": "Clothing",
                        "doc_count": 1
                    }
                ]
            }
        },
        "messages": {
            "count": 687,
            "initial": 269,
            "replies": 357,
            "forward": 35,
            "follow_up": 26,
            "received": {
                "count": 478,
                "initial": 240,
                "replies": 177,
                "forward": 35,
                "follow_up": 26,
                "initial_replies": 54,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                },
                "avg_wait": "279h:50m",
                "avg_wait_raw": 1007405,
                "avg_first_wait": "275h:39m",
                "avg_first_wait_raw": 992394
            },
            "sent": {
                "count": 321,
                "initial": 55,
                "replies": 229,
                "forward": 35,
                "follow_up": 2,
                "initial_replies": 175,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "01h:02m",
            "raw": 3722.6768558951967,
            "friendly_no_business": "04h:01m",
            "raw_no_business": 14471.323144104803,
            "deviation_friendly": "11m:47s",
            "deviation_raw": 707,
            "deviation_friendly_no_business": "10m:24s",
            "deviation_raw_no_business": 624,
            "median_friendly": "17m:02s",
            "median_raw": 1022.484375,
            "median_friendly_no_business": "20m:13s",
            "median_raw_no_business": 1212.984375,
            "consistency_score": "30.85%",
            "consistency_score_no_business": "48.56%",
            "percentileRanks": [
                {
                    "key": "01h:00m",
                    "value": 82.97,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 90.39,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 93.89,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 97.82,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "01h:00m",
                    "value": 81.22,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 88.21,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 90.83,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 92.58,
                    "count": 0
                }
            ],
            "within_sla": 207,
            "within_sla_percentage_friendly": 90.39,
            "sla_breach": 22,
            "sla_breach_percentage_friendly": 9.61,
            "excluded_from_sla": 0,
            "excluded_from_sla_percentage_friendly": 0
        },
        "initialTTR": {
            "friendly": "01h:14m",
            "raw": 4452.857142857143,
            "friendly_no_business": "04h:59m",
            "raw_no_business": 17962.434285714287,
            "deviation_friendly": "10m:59s",
            "deviation_raw": 659,
            "deviation_friendly_no_business": "10m:58s",
            "deviation_raw_no_business": 658,
            "median_friendly": "16m:13s",
            "median_raw": 973.484375,
            "median_friendly_no_business": "20m:11s",
            "median_raw_no_business": 1210.984375,
            "consistency_score": "32.31%",
            "consistency_score_no_business": "45.66%",
            "percentileRanks": [
                {
                    "key": "01h:00m",
                    "value": 80,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 88.57,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 92.57,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 96.57,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "01h:00m",
                    "value": 78.29,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 86.29,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 89.71,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 92,
                    "count": 0
                }
            ],
            "within_sla": 155,
            "within_sla_percentage_friendly": 88.57,
            "sla_breach": 20,
            "sla_breach_percentage_friendly": 11.43,
            "excluded_from_sla": 0,
            "excluded_from_sla_percentage_friendly": 0
        },
        "overallTTF": {
            "friendly": "02h:40m",
            "raw": 9645.771428571428,
            "friendly_no_business": "08h:39m",
            "raw_no_business": 31195.342857142856
        },
        "overallTTC": {
            "friendly": "05h:25m",
            "raw": 19539.652173913044,
            "friendly_no_business": "24h:08m",
            "raw_no_business": 86913.82608695653,
            "percentileRanks": [
                {
                    "key": "01h:00m",
                    "value": 34.78,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 56.52,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 65.22,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 78.26,
                    "count": 0
                }
            ],
            "percentileRanksRaw": [
                {
                    "key": "01h:00m",
                    "value": 30.43,
                    "count": 0
                },
                {
                    "key": "02h:00m",
                    "value": 52.17,
                    "count": 0
                },
                {
                    "key": "04h:00m",
                    "value": 56.52,
                    "count": 0
                },
                {
                    "key": "08h:00m",
                    "value": 56.52,
                    "count": 0
                }
            ],
            "within_sla": 13,
            "within_sla_percentage_friendly": 56.52,
            "sla_breach": 10,
            "sla_breach_percentage_friendly": 43.48
        },
        "dailyStats": []
    },
    "all_agent_stats": {
        "maxima": {
            "name": "Total",
            "threads.total": 319,
            "threads.internal": 11,
            "threads.inbound": 271,
            "threads.outbound": 37,
            "threads.sent_internally": 49,
            "threads.await_customer": 88,
            "threads.await_agent": 154,
            "threads.closed": 28,
            "threads.have_replies": 243,
            "threads.handledRate.rate": 36.36,
            "messages.received.count": 578,
            "messages.received.initial": 264,
            "messages.received.replies": 218,
            "messages.received.forward": 69,
            "messages.received.follow_up": 27,
            "messages.received.avg_first_wait": "94h:50m",
            "messages.received.avg_wait": "93h:38m",
            "messages.sent.count": 383,
            "messages.sent.initial": 41,
            "messages.sent.replies": 272,
            "messages.sent.forward": 69,
            "messages.sent.follow_up": 1,
            "overallTTR.friendly": "01h:56m",
            "overallTTR.friendly_no_business": "07h:46m",
            "overallTTR.deviation_friendly": "15m:22s",
            "overallTTR.deviation_friendly_no_business": "13m:50s",
            "overallTTR.median_friendly": "18m:55s",
            "overallTTR.median_friendly_no_business": "22m:36s",
            "overallTTR.consistency_score": "18.81%",
            "overallTTR.consistency_score_no_business": "38.83%",
            "overallTTR.within_sla": 219,
            "overallTTR.within_sla_percentage_friendly": 80.51,
            "overallTTR.sla_breach": 53,
            "overallTTR.sla_breach_percentage_friendly": 19.49,
            "overallTTR.excluded_from_sla": 0,
            "overallTTR.excluded_from_sla_percentage_friendly": 0,
            "initialTTR.friendly": "02h:00m",
            "initialTTR.friendly_no_business": "08h:14m",
            "initialTTR.deviation_friendly": "16m:55s",
            "initialTTR.deviation_friendly_no_business": "16m:19s",
            "initialTTR.median_friendly": "20m:06s",
            "initialTTR.median_friendly_no_business": "24m:09s",
            "initialTTR.consistency_score": "15.84%",
            "initialTTR.consistency_score_no_business": "32.44%",
            "initialTTR.within_sla": 163,
            "initialTTR.within_sla_percentage_friendly": 79.51,
            "initialTTR.sla_breach": 42,
            "initialTTR.sla_breach_percentage_friendly": 20.49,
            "initialTTR.excluded_from_sla": 0,
            "initialTTR.excluded_from_sla_percentage_friendly": 0,
            "overallTTC.friendly": "03h:20m",
            "overallTTC.friendly_no_business": "15h:31m",
            "overallTTC.within_sla": 18,
            "overallTTC.within_sla_percentage_friendly": 64.29,
            "overallTTC.sla_breach": 10,
            "overallTTC.sla_breach_percentage_friendly": 35.71,
            "overallTTF.friendly": "04h:01m",
            "overallTTF.friendly_no_business": "17h:01m"
        },
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 85,
                        "internal": 3,
                        "inbound": 76,
                        "outbound": 6,
                        "sent_internally": 18,
                        "await_customer": 21,
                        "await_agent": 38,
                        "closed": 8,
                        "have_replies": 75,
                        "have_initial_replies": 74,
                        "handledRate": {
                            "rate": 34.12
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 113,
                            "initial": 5,
                            "replies": 83,
                            "forward": 25,
                            "follow_up": 0,
                            "initial_replies": 69,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 109,
                            "initial": 23,
                            "replies": 62,
                            "forward": 23,
                            "follow_up": 1,
                            "initial_replies": 5,
                            "dailyStats": [],
                            "avg_wait": "94h:26m",
                            "avg_wait_raw": 339972,
                            "avg_first_wait": "75h:06m",
                            "avg_first_wait_raw": 270377
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:24m",
                        "raw": 5088.036144578313,
                        "friendly_no_business": "03h:54m",
                        "raw_no_business": 14057.44578313253,
                        "deviation_friendly": "14m:02s",
                        "deviation_raw": 842,
                        "deviation_friendly_no_business": "15m:16s",
                        "deviation_raw_no_business": 916,
                        "median_friendly": "18m:55s",
                        "median_raw": 1134.96875,
                        "median_friendly_no_business": "22m:28s",
                        "median_raw_no_business": 1347.96875,
                        "consistency_score": "25.81%",
                        "consistency_score_no_business": "32.05%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 74.7,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 86.75,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 93.98,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 95.18,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 72.29,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 83.13,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 90.36,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 91.57,
                                "count": 0
                            }
                        ],
                        "within_sla": 71,
                        "within_sla_percentage_friendly": 85.54,
                        "sla_breach": 12,
                        "sla_breach_percentage_friendly": 14.46,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "02h:14m",
                        "raw": 8052.96,
                        "friendly_no_business": "07h:57m",
                        "raw_no_business": 28659.88
                    },
                    "initialTTR": {
                        "friendly": "01h:33m",
                        "raw": 5636.753623188406,
                        "friendly_no_business": "04h:53m",
                        "raw_no_business": 17619.782608695652,
                        "deviation_friendly": "15m:16s",
                        "deviation_raw": 916,
                        "deviation_friendly_no_business": "17m:38s",
                        "deviation_raw_no_business": 1058,
                        "median_friendly": "19m:30s",
                        "median_raw": 1169.96875,
                        "median_friendly_no_business": "24m:09s",
                        "median_raw_no_business": 1448.96875,
                        "consistency_score": "21.71%",
                        "consistency_score_no_business": "26.98%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 73.91,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 85.51,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 92.75,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 94.2,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 71.01,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 81.16,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 88.41,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 89.86,
                                "count": 0
                            }
                        ],
                        "within_sla": 58,
                        "within_sla_percentage_friendly": 84.06,
                        "sla_breach": 11,
                        "sla_breach_percentage_friendly": 15.94,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "01h:14m",
                        "raw": 4460.125,
                        "friendly_no_business": "09h:09m",
                        "raw_no_business": 32995.5,
                        "within_sla": 5,
                        "within_sla_percentage_friendly": 62.5,
                        "sla_breach": 3,
                        "sla_breach_percentage_friendly": 37.5,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 50,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 62.5,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 37.5,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 50,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 87.5,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 87.5,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 70,
                            "internal": 9,
                            "inbound": 54,
                            "outbound": 7,
                            "sent_internally": 17,
                            "await_customer": 19,
                            "await_agent": 27,
                            "closed": 7,
                            "have_replies": 58,
                            "have_initial_replies": 57,
                            "handledRate": {
                                "rate": 37.14
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 81,
                                "initial": 8,
                                "replies": 63,
                                "forward": 9,
                                "follow_up": 1,
                                "initial_replies": 51,
                                "dailyStats": []
                            },
                            "received": {
                                "count": 78,
                                "initial": 22,
                                "replies": 46,
                                "forward": 7,
                                "follow_up": 3,
                                "initial_replies": 6,
                                "dailyStats": [],
                                "avg_wait": "273h:32m",
                                "avg_wait_raw": 984776,
                                "avg_first_wait": "318h:00m",
                                "avg_first_wait_raw": 1144857
                            }
                        },
                        "overallTTR": {
                            "friendly": "01h:06m",
                            "raw": 4018.7619047619046,
                            "friendly_no_business": "05h:21m",
                            "raw_no_business": 19318.650793650795,
                            "deviation_friendly": "12m:07s",
                            "deviation_raw": 727,
                            "deviation_friendly_no_business": "10m:06s",
                            "deviation_raw_no_business": 606,
                            "median_friendly": "16m:53s",
                            "median_raw": 1013.46875,
                            "median_friendly_no_business": "20m:02s",
                            "median_raw_no_business": 1201.96875,
                            "consistency_score": "28.27%",
                            "consistency_score_no_business": "49.58%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 82.54,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 88.89,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 92.06,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 95.24,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 79.37,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 84.13,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 85.71,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 88.89,
                                    "count": 0
                                }
                            ],
                            "within_sla": 56,
                            "within_sla_percentage_friendly": 88.89,
                            "sla_breach": 7,
                            "sla_breach_percentage_friendly": 11.11,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTF": {
                            "friendly": "01h:24m",
                            "raw": 5068.222222222223,
                            "friendly_no_business": "01h:25m",
                            "raw_no_business": 5157.444444444444
                        },
                        "initialTTR": {
                            "friendly": "01h:18m",
                            "raw": 4717.313725490196,
                            "friendly_no_business": "06h:32m",
                            "raw_no_business": 23563.960784313724,
                            "deviation_friendly": "12m:07s",
                            "deviation_raw": 727,
                            "deviation_friendly_no_business": "12m:27s",
                            "deviation_raw_no_business": 747,
                            "median_friendly": "16m:53s",
                            "median_raw": 1013.46875,
                            "median_friendly_no_business": "20m:21s",
                            "median_raw_no_business": 1220.96875,
                            "consistency_score": "28.27%",
                            "consistency_score_no_business": "38.82%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 78.43,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 86.27,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 90.2,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 94.12,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 74.51,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 80.39,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 82.35,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 86.27,
                                    "count": 0
                                }
                            ],
                            "within_sla": 44,
                            "within_sla_percentage_friendly": 86.27,
                            "sla_breach": 7,
                            "sla_breach_percentage_friendly": 13.73,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTC": {
                            "friendly": "03h:29m",
                            "raw": 12584.285714285714,
                            "friendly_no_business": "12h:34m",
                            "raw_no_business": 45272.42857142857,
                            "within_sla": 5,
                            "within_sla_percentage_friendly": 71.43,
                            "sla_breach": 2,
                            "sla_breach_percentage_friendly": 28.57,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 42.86,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 71.43,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 71.43,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 85.71,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 42.86,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 57.14,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 57.14,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 57.14,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 76,
                        "internal": 3,
                        "inbound": 65,
                        "outbound": 8,
                        "sent_internally": 10,
                        "await_customer": 26,
                        "await_agent": 33,
                        "closed": 7,
                        "have_replies": 61,
                        "have_initial_replies": 55,
                        "handledRate": {
                            "rate": 43.42
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 84,
                            "initial": 9,
                            "replies": 65,
                            "forward": 10,
                            "follow_up": 0,
                            "initial_replies": 49,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 90,
                            "initial": 31,
                            "replies": 43,
                            "forward": 10,
                            "follow_up": 6,
                            "initial_replies": 6,
                            "dailyStats": [],
                            "avg_wait": "107h:08m",
                            "avg_wait_raw": 385700,
                            "avg_first_wait": "78h:05m",
                            "avg_first_wait_raw": 281142
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:43m",
                        "raw": 6215.4,
                        "friendly_no_business": "07h:55m",
                        "raw_no_business": 28512.753846153846,
                        "deviation_friendly": "11m:30s",
                        "deviation_raw": 690,
                        "deviation_friendly_no_business": "10m:04s",
                        "deviation_raw_no_business": 604,
                        "median_friendly": "18m:33s",
                        "median_raw": 1112.9921875,
                        "median_friendly_no_business": "19m:45s",
                        "median_raw_no_business": 1184.9375,
                        "consistency_score": "38%",
                        "consistency_score_no_business": "49.03%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 84.62,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 89.23,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 92.31,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 76.92,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 81.54,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 84.62,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 86.15,
                                "count": 0
                            }
                        ],
                        "within_sla": 55,
                        "within_sla_percentage_friendly": 84.62,
                        "sla_breach": 10,
                        "sla_breach_percentage_friendly": 15.38,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "06h:19m",
                        "raw": 22788.8,
                        "friendly_no_business": "29h:02m",
                        "raw_no_business": 104542.8
                    },
                    "initialTTR": {
                        "friendly": "01h:42m",
                        "raw": 6130.857142857143,
                        "friendly_no_business": "07h:38m",
                        "raw_no_business": 27532.591836734693,
                        "deviation_friendly": "12m:19s",
                        "deviation_raw": 739,
                        "deviation_friendly_no_business": "09m:30s",
                        "deviation_raw_no_business": 570,
                        "median_friendly": "18m:42s",
                        "median_raw": 1121.9921875,
                        "median_friendly_no_business": "20m:46s",
                        "median_raw_no_business": 1245.9375,
                        "consistency_score": "34.14%",
                        "consistency_score_no_business": "54.25%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 79.59,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 85.71,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 89.8,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 93.88,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 75.51,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 81.63,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 83.67,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 85.71,
                                "count": 0
                            }
                        ],
                        "within_sla": 42,
                        "within_sla_percentage_friendly": 85.71,
                        "sla_breach": 7,
                        "sla_breach_percentage_friendly": 14.29,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "04h:26m",
                        "raw": 15967,
                        "friendly_no_business": "20h:09m",
                        "raw_no_business": 72572.28571428571,
                        "within_sla": 5,
                        "within_sla_percentage_friendly": 71.43,
                        "sla_breach": 2,
                        "sla_breach_percentage_friendly": 28.57,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 42.86,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 85.71,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 42.86,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 71.43,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 73,
                            "internal": 9,
                            "inbound": 53,
                            "outbound": 11,
                            "sent_internally": 19,
                            "await_customer": 22,
                            "await_agent": 27,
                            "closed": 5,
                            "have_replies": 54,
                            "have_initial_replies": 53,
                            "handledRate": {
                                "rate": 36.99
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 79,
                                "initial": 14,
                                "replies": 56,
                                "forward": 9,
                                "follow_up": 0,
                                "initial_replies": 45,
                                "dailyStats": []
                            },
                            "received": {
                                "count": 70,
                                "initial": 26,
                                "replies": 31,
                                "forward": 9,
                                "follow_up": 4,
                                "initial_replies": 8,
                                "dailyStats": [],
                                "avg_wait": "275h:27m",
                                "avg_wait_raw": 991635,
                                "avg_first_wait": "252h:44m",
                                "avg_first_wait_raw": 909861
                            }
                        },
                        "overallTTR": {
                            "friendly": "50m:51s",
                            "raw": 3050.5178571428573,
                            "friendly_no_business": "02h:09m",
                            "raw_no_business": 7788.982142857143,
                            "deviation_friendly": "18m:37s",
                            "deviation_raw": 1117,
                            "deviation_friendly_no_business": "10m:36s",
                            "deviation_raw_no_business": 635.5,
                            "median_friendly": "18m:01s",
                            "median_raw": 1080.96875,
                            "median_friendly_no_business": "20m:27s",
                            "median_raw_no_business": 1226.96875,
                            "consistency_score": "0%",
                            "consistency_score_no_business": "48.21%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 89.29,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 94.64,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 73.21,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 87.5,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 92.86,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 94.64,
                                    "count": 0
                                }
                            ],
                            "within_sla": 50,
                            "within_sla_percentage_friendly": 89.29,
                            "sla_breach": 6,
                            "sla_breach_percentage_friendly": 10.71,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTF": {
                            "friendly": "01h:04m",
                            "raw": 3844.5555555555557,
                            "friendly_no_business": "02h:55m",
                            "raw_no_business": 10545.444444444445
                        },
                        "initialTTR": {
                            "friendly": "50m:07s",
                            "raw": 3006.9777777777776,
                            "friendly_no_business": "55m:54s",
                            "raw_no_business": 3354.488888888889,
                            "deviation_friendly": "16m:46s",
                            "deviation_raw": 1006,
                            "deviation_friendly_no_business": "11m:27s",
                            "deviation_raw_no_business": 687,
                            "median_friendly": "17m:37s",
                            "median_raw": 1056.96875,
                            "median_friendly_no_business": "20m:26s",
                            "median_raw_no_business": 1225.96875,
                            "consistency_score": "4.82%",
                            "consistency_score_no_business": "43.96%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 75.56,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 88.89,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 95.56,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 75.56,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 88.89,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 95.56,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 97.78,
                                    "count": 0
                                }
                            ],
                            "within_sla": 40,
                            "within_sla_percentage_friendly": 88.89,
                            "sla_breach": 5,
                            "sla_breach_percentage_friendly": 11.11,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTC": {
                            "friendly": "09h:27m",
                            "raw": 34034.6,
                            "friendly_no_business": "53h:48m",
                            "raw_no_business": 193729.8,
                            "within_sla": 1,
                            "within_sla_percentage_friendly": 20,
                            "sla_breach": 4,
                            "sla_breach_percentage_friendly": 80,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 20,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 20,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 40,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 60,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 20,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 20,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 20,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 20,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 63,
                        "internal": 7,
                        "inbound": 44,
                        "outbound": 12,
                        "sent_internally": 15,
                        "await_customer": 15,
                        "await_agent": 24,
                        "closed": 9,
                        "have_replies": 47,
                        "have_initial_replies": 42,
                        "handledRate": {
                            "rate": 38.1
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 69,
                            "initial": 14,
                            "replies": 47,
                            "forward": 8,
                            "follow_up": 0,
                            "initial_replies": 32,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 94,
                            "initial": 40,
                            "replies": 37,
                            "forward": 8,
                            "follow_up": 9,
                            "initial_replies": 10,
                            "dailyStats": [],
                            "avg_wait": "81h:11m",
                            "avg_wait_raw": 292308,
                            "avg_first_wait": "88h:02m",
                            "avg_first_wait_raw": 316944
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:52m",
                        "raw": 6776.234042553191,
                        "friendly_no_business": "08h:16m",
                        "raw_no_business": 29813.36170212766,
                        "deviation_friendly": "10m:56s",
                        "deviation_raw": 656,
                        "deviation_friendly_no_business": "11m:28s",
                        "deviation_raw_no_business": 688,
                        "median_friendly": "16m:55s",
                        "median_raw": 1015.484375,
                        "median_friendly_no_business": "22m:52s",
                        "median_raw_no_business": 1371.984375,
                        "consistency_score": "35.4%",
                        "consistency_score_no_business": "49.85%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 76.6,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 78.72,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 85.11,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 93.62,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 74.47,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 76.6,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 80.85,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 82.98,
                                "count": 0
                            }
                        ],
                        "within_sla": 37,
                        "within_sla_percentage_friendly": 78.72,
                        "sla_breach": 10,
                        "sla_breach_percentage_friendly": 21.28,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "06h:13m",
                        "raw": 22395.375,
                        "friendly_no_business": "24h:28m",
                        "raw_no_business": 88138.125
                    },
                    "initialTTR": {
                        "friendly": "02h:35m",
                        "raw": 9338.71875,
                        "friendly_no_business": "11h:54m",
                        "raw_no_business": 42840.90625,
                        "deviation_friendly": "18m:35s",
                        "deviation_raw": 1114.5,
                        "deviation_friendly_no_business": "11m:55s",
                        "deviation_raw_no_business": 715,
                        "median_friendly": "21m:58s",
                        "median_raw": 1317.75,
                        "median_friendly_no_business": "24m:37s",
                        "median_raw_no_business": 1476.9375,
                        "consistency_score": "15.42%",
                        "consistency_score_no_business": "51.59%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 68.75,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.88,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 78.13,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 90.63,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 68.75,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.88,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 71.88,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 75,
                                "count": 0
                            }
                        ],
                        "within_sla": 23,
                        "within_sla_percentage_friendly": 71.88,
                        "sla_breach": 9,
                        "sla_breach_percentage_friendly": 28.13,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "04h:48m",
                        "raw": 17334.222222222223,
                        "friendly_no_business": "21h:39m",
                        "raw_no_business": 77951.66666666667,
                        "within_sla": 5,
                        "within_sla_percentage_friendly": 55.56,
                        "sla_breach": 4,
                        "sla_breach_percentage_friendly": 44.44,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 33.33,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 55.56,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 66.67,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 77.78,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 33.33,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 55.56,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 55.56,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 55.56,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 65,
                            "internal": 13,
                            "inbound": 41,
                            "outbound": 11,
                            "sent_internally": 18,
                            "await_customer": 19,
                            "await_agent": 24,
                            "closed": 4,
                            "have_replies": 44,
                            "have_initial_replies": 43,
                            "handledRate": {
                                "rate": 35.38
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 71,
                                "initial": 19,
                                "replies": 46,
                                "forward": 6,
                                "follow_up": 0,
                                "initial_replies": 28,
                                "dailyStats": []
                            },
                            "received": {
                                "count": 99,
                                "initial": 43,
                                "replies": 39,
                                "forward": 5,
                                "follow_up": 12,
                                "initial_replies": 15,
                                "dailyStats": [],
                                "avg_wait": "294h:32m",
                                "avg_wait_raw": 1060343,
                                "avg_first_wait": "293h:06m",
                                "avg_first_wait_raw": 1055200
                            }
                        },
                        "overallTTR": {
                            "friendly": "01h:45m",
                            "raw": 6319.934782608696,
                            "friendly_no_business": "06h:59m",
                            "raw_no_business": 25141.41304347826,
                            "deviation_friendly": "11m:19s",
                            "deviation_raw": 678.5,
                            "deviation_friendly_no_business": "11m:30s",
                            "deviation_raw_no_business": 689.5,
                            "median_friendly": "17m:34s",
                            "median_raw": 1053.96875,
                            "median_friendly_no_business": "19m:45s",
                            "median_raw_no_business": 1184.96875,
                            "consistency_score": "35.62%",
                            "consistency_score_no_business": "41.81%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 84.78,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 89.13,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 93.48,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 95.65,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 84.78,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 89.13,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 91.3,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 91.3,
                                    "count": 0
                                }
                            ],
                            "within_sla": 41,
                            "within_sla_percentage_friendly": 89.13,
                            "sla_breach": 5,
                            "sla_breach_percentage_friendly": 10.87,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTF": {
                            "friendly": "02h:33m",
                            "raw": 9190,
                            "friendly_no_business": "07h:57m",
                            "raw_no_business": 28675
                        },
                        "initialTTR": {
                            "friendly": "02h:59m",
                            "raw": 10740.107142857143,
                            "friendly_no_business": "13h:42m",
                            "raw_no_business": 49345.857142857145,
                            "deviation_friendly": "10m:36s",
                            "deviation_raw": 636,
                            "deviation_friendly_no_business": "13m:23s",
                            "deviation_raw_no_business": 802.5,
                            "median_friendly": "16m:08s",
                            "median_raw": 968.46875,
                            "median_friendly_no_business": "19m:45s",
                            "median_raw_no_business": 1184.75,
                            "consistency_score": "34.33%",
                            "consistency_score_no_business": "32.26%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 82.14,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 85.71,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 89.29,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 82.14,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 85.71,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 85.71,
                                    "count": 0
                                }
                            ],
                            "within_sla": 23,
                            "within_sla_percentage_friendly": 82.14,
                            "sla_breach": 5,
                            "sla_breach_percentage_friendly": 17.86,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTC": {
                            "friendly": "07h:02m",
                            "raw": 25339.75,
                            "friendly_no_business": "31h:12m",
                            "raw_no_business": 112366.75,
                            "within_sla": 3,
                            "within_sla_percentage_friendly": 75,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 25,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 50,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 75,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 25,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 75,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 75,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 46,
                        "internal": 2,
                        "inbound": 41,
                        "outbound": 3,
                        "sent_internally": 15,
                        "await_customer": 15,
                        "await_agent": 15,
                        "closed": 1,
                        "have_replies": 37,
                        "have_initial_replies": 35,
                        "handledRate": {
                            "rate": 34.78
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 63,
                            "initial": 2,
                            "replies": 42,
                            "forward": 19,
                            "follow_up": 0,
                            "initial_replies": 33,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 50,
                            "initial": 7,
                            "replies": 25,
                            "forward": 17,
                            "follow_up": 1,
                            "initial_replies": 2,
                            "dailyStats": [],
                            "avg_wait": "87h:25m",
                            "avg_wait_raw": 314701,
                            "avg_first_wait": "85h:42m",
                            "avg_first_wait_raw": 308554
                        }
                    },
                    "overallTTR": {
                        "friendly": "02h:14m",
                        "raw": 8051.214285714285,
                        "friendly_no_business": "09h:23m",
                        "raw_no_business": 33830.26190476191,
                        "deviation_friendly": "18m:33s",
                        "deviation_raw": 1113,
                        "deviation_friendly_no_business": "23m:55s",
                        "deviation_raw_no_business": 1435,
                        "median_friendly": "17m:03s",
                        "median_raw": 1023.484375,
                        "median_friendly_no_business": "26m:08s",
                        "median_raw_no_business": 1567.984375,
                        "consistency_score": "0%",
                        "consistency_score_no_business": "8.48%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 61.9,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 80.95,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 90.48,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 59.52,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 66.67,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 73.81,
                                "count": 0
                            }
                        ],
                        "within_sla": 30,
                        "within_sla_percentage_friendly": 71.43,
                        "sla_breach": 12,
                        "sla_breach_percentage_friendly": 28.57,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "04h:40m",
                        "raw": 16848.105263157893,
                        "friendly_no_business": "22h:14m",
                        "raw_no_business": 80075.1052631579
                    },
                    "initialTTR": {
                        "friendly": "02h:19m",
                        "raw": 8359.424242424242,
                        "friendly_no_business": "08h:39m",
                        "raw_no_business": 31148.484848484848,
                        "deviation_friendly": "17m:03s",
                        "deviation_raw": 1023,
                        "deviation_friendly_no_business": "17m:06s",
                        "deviation_raw_no_business": 1026,
                        "median_friendly": "17m:03s",
                        "median_raw": 1023.484375,
                        "median_friendly_no_business": "20m:37s",
                        "median_raw_no_business": 1236.984375,
                        "consistency_score": "0.05%",
                        "consistency_score_no_business": "17.06%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 63.64,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 72.73,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 81.82,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 87.88,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 63.64,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 69.7,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 75.76,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 75.76,
                                "count": 0
                            }
                        ],
                        "within_sla": 24,
                        "within_sla_percentage_friendly": 72.73,
                        "sla_breach": 9,
                        "sla_breach_percentage_friendly": 27.27,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "05m:37s",
                        "raw": 337,
                        "friendly_no_business": "63h:00m",
                        "raw_no_business": 226821,
                        "within_sla": 1,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 38,
                            "internal": 8,
                            "inbound": 28,
                            "outbound": 2,
                            "sent_internally": 13,
                            "await_customer": 7,
                            "await_agent": 15,
                            "closed": 3,
                            "have_replies": 31,
                            "have_initial_replies": 31,
                            "handledRate": {
                                "rate": 26.32
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 41,
                                "initial": 3,
                                "replies": 32,
                                "forward": 6,
                                "follow_up": 0,
                                "initial_replies": 28,
                                "dailyStats": []
                            },
                            "received": {
                                "count": 34,
                                "initial": 10,
                                "replies": 20,
                                "forward": 4,
                                "follow_up": 0,
                                "initial_replies": 3,
                                "dailyStats": [],
                                "avg_wait": "282h:57m",
                                "avg_wait_raw": 1018651,
                                "avg_first_wait": "N/A",
                                "avg_first_wait_raw": null
                            }
                        },
                        "overallTTR": {
                            "friendly": "32m:52s",
                            "raw": 1971.5625,
                            "friendly_no_business": "02h:34m",
                            "raw_no_business": 9288.375,
                            "deviation_friendly": "10m:19s",
                            "deviation_raw": 618.5,
                            "deviation_friendly_no_business": "09m:08s",
                            "deviation_raw_no_business": 547.5,
                            "median_friendly": "10m:57s",
                            "median_raw": 657.484375,
                            "median_friendly_no_business": "14m:46s",
                            "median_raw_no_business": 886.484375,
                            "consistency_score": "5.93%",
                            "consistency_score_no_business": "38.24%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 90.63,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 93.75,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 96.88,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 90.63,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 93.75,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 96.88,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 96.88,
                                    "count": 0
                                }
                            ],
                            "within_sla": 30,
                            "within_sla_percentage_friendly": 93.75,
                            "sla_breach": 2,
                            "sla_breach_percentage_friendly": 6.25,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTF": {
                            "friendly": "04h:56m",
                            "raw": 17765.166666666668,
                            "friendly_no_business": "23h:36m",
                            "raw_no_business": 85000.83333333333
                        },
                        "initialTTR": {
                            "friendly": "33m:31s",
                            "raw": 2010.642857142857,
                            "friendly_no_business": "02h:52m",
                            "raw_no_business": 10377.42857142857,
                            "deviation_friendly": "09m:39s",
                            "deviation_raw": 578.5,
                            "deviation_friendly_no_business": "09m:08s",
                            "deviation_raw_no_business": 547.5,
                            "median_friendly": "10m:57s",
                            "median_raw": 657.484375,
                            "median_friendly_no_business": "14m:46s",
                            "median_raw_no_business": 886.484375,
                            "consistency_score": "12.01%",
                            "consistency_score_no_business": "38.24%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 89.29,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 92.86,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 96.43,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 89.29,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 92.86,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 96.43,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 96.43,
                                    "count": 0
                                }
                            ],
                            "within_sla": 26,
                            "within_sla_percentage_friendly": 92.86,
                            "sla_breach": 2,
                            "sla_breach_percentage_friendly": 7.14,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTC": {
                            "friendly": "04h:44m",
                            "raw": 17051,
                            "friendly_no_business": "15h:24m",
                            "raw_no_business": 55451,
                            "within_sla": 2,
                            "within_sla_percentage_friendly": 66.67,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 33.33,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 66.67,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 66.67,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 43,
                        "internal": 0,
                        "inbound": 43,
                        "outbound": 0,
                        "sent_internally": 10,
                        "await_customer": 8,
                        "await_agent": 25,
                        "closed": 0,
                        "have_replies": 6,
                        "have_initial_replies": 6,
                        "handledRate": {
                            "rate": 18.6
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 0,
                            "initial": 0,
                            "replies": 0,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 0,
                            "dailyStats": null
                        },
                        "received": {
                            "count": 52,
                            "initial": 43,
                            "replies": 9,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 6,
                            "dailyStats": [],
                            "avg_wait": "135h:05m",
                            "avg_wait_raw": 486325,
                            "avg_first_wait": "133h:04m",
                            "avg_first_wait_raw": 479078
                        }
                    },
                    "overallTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTC": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 32,
                            "internal": 0,
                            "inbound": 32,
                            "outbound": 0,
                            "sent_internally": 3,
                            "await_customer": 15,
                            "await_agent": 14,
                            "closed": 0,
                            "have_replies": 6,
                            "have_initial_replies": 6,
                            "handledRate": {
                                "rate": 46.88
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "initial_replies": 0,
                                "dailyStats": null
                            },
                            "received": {
                                "count": 42,
                                "initial": 32,
                                "replies": 9,
                                "forward": 0,
                                "follow_up": 1,
                                "initial_replies": 6,
                                "dailyStats": [],
                                "avg_wait": "296h:35m",
                                "avg_wait_raw": 1067731,
                                "avg_first_wait": "301h:06m",
                                "avg_first_wait_raw": 1083990
                            }
                        },
                        "overallTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTF": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null
                        },
                        "initialTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTC": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 0,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 0,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 43,
                        "internal": 0,
                        "inbound": 42,
                        "outbound": 1,
                        "sent_internally": 9,
                        "await_customer": 10,
                        "await_agent": 20,
                        "closed": 4,
                        "have_replies": 10,
                        "have_initial_replies": 10,
                        "handledRate": {
                            "rate": 32.56
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 0,
                            "initial": 0,
                            "replies": 0,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 0,
                            "dailyStats": null
                        },
                        "received": {
                            "count": 56,
                            "initial": 41,
                            "replies": 14,
                            "forward": 0,
                            "follow_up": 1,
                            "initial_replies": 10,
                            "dailyStats": [],
                            "avg_wait": "108h:24m",
                            "avg_wait_raw": 390282,
                            "avg_first_wait": "100h:50m",
                            "avg_first_wait_raw": 363004
                        }
                    },
                    "overallTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTC": {
                        "friendly": "02h:10m",
                        "raw": 7813.5,
                        "friendly_no_business": "06h:10m",
                        "raw_no_business": 22213.5,
                        "within_sla": 3,
                        "within_sla_percentage_friendly": 75,
                        "sla_breach": 1,
                        "sla_breach_percentage_friendly": 25,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 75,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 35,
                            "internal": 0,
                            "inbound": 35,
                            "outbound": 0,
                            "sent_internally": 5,
                            "await_customer": 6,
                            "await_agent": 21,
                            "closed": 3,
                            "have_replies": 9,
                            "have_initial_replies": 9,
                            "handledRate": {
                                "rate": 25.71
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "initial_replies": 0,
                                "dailyStats": null
                            },
                            "received": {
                                "count": 50,
                                "initial": 35,
                                "replies": 14,
                                "forward": 0,
                                "follow_up": 1,
                                "initial_replies": 9,
                                "dailyStats": [],
                                "avg_wait": "263h:26m",
                                "avg_wait_raw": 948372,
                                "avg_first_wait": "253h:59m",
                                "avg_first_wait_raw": 914360
                            }
                        },
                        "overallTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTF": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null
                        },
                        "initialTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTC": {
                            "friendly": "06h:49m",
                            "raw": 24541.333333333332,
                            "friendly_no_business": "22h:49m",
                            "raw_no_business": 82141.33333333333,
                            "within_sla": 1,
                            "within_sla_percentage_friendly": 33.33,
                            "sla_breach": 2,
                            "sla_breach_percentage_friendly": 66.67,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 66.67,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 33.33,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 31,
                        "internal": 6,
                        "inbound": 18,
                        "outbound": 7,
                        "sent_internally": 8,
                        "await_customer": 6,
                        "await_agent": 14,
                        "closed": 3,
                        "have_replies": 19,
                        "have_initial_replies": 16,
                        "handledRate": {
                            "rate": 29.03
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 24,
                            "initial": 5,
                            "replies": 15,
                            "forward": 3,
                            "follow_up": 1,
                            "initial_replies": 10,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 41,
                            "initial": 18,
                            "replies": 13,
                            "forward": 7,
                            "follow_up": 3,
                            "initial_replies": 6,
                            "dailyStats": [],
                            "avg_wait": "49h:35m",
                            "avg_wait_raw": 178551,
                            "avg_first_wait": "45h:43m",
                            "avg_first_wait_raw": 164628
                        }
                    },
                    "overallTTR": {
                        "friendly": "02h:14m",
                        "raw": 8079.333333333333,
                        "friendly_no_business": "07h:33m",
                        "raw_no_business": 27203.2,
                        "deviation_friendly": "14m:32s",
                        "deviation_raw": 872,
                        "deviation_friendly_no_business": "14m:17s",
                        "deviation_raw_no_business": 857,
                        "median_friendly": "14m:32s",
                        "median_raw": 872.25,
                        "median_friendly_no_business": "28m:50s",
                        "median_raw_no_business": 1729.75,
                        "consistency_score": "0.03%",
                        "consistency_score_no_business": "50.46%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 73.33,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 86.67,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 86.67,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 73.33,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 73.33,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 80,
                                "count": 0
                            }
                        ],
                        "within_sla": 12,
                        "within_sla_percentage_friendly": 80,
                        "sla_breach": 3,
                        "sla_breach_percentage_friendly": 20,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "24m:36s",
                        "raw": 1475.6666666666667,
                        "friendly_no_business": "24m:36s",
                        "raw_no_business": 1475.6666666666667
                    },
                    "initialTTR": {
                        "friendly": "41m:11s",
                        "raw": 2471.3,
                        "friendly_no_business": "02h:16m",
                        "raw_no_business": 8209.8,
                        "deviation_friendly": "11m:40s",
                        "deviation_raw": 699.5,
                        "deviation_friendly_no_business": "08m:57s",
                        "deviation_raw_no_business": 536.5,
                        "median_friendly": "12m:29s",
                        "median_raw": 749.25,
                        "median_friendly_no_business": "21m:36s",
                        "median_raw_no_business": 1295.75,
                        "consistency_score": "6.64%",
                        "consistency_score_no_business": "58.6%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 90,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 90,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 90,
                                "count": 0
                            }
                        ],
                        "within_sla": 9,
                        "within_sla_percentage_friendly": 90,
                        "sla_breach": 1,
                        "sla_breach_percentage_friendly": 10,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "34m:20s",
                        "raw": 2059.6666666666665,
                        "friendly_no_business": "48m:31s",
                        "raw_no_business": 2911.3333333333335,
                        "within_sla": 3,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 66.67,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 66.67,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 27,
                            "internal": 11,
                            "inbound": 13,
                            "outbound": 3,
                            "sent_internally": 13,
                            "await_customer": 4,
                            "await_agent": 8,
                            "closed": 2,
                            "have_replies": 16,
                            "have_initial_replies": 16,
                            "handledRate": {
                                "rate": 22.22
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 25,
                                "initial": 6,
                                "replies": 17,
                                "forward": 2,
                                "follow_up": 0,
                                "initial_replies": 12,
                                "dailyStats": []
                            },
                            "received": {
                                "count": 36,
                                "initial": 19,
                                "replies": 13,
                                "forward": 3,
                                "follow_up": 1,
                                "initial_replies": 4,
                                "dailyStats": [],
                                "avg_wait": "274h:03m",
                                "avg_wait_raw": 986617,
                                "avg_first_wait": "195h:04m",
                                "avg_first_wait_raw": 702292
                            }
                        },
                        "overallTTR": {
                            "friendly": "41m:14s",
                            "raw": 2474.176470588235,
                            "friendly_no_business": "02h:49m",
                            "raw_no_business": 10190,
                            "deviation_friendly": "11m:51s",
                            "deviation_raw": 711,
                            "deviation_friendly_no_business": "12m:09s",
                            "deviation_raw_no_business": 729,
                            "median_friendly": "15m:22s",
                            "median_raw": 922.4375,
                            "median_friendly_no_business": "21m:43s",
                            "median_raw_no_business": 1302.9375,
                            "consistency_score": "22.92%",
                            "consistency_score_no_business": "44.05%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 88.24,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 94.12,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 94.12,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 82.35,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 88.24,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 88.24,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 88.24,
                                    "count": 0
                                }
                            ],
                            "within_sla": 16,
                            "within_sla_percentage_friendly": 94.12,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 5.88,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTF": {
                            "friendly": "09h:19m",
                            "raw": 33562,
                            "friendly_no_business": "25h:19m",
                            "raw_no_business": 91162
                        },
                        "initialTTR": {
                            "friendly": "22m:26s",
                            "raw": 1346,
                            "friendly_no_business": "02h:02m",
                            "raw_no_business": 7356.666666666667,
                            "deviation_friendly": "09m:06s",
                            "deviation_raw": 545.5,
                            "deviation_friendly_no_business": "08m:52s",
                            "deviation_raw_no_business": 532,
                            "median_friendly": "11m:42s",
                            "median_raw": 702.4375,
                            "median_friendly_no_business": "15m:22s",
                            "median_raw_no_business": 922.4375,
                            "consistency_score": "22.34%",
                            "consistency_score_no_business": "42.33%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 91.67,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 83.33,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 91.67,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 91.67,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 91.67,
                                    "count": 0
                                }
                            ],
                            "within_sla": 12,
                            "within_sla_percentage_friendly": 100,
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": 0,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTC": {
                            "friendly": "01h:11m",
                            "raw": 4302.5,
                            "friendly_no_business": "01h:11m",
                            "raw_no_business": 4302.5,
                            "within_sla": 2,
                            "within_sla_percentage_friendly": 100,
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": 0,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 50,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 50,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 30,
                        "internal": 8,
                        "inbound": 17,
                        "outbound": 5,
                        "sent_internally": 13,
                        "await_customer": 8,
                        "await_agent": 9,
                        "closed": 0,
                        "have_replies": 21,
                        "have_initial_replies": 19,
                        "handledRate": {
                            "rate": 26.67
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 30,
                            "initial": 6,
                            "replies": 20,
                            "forward": 4,
                            "follow_up": 0,
                            "initial_replies": 12,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 39,
                            "initial": 16,
                            "replies": 17,
                            "forward": 4,
                            "follow_up": 2,
                            "initial_replies": 7,
                            "dailyStats": [],
                            "avg_wait": "77h:49m",
                            "avg_wait_raw": 280143,
                            "avg_first_wait": "77h:45m",
                            "avg_first_wait_raw": 279941
                        }
                    },
                    "overallTTR": {
                        "friendly": "04h:07m",
                        "raw": 14859.1,
                        "friendly_no_business": "18h:51m",
                        "raw_no_business": 67892.95,
                        "deviation_friendly": "22m:47s",
                        "deviation_raw": 1366.5,
                        "deviation_friendly_no_business": "19m:23s",
                        "deviation_raw_no_business": 1163,
                        "median_friendly": "20m:06s",
                        "median_raw": 1205.75,
                        "median_friendly_no_business": "25m:29s",
                        "median_raw_no_business": 1528.75,
                        "consistency_score": "0%",
                        "consistency_score_no_business": "23.92%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 65,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 70,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 80,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 60,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 70,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 75,
                                "count": 0
                            }
                        ],
                        "within_sla": 14,
                        "within_sla_percentage_friendly": 70,
                        "sla_breach": 6,
                        "sla_breach_percentage_friendly": 30,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "04h:44m",
                        "raw": 17044.75,
                        "friendly_no_business": "16h:29m",
                        "raw_no_business": 59346.5
                    },
                    "initialTTR": {
                        "friendly": "04h:33m",
                        "raw": 16437.083333333332,
                        "friendly_no_business": "23h:52m",
                        "raw_no_business": 85939.75,
                        "deviation_friendly": "01h:14m",
                        "deviation_raw": 4479.5,
                        "deviation_friendly_no_business": "01h:24m",
                        "deviation_raw_no_business": 5078,
                        "median_friendly": "47m:13s",
                        "median_raw": 2833,
                        "median_friendly_no_business": "01h:42m",
                        "median_raw_no_business": 6127,
                        "consistency_score": "0%",
                        "consistency_score_no_business": "17.12%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 50,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 58.33,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 75,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 75,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 41.67,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 58.33,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 66.67,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 66.67,
                                "count": 0
                            }
                        ],
                        "within_sla": 7,
                        "within_sla_percentage_friendly": 58.33,
                        "sla_breach": 5,
                        "sla_breach_percentage_friendly": 41.67,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 33,
                            "internal": 13,
                            "inbound": 16,
                            "outbound": 4,
                            "sent_internally": 17,
                            "await_customer": 3,
                            "await_agent": 10,
                            "closed": 3,
                            "have_replies": 16,
                            "have_initial_replies": 15,
                            "handledRate": {
                                "rate": 18.18
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 24,
                                "initial": 5,
                                "replies": 15,
                                "forward": 3,
                                "follow_up": 1,
                                "initial_replies": 11,
                                "dailyStats": []
                            },
                            "received": {
                                "count": 47,
                                "initial": 24,
                                "replies": 13,
                                "forward": 7,
                                "follow_up": 3,
                                "initial_replies": 4,
                                "dailyStats": [],
                                "avg_wait": "285h:27m",
                                "avg_wait_raw": 1027623,
                                "avg_first_wait": "283h:03m",
                                "avg_first_wait_raw": 1019022
                            }
                        },
                        "overallTTR": {
                            "friendly": "36m:14s",
                            "raw": 2174.266666666667,
                            "friendly_no_business": "37m:27s",
                            "raw_no_business": 2247.4666666666667,
                            "deviation_friendly": "06m:45s",
                            "deviation_raw": 405,
                            "deviation_friendly_no_business": "05m:59s",
                            "deviation_raw_no_business": 359,
                            "median_friendly": "15m:06s",
                            "median_raw": 906.25,
                            "median_friendly_no_business": "15m:06s",
                            "median_raw_no_business": 906.25,
                            "consistency_score": "55.31%",
                            "consistency_score_no_business": "60.39%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 86.67,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 93.33,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 93.33,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 86.67,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 93.33,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 93.33,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "within_sla": 14,
                            "within_sla_percentage_friendly": 93.33,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 6.67,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTF": {
                            "friendly": "02h:38m",
                            "raw": 9510.666666666666,
                            "friendly_no_business": "07h:58m",
                            "raw_no_business": 28710.666666666668
                        },
                        "initialTTR": {
                            "friendly": "45m:44s",
                            "raw": 2743.6363636363635,
                            "friendly_no_business": "45m:44s",
                            "raw_no_business": 2743.6363636363635,
                            "deviation_friendly": "08m:09s",
                            "deviation_raw": 489,
                            "deviation_friendly_no_business": "08m:09s",
                            "deviation_raw_no_business": 489,
                            "median_friendly": "18m:44s",
                            "median_raw": 1123.75,
                            "median_friendly_no_business": "18m:44s",
                            "median_raw_no_business": 1123.75,
                            "consistency_score": "56.48%",
                            "consistency_score_no_business": "56.48%",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 81.82,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 90.91,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 90.91,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 81.82,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 90.91,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 90.91,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "within_sla": 10,
                            "within_sla_percentage_friendly": 90.91,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 9.09,
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": 0
                        },
                        "overallTTC": {
                            "friendly": "01h:02m",
                            "raw": 3766,
                            "friendly_no_business": "01h:10m",
                            "raw_no_business": 4234.333333333333,
                            "within_sla": 2,
                            "within_sla_percentage_friendly": 66.67,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 33.33,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 100,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 100,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 27,
                        "internal": 0,
                        "inbound": 27,
                        "outbound": 0,
                        "sent_internally": 5,
                        "await_customer": 7,
                        "await_agent": 15,
                        "closed": 0,
                        "have_replies": 4,
                        "have_initial_replies": 4,
                        "handledRate": {
                            "rate": 25.93
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 0,
                            "initial": 0,
                            "replies": 0,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 0,
                            "dailyStats": null
                        },
                        "received": {
                            "count": 36,
                            "initial": 27,
                            "replies": 7,
                            "forward": 0,
                            "follow_up": 2,
                            "initial_replies": 4,
                            "dailyStats": [],
                            "avg_wait": "89h:50m",
                            "avg_wait_raw": 323437,
                            "avg_first_wait": "118h:17m",
                            "avg_first_wait_raw": 425848
                        }
                    },
                    "overallTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTC": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 0,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 0,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 23,
                            "internal": 0,
                            "inbound": 23,
                            "outbound": 0,
                            "sent_internally": 5,
                            "await_customer": 8,
                            "await_agent": 10,
                            "closed": 0,
                            "have_replies": 2,
                            "have_initial_replies": 2,
                            "handledRate": {
                                "rate": 34.78
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "initial_replies": 0,
                                "dailyStats": null
                            },
                            "received": {
                                "count": 26,
                                "initial": 23,
                                "replies": 2,
                                "forward": 0,
                                "follow_up": 1,
                                "initial_replies": 2,
                                "dailyStats": [],
                                "avg_wait": "303h:13m",
                                "avg_wait_raw": 1091605,
                                "avg_first_wait": "313h:57m",
                                "avg_first_wait_raw": 1130249
                            }
                        },
                        "overallTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTF": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null
                        },
                        "initialTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTC": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 0,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 0,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 0,
                                    "count": 0
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 24,
                        "internal": 0,
                        "inbound": 24,
                        "outbound": 0,
                        "sent_internally": 3,
                        "await_customer": 7,
                        "await_agent": 13,
                        "closed": 1,
                        "have_replies": 4,
                        "have_initial_replies": 4,
                        "handledRate": {
                            "rate": 33.33
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 0,
                            "initial": 0,
                            "replies": 0,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 0,
                            "dailyStats": null
                        },
                        "received": {
                            "count": 32,
                            "initial": 24,
                            "replies": 6,
                            "forward": 0,
                            "follow_up": 2,
                            "initial_replies": 4,
                            "dailyStats": [],
                            "avg_wait": "86h:06m",
                            "avg_wait_raw": 309996,
                            "avg_first_wait": "89h:11m",
                            "avg_first_wait_raw": 321080
                        }
                    },
                    "overallTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "deviation_friendly": "N/A",
                        "deviation_raw": null,
                        "deviation_friendly_no_business": "N/A",
                        "deviation_raw_no_business": null,
                        "median_friendly": "N/A",
                        "median_raw": null,
                        "median_friendly_no_business": "N/A",
                        "median_raw_no_business": null,
                        "consistency_score": "N/A",
                        "consistency_score_no_business": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": "N/A"
                    },
                    "overallTTC": {
                        "friendly": "45m:24s",
                        "raw": 2724,
                        "friendly_no_business": "45m:24s",
                        "raw_no_business": 2724,
                        "within_sla": 1,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 100,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 100,
                                "count": 0
                            }
                        ]
                    },
                    "previous": {
                        "threads": {
                            "total": 26,
                            "internal": 0,
                            "inbound": 26,
                            "outbound": 0,
                            "sent_internally": 3,
                            "await_customer": 8,
                            "await_agent": 12,
                            "closed": 3,
                            "have_replies": 2,
                            "have_initial_replies": 2,
                            "handledRate": {
                                "rate": 42.31
                            }
                        },
                        "messages": {
                            "sent": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "initial_replies": 0,
                                "dailyStats": null
                            },
                            "received": {
                                "count": 29,
                                "initial": 26,
                                "replies": 3,
                                "forward": 0,
                                "follow_up": 0,
                                "initial_replies": 2,
                                "dailyStats": [],
                                "avg_wait": "245h:48m",
                                "avg_wait_raw": 884923,
                                "avg_first_wait": "245h:48m",
                                "avg_first_wait_raw": 884923
                            }
                        },
                        "overallTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTF": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null
                        },
                        "initialTTR": {
                            "friendly": "N/A",
                            "raw": null,
                            "friendly_no_business": "N/A",
                            "raw_no_business": null,
                            "deviation_friendly": "N/A",
                            "deviation_raw": null,
                            "deviation_friendly_no_business": "N/A",
                            "deviation_raw_no_business": null,
                            "median_friendly": "N/A",
                            "median_raw": null,
                            "median_friendly_no_business": "N/A",
                            "median_raw_no_business": null,
                            "consistency_score": "N/A",
                            "consistency_score_no_business": "N/A",
                            "percentileRanks": [],
                            "percentileRanksRaw": [],
                            "within_sla": 0,
                            "within_sla_percentage_friendly": "N/A",
                            "sla_breach": 0,
                            "sla_breach_percentage_friendly": "N/A",
                            "excluded_from_sla": 0,
                            "excluded_from_sla_percentage_friendly": "N/A"
                        },
                        "overallTTC": {
                            "friendly": "05h:05m",
                            "raw": 18345,
                            "friendly_no_business": "20h:47m",
                            "raw_no_business": 74862,
                            "within_sla": 2,
                            "within_sla_percentage_friendly": 66.67,
                            "sla_breach": 1,
                            "sla_breach_percentage_friendly": 33.33,
                            "percentileRanks": [
                                {
                                    "key": "01h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 66.67,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 66.67,
                                    "count": 0
                                }
                            ],
                            "percentileRanksRaw": [
                                {
                                    "key": "01h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "02h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "04h:00m",
                                    "value": 33.33,
                                    "count": 0
                                },
                                {
                                    "key": "08h:00m",
                                    "value": 33.33,
                                    "count": 0
                                }
                            ]
                        }
                    }
                }
            ],
            "first_page_url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "https://timetoreply.local/api/reports/sla",
            "per_page": 15,
            "prev_page_url": null,
            "to": 10,
            "total": 10
        }
    },
    "all_domain_stats": {
        "maxima": [],
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "timetoreply.com",
                    "threads": {
                        "total": 319,
                        "internal": 11,
                        "inbound": 271,
                        "outbound": 37,
                        "sent_internally": 49,
                        "await_customer": 88,
                        "await_agent": 154,
                        "closed": 28,
                        "have_replies": 243,
                        "have_initial_replies": 230,
                        "handledRate": {
                            "rate": 36.36
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 383,
                            "initial": 41,
                            "replies": 272,
                            "forward": 69,
                            "follow_up": 1,
                            "initial_replies": 205,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 383,
                            "initial": 41,
                            "replies": 272,
                            "forward": 69,
                            "follow_up": 1,
                            "initial_replies": 205,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:56m",
                        "raw": 6990.125,
                        "friendly_no_business": "07h:46m",
                        "raw_no_business": 27970.966911764706,
                        "deviation_friendly": "15m:22s",
                        "deviation_raw": 921.5,
                        "deviation_friendly_no_business": "13m:50s",
                        "deviation_raw_no_business": 829.5,
                        "median_friendly": "18m:55s",
                        "median_raw": 1134.9921875,
                        "median_friendly_no_business": "22m:36s",
                        "median_raw_no_business": 1355.984375,
                        "consistency_score": "18.81%",
                        "consistency_score_no_business": "38.83%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 73.53,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 80.88,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 87.87,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 91.91,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 70.96,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 77.57,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 82.72,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 84.19,
                                "count": 0
                            }
                        ],
                        "within_sla": 219,
                        "within_sla_percentage_friendly": 80.51,
                        "sla_breach": 53,
                        "sla_breach_percentage_friendly": 19.49,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTF": {
                        "friendly": "04h:01m",
                        "raw": 14508.623188405798,
                        "friendly_no_business": "17h:01m",
                        "raw_no_business": 61308.260869565216
                    },
                    "initialTTR": {
                        "friendly": "02h:00m",
                        "raw": 7248.809756097561,
                        "friendly_no_business": "08h:14m",
                        "raw_no_business": 29644.126829268294,
                        "deviation_friendly": "16m:55s",
                        "deviation_raw": 1015,
                        "deviation_friendly_no_business": "16m:19s",
                        "deviation_raw_no_business": 979,
                        "median_friendly": "20m:06s",
                        "median_raw": 1205.9921875,
                        "median_friendly_no_business": "24m:09s",
                        "median_raw_no_business": 1448.984375,
                        "consistency_score": "15.84%",
                        "consistency_score_no_business": "32.44%",
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 71.71,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 80,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 87.32,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 91.71,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 69.27,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 76.59,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 81.46,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 82.93,
                                "count": 0
                            }
                        ],
                        "within_sla": 163,
                        "within_sla_percentage_friendly": 79.51,
                        "sla_breach": 42,
                        "sla_breach_percentage_friendly": 20.49,
                        "excluded_from_sla": 0,
                        "excluded_from_sla_percentage_friendly": 0
                    },
                    "overallTTC": {
                        "friendly": "03h:20m",
                        "raw": 12036.035714285714,
                        "friendly_no_business": "15h:31m",
                        "raw_no_business": 55881.642857142855,
                        "within_sla": 18,
                        "within_sla_percentage_friendly": 64.29,
                        "sla_breach": 10,
                        "sla_breach_percentage_friendly": 35.71,
                        "percentileRanks": [
                            {
                                "key": "01h:00m",
                                "value": 42.86,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 64.29,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 78.57,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 89.29,
                                "count": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "key": "01h:00m",
                                "value": 39.29,
                                "count": 0
                            },
                            {
                                "key": "02h:00m",
                                "value": 60.71,
                                "count": 0
                            },
                            {
                                "key": "04h:00m",
                                "value": 71.43,
                                "count": 0
                            },
                            {
                                "key": "08h:00m",
                                "value": 71.43,
                                "count": 0
                            }
                        ]
                    }
                }
            ],
            "first_page_url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "https://timetoreply.local/api/reports/sla",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    },
    "all_customer_stats": {
        "maxima": [],
        "data": {
            "current_page": 1,
            "data": [],
            "first_page_url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
            "from": null,
            "last_page": 1,
            "last_page_url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/sla?model=timetoreply.com&model_type=Contact&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&init_ttr_goal=02%3A00%3A00&overall_ttr_goal=02%3A00%3A00&overall_ttc_goal=02%3A00%3A00&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "https://timetoreply.local/api/reports/sla",
            "per_page": 15,
            "prev_page_url": null,
            "to": null,
            "total": 0
        }
    },
    "args": {
        "model": {
            "id": null,
            "name": "timetoreply.com",
            "email_usernames": [
                "timetoreply.com"
            ],
            "model_type": "Contact",
            "icon": "user"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        },
        "init_ttr_goal": 7200,
        "overall_ttr_goal": 7200,
        "overall_ttc_goal": 7200
    },
    "mailbox_names": {
        "data": {
            "[email protected]": "Elmore Becker",
            "[email protected]": "Treva Bradtke",
            "[email protected]": "Brisa Ziemann",
            "[email protected]": "Florida Gleason",
            "us-s[email protected]": "US Sales",
            "[email protected]": "Delfina Lubowitz",
            "[email protected]": "Cornell Herzog",
            "[email protected]": "EU Sales",
            "[email protected]": "EU Support"
        },
        "enabled": false
    }
}
 

Request   

GET api/reports/sla

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: timetoreply.com

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Contact

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

init_ttr_goal   string  optional  

Time string in the format "HH:MM:SS" of your initial reply time goal. Example: 02:00:00

overall_ttr_goal   string  optional  

Time string in the format "HH:MM:SS" of your overall reply time goal. Example: 02:00:00

overall_ttc_goal   string  optional  

Time string in the format "HH:MM:SS" of your overall time to close goal. Example: 02:00:00

Trend

Trend - Report

requires authentication

Trend Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/trend"
);

const params = {
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "maiores",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "date": "2020-01-01",
    "periods": "12",
    "period_type": "Months",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/trend',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'maiores',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'date' => '2020-01-01',
            'periods' => '12',
            'period_type' => 'Months',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/trend?model=My+Company&model_type=Internal&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=maiores&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&date=2020-01-01&periods=12&period_type=Months" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "messages.received.count": {
            "title": "Emails Received",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 0
        },
        "messages.sent.count": {
            "title": "Emails Sent",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 1
        },
        "messages.sent.initial": {
            "title": "New Emails Sent",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 2
        },
        "messages.sent.replies": {
            "title": "Replies Sent",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 3
        },
        "messages.sent.forward": {
            "title": "Forwards Sent",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 4
        },
        "initialTTR.raw": {
            "title": "Avg. First Reply Time",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 5
        },
        "overallTTR.raw": {
            "title": "Avg. Overall Reply Time",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 6
        },
        "overallTTC.raw": {
            "title": "Avg. Time To Close",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 7
        },
        "initialTTR.deviation_raw": {
            "title": "Deviation First Reply Time",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 8
        },
        "overallTTR.deviation_raw": {
            "title": "Deviation Overall Reply Time",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 0
        },
        "initialTTR.median_raw": {
            "title": "Median First Reply Time",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 1
        },
        "overallTTR.median_raw": {
            "title": "Median Overall Reply Time",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "e.b[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 2
        },
        "threads.have_initial_reply_rate": {
            "title": "First Reply Ratio",
            "type": "percentage",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": [],
            "colour": 3
        },
        "threads.total": {
            "title": "Conversations",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#A6093F"
                },
                "[email protected]": {
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ],
                    "colour": "#B374D2"
                }
            },
            "colour": 4
        },
        "threads.ttr_ratio": {
            "title": "timetoreply Ratio",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": [],
            "colour": 5
        },
        "threads.success_rate": {
            "title": "Contact Success Rate",
            "type": "percentage",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": [],
            "colour": 6
        },
        "threads.success_time": {
            "title": "Avg. Time to Contact Success",
            "type": "replyTime",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": [],
            "colour": 7
        }
    },
    "dates": [
        "Feb 2019",
        "Mar to date",
        "Apr 2019",
        "May 2019",
        "Jun 2019",
        "Jul 2019",
        "Aug 2019",
        "Sep 2019",
        "Oct 2019",
        "Nov 2019",
        "Dec 2019",
        "Jan to date"
    ],
    "total": 8,
    "page": 1
}
 

Request   

GET api/reports/trend

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

date   string  optional  

The date you want the report to go up to in the format "YYYY-MM-DD". Example: 2020-01-01

periods   integer  optional  

The number of date periods to show in the trend report. Must be less than 53 if choosing "Weeks" and less than 13 if choosing "Months". Example: 12

period_type   string  optional  

The type of date period to break the report down into. Can be either "Weeks" or "Months". Example: Months

Contacts

Contacts - Report

requires authentication

Contacts Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/contact"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "in",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "page_emails": "1",
    "per_page_emails": "2",
    "direction_emails": "desc",
    "sort_by_emails": "threads.total",
    "page_domains": "1",
    "per_page_domains": "2",
    "direction_domains": "desc",
    "sort_by_domains": "threads.total",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/contact',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'in',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'page_emails' => '1',
            'per_page_emails' => '2',
            'direction_emails' => 'desc',
            'sort_by_emails' => 'threads.total',
            'page_domains' => '1',
            'per_page_domains' => '2',
            'direction_domains' => 'desc',
            'sort_by_domains' => 'threads.total',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/contact?from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=in&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "domains": {
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "hotmail.com",
                    "threads": {
                        "total": 8,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 1,
                        "await_agent": 5,
                        "closed": 0,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 12.5
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 3,
                            "initial": 0,
                            "replies": 3,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 1,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 2,
                            "initial": 0,
                            "replies": 1,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 0,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        }
                    },
                    "overallTTR": {
                        "friendly": "03h:12m",
                        "raw": 11521,
                        "friendly_no_business": "13h:34m",
                        "raw_no_business": 48859,
                        "deviation_friendly": "14m:31s",
                        "deviation_raw": 871,
                        "deviation_friendly_no_business": "08m:09s",
                        "deviation_raw_no_business": 489,
                        "median_friendly": "14m:31s",
                        "median_raw": 871,
                        "median_friendly_no_business": "14m:31s",
                        "median_raw_no_business": 871.25,
                        "consistency_score": "0%",
                        "consistency_score_no_business": "43.87%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 3,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "00s",
                        "raw": 0,
                        "friendly_no_business": "06m:22s",
                        "raw_no_business": 382,
                        "deviation_friendly": "00s",
                        "deviation_raw": 0,
                        "deviation_friendly_no_business": "00s",
                        "deviation_raw_no_business": 0,
                        "median_friendly": "00s",
                        "median_raw": 0,
                        "median_friendly_no_business": "06m:22s",
                        "median_raw_no_business": 382,
                        "consistency_score": "100%",
                        "consistency_score_no_business": "100%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 1,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTC": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "percentileRanks": [],
                        "percentileRanksRaw": []
                    }
                },
                {
                    "name": "yahoo.com",
                    "threads": {
                        "total": 8,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 3,
                        "await_agent": 2,
                        "closed": 2,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 62.5
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 4,
                            "initial": 0,
                            "replies": 4,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 3,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 2,
                            "initial": 0,
                            "replies": 2,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 0,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        }
                    },
                    "overallTTR": {
                        "friendly": "38m:48s",
                        "raw": 2327.5,
                        "friendly_no_business": "38m:48s",
                        "raw_no_business": 2327.5,
                        "deviation_friendly": "01m:38s",
                        "deviation_raw": 98,
                        "deviation_friendly_no_business": "01m:38s",
                        "deviation_raw_no_business": 98,
                        "median_friendly": "20m:19s",
                        "median_raw": 1218.5,
                        "median_friendly_no_business": "20m:19s",
                        "median_raw_no_business": 1218.5,
                        "consistency_score": "91.96%",
                        "consistency_score_no_business": "91.96%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 4,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "44m:57s",
                        "raw": 2697,
                        "friendly_no_business": "44m:57s",
                        "raw_no_business": 2697,
                        "deviation_friendly": "03m:15s",
                        "deviation_raw": 195,
                        "deviation_friendly_no_business": "03m:15s",
                        "deviation_raw_no_business": 195,
                        "median_friendly": "20m:19s",
                        "median_raw": 1218.5,
                        "median_friendly_no_business": "20m:19s",
                        "median_raw_no_business": 1218.5,
                        "consistency_score": "84%",
                        "consistency_score_no_business": "84%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 3,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTC": {
                        "friendly": "07h:09m",
                        "raw": 25778.5,
                        "friendly_no_business": "23h:09m",
                        "raw_no_business": 83378.5,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "percentileRanks": [],
                        "percentileRanksRaw": []
                    }
                }
            ],
            "first_page_url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=1",
            "from": 1,
            "last_page": 150,
            "last_page_url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=150",
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=5",
                    "label": "5",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=6",
                    "label": "6",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=7",
                    "label": "7",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=8",
                    "label": "8",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=9",
                    "label": "9",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=10",
                    "label": "10",
                    "active": false
                },
                {
                    "url": null,
                    "label": "...",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=149",
                    "label": "149",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=150",
                    "label": "150",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "next_page_url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
            "path": "https://timetoreply.local/api/reports/contact",
            "per_page": 2,
            "prev_page_url": null,
            "to": 2,
            "total": 299
        },
        "totals": {
            "name": null,
            "threads.total": 351,
            "threads.await_customer": 110,
            "threads.await_agent": 167,
            "messages.received.count": 474,
            "messages.sent.count": 461,
            "overallTTR.friendly": "N/A",
            "overallTTR.friendly_no_business": "N/A",
            "initialTTR.friendly": "N/A",
            "initialTTR.friendly_no_business": "N/A",
            "overallTTC.friendly": "N/A",
            "overallTTC.friendly_no_business": "N/A"
        }
    },
    "emails": {
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 154,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 44,
                        "await_agent": 66,
                        "closed": 10,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 35.06
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 53,
                            "initial": 0,
                            "replies": 12,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 4,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 47,
                            "initial": 0,
                            "replies": 11,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 8,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        }
                    },
                    "overallTTR": {
                        "friendly": "01h:16m",
                        "raw": 4564.583333333333,
                        "friendly_no_business": "05h:38m",
                        "raw_no_business": 20288.333333333332,
                        "deviation_friendly": "17m:01s",
                        "deviation_raw": 1020.5,
                        "deviation_friendly_no_business": "18m:56s",
                        "deviation_raw_no_business": 1135.5,
                        "median_friendly": "22m:51s",
                        "median_raw": 1370.75,
                        "median_friendly_no_business": "27m:28s",
                        "median_raw_no_business": 1647.75,
                        "consistency_score": "25.55%",
                        "consistency_score_no_business": "31.09%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 12,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "02h:24m",
                        "raw": 8693,
                        "friendly_no_business": "12h:30m",
                        "raw_no_business": 45034.25,
                        "deviation_friendly": "20m:01s",
                        "deviation_raw": 1200.5,
                        "deviation_friendly_no_business": "20m:01s",
                        "deviation_raw_no_business": 1200.5,
                        "median_friendly": "27m:28s",
                        "median_raw": 1647.75,
                        "median_friendly_no_business": "27m:28s",
                        "median_raw_no_business": 1647.75,
                        "consistency_score": "27.14%",
                        "consistency_score_no_business": "27.14%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 4,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTC": {
                        "friendly": "03h:04m",
                        "raw": 11094.2,
                        "friendly_no_business": "15h:46m",
                        "raw_no_business": 56804.2,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "percentileRanks": [],
                        "percentileRanksRaw": []
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 83,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 22,
                        "await_agent": 32,
                        "closed": 2,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 28.92
                        }
                    },
                    "messages": {
                        "sent": {
                            "count": 34,
                            "initial": 0,
                            "replies": 4,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 3,
                            "dailyStats": []
                        },
                        "received": {
                            "count": 30,
                            "initial": 0,
                            "replies": 6,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 4,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        }
                    },
                    "overallTTR": {
                        "friendly": "46m:52s",
                        "raw": 2811.5,
                        "friendly_no_business": "46m:52s",
                        "raw_no_business": 2811.5,
                        "deviation_friendly": "05m:17s",
                        "deviation_raw": 317,
                        "deviation_friendly_no_business": "05m:17s",
                        "deviation_raw_no_business": 317,
                        "median_friendly": "17m:12s",
                        "median_raw": 1031.5,
                        "median_friendly_no_business": "17m:12s",
                        "median_raw_no_business": 1031.5,
                        "consistency_score": "69.27%",
                        "consistency_score_no_business": "69.27%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 4,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "initialTTR": {
                        "friendly": "56m:45s",
                        "raw": 3405,
                        "friendly_no_business": "56m:45s",
                        "raw_no_business": 3405,
                        "deviation_friendly": "10m:34s",
                        "deviation_raw": 634,
                        "deviation_friendly_no_business": "10m:34s",
                        "deviation_raw_no_business": 634,
                        "median_friendly": "27m:28s",
                        "median_raw": 1647.5,
                        "median_friendly_no_business": "27m:28s",
                        "median_raw_no_business": 1647.5,
                        "consistency_score": "61.52%",
                        "consistency_score_no_business": "61.52%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 3,
                        "excluded_from_sla_percentage_friendly": 100
                    },
                    "overallTTC": {
                        "friendly": "20m:57s",
                        "raw": 1257,
                        "friendly_no_business": "31h:48m",
                        "raw_no_business": 114499,
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "percentileRanks": [],
                        "percentileRanksRaw": []
                    }
                }
            ],
            "first_page_url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=1",
            "from": 1,
            "last_page": 4,
            "last_page_url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=4",
            "links": [
                {
                    "url": null,
                    "label": "&laquo; Previous",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
                    "label": "2",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=3",
                    "label": "3",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=4",
                    "label": "4",
                    "active": false
                },
                {
                    "url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
                    "label": "Next &raquo;",
                    "active": false
                }
            ],
            "next_page_url": "https://timetoreply.local/api/reports/contact?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
            "path": "https://timetoreply.local/api/reports/contact",
            "per_page": 2,
            "prev_page_url": null,
            "to": 2,
            "total": 8
        },
        "totals": {
            "name": null,
            "threads.total": 351,
            "threads.await_customer": 110,
            "threads.await_agent": 167,
            "messages.received.count": 474,
            "messages.sent.count": 461,
            "overallTTR.friendly": "N/A",
            "overallTTR.friendly_no_business": "N/A",
            "initialTTR.friendly": "N/A",
            "initialTTR.friendly_no_business": "N/A",
            "overallTTC.friendly": "N/A",
            "overallTTC.friendly_no_business": "N/A"
        }
    },
    "columns": [
        {
            "field": "name",
            "sortable": true,
            "centered": false,
            "label": "Email",
            "visible": true,
            "hasEmails": true,
            "hasComparison": false,
            "headerClass": "w-1/6",
            "flipColours": false
        },
        {
            "field": "threads.total",
            "sortable": true,
            "centered": false,
            "label": "Total",
            "visible": true,
            "hasComparison": true,
            "group": "Conversations",
            "flipColours": false
        },
        {
            "field": "threads.await_customer",
            "sortable": true,
            "centered": false,
            "label": "Awaiting Contact Response",
            "visible": false,
            "hasComparison": true,
            "group": "Conversations",
            "flipColours": false
        },
        {
            "field": "threads.await_agent",
            "sortable": true,
            "centered": false,
            "label": "Awaiting Mailbox Response",
            "visible": false,
            "hasComparison": true,
            "group": "Conversations",
            "flipColours": false
        },
        {
            "field": "messages.received.count",
            "sortable": true,
            "centered": false,
            "label": "Total",
            "visible": true,
            "hasComparison": true,
            "group": "Emails Received",
            "flipColours": false
        },
        {
            "field": "messages.sent.count",
            "sortable": true,
            "centered": false,
            "label": "Total",
            "visible": true,
            "hasComparison": true,
            "group": "Emails Sent",
            "flipColours": false
        },
        {
            "field": "overallTTR.friendly",
            "sortable": true,
            "centered": true,
            "label": "Average",
            "visible": true,
            "hasComparison": false,
            "hasGoals": true,
            "group": "Overall Reply Time",
            "flipColours": true
        },
        {
            "field": "overallTTR.friendly_no_business",
            "sortable": true,
            "centered": true,
            "label": "Average (no business hours)",
            "visible": false,
            "hasComparison": false,
            "group": "Overall Reply Time",
            "flipColours": true
        },
        {
            "field": "initialTTR.friendly",
            "sortable": true,
            "centered": true,
            "label": "Average",
            "visible": true,
            "hasComparison": false,
            "hasGoals": true,
            "group": "First Reply Time",
            "flipColours": true
        },
        {
            "field": "initialTTR.friendly_no_business",
            "sortable": true,
            "centered": true,
            "label": "Average (no business hours)",
            "visible": false,
            "hasComparison": false,
            "group": "First Reply Time",
            "flipColours": true
        },
        {
            "field": "overallTTC.friendly",
            "sortable": true,
            "centered": true,
            "label": "Average",
            "visible": false,
            "tooltip": "Average time to close a conversation. Measured from the first message in a conversation to the last. Takes account of business hours",
            "hasComparison": false,
            "hasGoals": true,
            "group": "Time To Close",
            "flipColours": true
        },
        {
            "field": "overallTTC.friendly_no_business",
            "sortable": true,
            "centered": true,
            "label": "Average (no business hours)",
            "visible": false,
            "tooltip": "Average time to close a conversation. Measured from the first message in a conversation to the last. Ingores of business hours",
            "hasComparison": false,
            "group": "Time To Close",
            "flipColours": true
        }
    ]
}
 

Request   

GET api/reports/contact

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

page_emails   integer  optional  

For paginated results, which page to get for emails. Example: 1

per_page_emails   integer  optional  

For paginated results, how many results per page for emails. Max 200. Example: 2

direction_emails   string  optional  

Direction in which to sort email results. Must be either asc or desc. Example: desc

sort_by_emails   string  optional  

Field Name to sort emails by. Defaults to threads.total. Example: threads.total

page_domains   integer  optional  

For paginated results, which page to get for domains. Example: 1

per_page_domains   integer  optional  

For paginated results, how many results per page for domains. Max 200. Example: 2

direction_domains   string  optional  

Direction in which to sort domain results. Must be either asc or desc. Example: desc

sort_by_domains   string  optional  

Field Name to sort domains by. Defaults to threads.total. Example: threads.total

Teams

Teams - Report

requires authentication

Teams Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/teams"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "US Sales Team",
    "model_type": "Team",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "fuga",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "sort_by": "threads.total",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/teams',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'US Sales Team',
            'model_type' => 'Team',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'fuga',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/teams?from=2020-01-01&to=2020-01-08&model=US+Sales+Team&model_type=Team&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=fuga&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&sort_by=threads.total&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "threads": {
            "total": 200,
            "internal": 3,
            "inbound": 182,
            "outbound": 15,
            "sent_internally": 35,
            "await_customer": 64,
            "await_agent": 93,
            "closed": 8,
            "have_replies": 169,
            "have_replies_from_agents": 159,
            "have_no_replies_from_agents": 41,
            "completionRatio": {
                "ratio": 82.97,
                "numerator": 151,
                "denominator": 182
            },
            "handledRate": {
                "rate": 36,
                "numerator": 72,
                "denominator": 200
            },
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 473,
            "initial": 0,
            "replies": 313,
            "forward": 0,
            "follow_up": 0,
            "received": {
                "count": 276,
                "initial": 83,
                "replies": 133,
                "forward": 50,
                "follow_up": 10,
                "initial_replies": 16,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                },
                "avg_wait": "N/A",
                "avg_wait_raw": null,
                "avg_first_wait": "N/A",
                "avg_first_wait_raw": null
            },
            "sent": {
                "count": 260,
                "initial": 16,
                "replies": 190,
                "forward": 54,
                "follow_up": 0,
                "initial_replies": 151,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "01h:42m",
            "raw": 6128.731578947369,
            "friendly_no_business": "06h:29m",
            "raw_no_business": 23373.515789473684,
            "deviation_friendly": "15m:04s",
            "deviation_raw": 903.5,
            "deviation_friendly_no_business": "14m:20s",
            "deviation_raw_no_business": 860,
            "median_friendly": "18m:33s",
            "median_raw": 1112.9921875,
            "median_friendly_no_business": "21m:59s",
            "median_raw_no_business": 1318.984375,
            "consistency_score": "18.82%",
            "consistency_score_no_business": "34.8%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": 0,
            "sla_breach": null,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 190,
            "excluded_from_sla_percentage_friendly": 100
        },
        "initialTTR": {
            "friendly": "01h:46m",
            "raw": 6392.112582781457,
            "friendly_no_business": "06h:36m",
            "raw_no_business": 23793.12582781457,
            "deviation_friendly": "15m:11s",
            "deviation_raw": 911,
            "deviation_friendly_no_business": "15m:07s",
            "deviation_raw_no_business": 907,
            "median_friendly": "18m:42s",
            "median_raw": 1121.9921875,
            "median_friendly_no_business": "22m:19s",
            "median_raw_no_business": 1338.984375,
            "consistency_score": "18.81%",
            "consistency_score_no_business": "32.26%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 151,
            "excluded_from_sla_percentage_friendly": 100
        },
        "overallTTF": {
            "friendly": "03h:51m",
            "raw": 13876.407407407407,
            "friendly_no_business": "16h:53m",
            "raw_no_business": 60802.81481481482
        },
        "overallTTC": {
            "friendly": "03h:42m",
            "raw": 13332.25,
            "friendly_no_business": "23h:30m",
            "raw_no_business": 84634.5,
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0
        },
        "dailyStats": []
    },
    "all_team_stats": {
        "current_page": 1,
        "data": [
            {
                "threads": {
                    "total": 196,
                    "internal": 3,
                    "inbound": 178,
                    "outbound": 15,
                    "sent_internally": 35,
                    "await_customer": 64,
                    "await_agent": 90,
                    "closed": 7,
                    "have_replies": 169,
                    "have_replies_from_agents": 159,
                    "have_no_replies_from_agents": 37,
                    "completionRatio": {
                        "ratio": 84.83,
                        "numerator": 151,
                        "denominator": 178
                    },
                    "handledRate": {
                        "rate": 36.22,
                        "numerator": 71,
                        "denominator": 196
                    },
                    "labels": {
                        "total": 0,
                        "list": []
                    }
                },
                "messages": {
                    "count": 447,
                    "initial": 0,
                    "replies": 313,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 246,
                        "initial": 59,
                        "replies": 129,
                        "forward": 50,
                        "follow_up": 8,
                        "initial_replies": 12,
                        "dayOfWeek": {
                            "Monday": 0,
                            "Tuesday": 0,
                            "Wednesday": 0,
                            "Thursday": 0,
                            "Friday": 0,
                            "Saturday": 0,
                            "Sunday": 0
                        },
                        "hourOfDay": {
                            "00:00": 0,
                            "01:00": 0,
                            "02:00": 0,
                            "03:00": 0,
                            "04:00": 0,
                            "05:00": 0,
                            "06:00": 0,
                            "07:00": 0,
                            "08:00": 0,
                            "09:00": 0,
                            "10:00": 0,
                            "11:00": 0,
                            "12:00": 0,
                            "13:00": 0,
                            "14:00": 0,
                            "15:00": 0,
                            "16:00": 0,
                            "17:00": 0,
                            "18:00": 0,
                            "19:00": 0,
                            "20:00": 0,
                            "21:00": 0,
                            "22:00": 0,
                            "23:00": 0
                        },
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 260,
                        "initial": 16,
                        "replies": 190,
                        "forward": 54,
                        "follow_up": 0,
                        "initial_replies": 151,
                        "dayOfWeek": {
                            "Monday": 0,
                            "Tuesday": 0,
                            "Wednesday": 0,
                            "Thursday": 0,
                            "Friday": 0,
                            "Saturday": 0,
                            "Sunday": 0
                        },
                        "hourOfDay": {
                            "00:00": 0,
                            "01:00": 0,
                            "02:00": 0,
                            "03:00": 0,
                            "04:00": 0,
                            "05:00": 0,
                            "06:00": 0,
                            "07:00": 0,
                            "08:00": 0,
                            "09:00": 0,
                            "10:00": 0,
                            "11:00": 0,
                            "12:00": 0,
                            "13:00": 0,
                            "14:00": 0,
                            "15:00": 0,
                            "16:00": 0,
                            "17:00": 0,
                            "18:00": 0,
                            "19:00": 0,
                            "20:00": 0,
                            "21:00": 0,
                            "22:00": 0,
                            "23:00": 0
                        }
                    }
                },
                "overallTTR": {
                    "friendly": "01h:42m",
                    "raw": 6128.731578947369,
                    "friendly_no_business": "06h:29m",
                    "raw_no_business": 23373.515789473684,
                    "deviation_friendly": "15m:04s",
                    "deviation_raw": 903.5,
                    "deviation_friendly_no_business": "14m:20s",
                    "deviation_raw_no_business": 860,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "21m:59s",
                    "median_raw_no_business": 1318.984375,
                    "consistency_score": "18.82%",
                    "consistency_score_no_business": "34.8%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 190,
                    "excluded_from_sla_percentage_friendly": 100,
                    "goal_status": null,
                    "goal": null
                },
                "initialTTR": {
                    "friendly": "01h:46m",
                    "raw": 6392.112582781457,
                    "friendly_no_business": "06h:36m",
                    "raw_no_business": 23793.12582781457,
                    "deviation_friendly": "15m:11s",
                    "deviation_raw": 911,
                    "deviation_friendly_no_business": "15m:07s",
                    "deviation_raw_no_business": 907,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "22m:19s",
                    "median_raw_no_business": 1338.984375,
                    "consistency_score": "18.81%",
                    "consistency_score_no_business": "32.26%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 151,
                    "excluded_from_sla_percentage_friendly": 100,
                    "goal_status": null,
                    "goal": null
                },
                "overallTTF": {
                    "friendly": "03h:51m",
                    "raw": 13876.407407407407,
                    "friendly_no_business": "16h:53m",
                    "raw_no_business": 60802.81481481482
                },
                "overallTTC": {
                    "friendly": "04h:07m",
                    "raw": 14847.714285714286,
                    "friendly_no_business": "26h:45m",
                    "raw_no_business": 96336,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "goal_status": null,
                    "goal": null
                },
                "dailyStats": [],
                "name": "EU Support Team"
            },
            {
                "threads": {
                    "total": 196,
                    "internal": 3,
                    "inbound": 178,
                    "outbound": 15,
                    "sent_internally": 35,
                    "await_customer": 64,
                    "await_agent": 90,
                    "closed": 7,
                    "have_replies": 169,
                    "have_replies_from_agents": 159,
                    "have_no_replies_from_agents": 37,
                    "completionRatio": {
                        "ratio": 84.83,
                        "numerator": 151,
                        "denominator": 178
                    },
                    "handledRate": {
                        "rate": 36.22,
                        "numerator": 71,
                        "denominator": 196
                    },
                    "labels": {
                        "total": 0,
                        "list": []
                    }
                },
                "messages": {
                    "count": 447,
                    "initial": 0,
                    "replies": 313,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 246,
                        "initial": 59,
                        "replies": 129,
                        "forward": 50,
                        "follow_up": 8,
                        "initial_replies": 12,
                        "dayOfWeek": {
                            "Monday": 0,
                            "Tuesday": 0,
                            "Wednesday": 0,
                            "Thursday": 0,
                            "Friday": 0,
                            "Saturday": 0,
                            "Sunday": 0
                        },
                        "hourOfDay": {
                            "00:00": 0,
                            "01:00": 0,
                            "02:00": 0,
                            "03:00": 0,
                            "04:00": 0,
                            "05:00": 0,
                            "06:00": 0,
                            "07:00": 0,
                            "08:00": 0,
                            "09:00": 0,
                            "10:00": 0,
                            "11:00": 0,
                            "12:00": 0,
                            "13:00": 0,
                            "14:00": 0,
                            "15:00": 0,
                            "16:00": 0,
                            "17:00": 0,
                            "18:00": 0,
                            "19:00": 0,
                            "20:00": 0,
                            "21:00": 0,
                            "22:00": 0,
                            "23:00": 0
                        },
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 260,
                        "initial": 16,
                        "replies": 190,
                        "forward": 54,
                        "follow_up": 0,
                        "initial_replies": 151,
                        "dayOfWeek": {
                            "Monday": 0,
                            "Tuesday": 0,
                            "Wednesday": 0,
                            "Thursday": 0,
                            "Friday": 0,
                            "Saturday": 0,
                            "Sunday": 0
                        },
                        "hourOfDay": {
                            "00:00": 0,
                            "01:00": 0,
                            "02:00": 0,
                            "03:00": 0,
                            "04:00": 0,
                            "05:00": 0,
                            "06:00": 0,
                            "07:00": 0,
                            "08:00": 0,
                            "09:00": 0,
                            "10:00": 0,
                            "11:00": 0,
                            "12:00": 0,
                            "13:00": 0,
                            "14:00": 0,
                            "15:00": 0,
                            "16:00": 0,
                            "17:00": 0,
                            "18:00": 0,
                            "19:00": 0,
                            "20:00": 0,
                            "21:00": 0,
                            "22:00": 0,
                            "23:00": 0
                        }
                    }
                },
                "overallTTR": {
                    "friendly": "01h:42m",
                    "raw": 6128.731578947369,
                    "friendly_no_business": "06h:29m",
                    "raw_no_business": 23373.515789473684,
                    "deviation_friendly": "15m:04s",
                    "deviation_raw": 903.5,
                    "deviation_friendly_no_business": "14m:20s",
                    "deviation_raw_no_business": 860,
                    "median_friendly": "18m:33s",
                    "median_raw": 1112.9921875,
                    "median_friendly_no_business": "21m:59s",
                    "median_raw_no_business": 1318.984375,
                    "consistency_score": "18.82%",
                    "consistency_score_no_business": "34.8%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 190,
                    "excluded_from_sla_percentage_friendly": 100,
                    "goal_status": null,
                    "goal": null
                },
                "initialTTR": {
                    "friendly": "01h:46m",
                    "raw": 6392.112582781457,
                    "friendly_no_business": "06h:36m",
                    "raw_no_business": 23793.12582781457,
                    "deviation_friendly": "15m:11s",
                    "deviation_raw": 911,
                    "deviation_friendly_no_business": "15m:07s",
                    "deviation_raw_no_business": 907,
                    "median_friendly": "18m:42s",
                    "median_raw": 1121.9921875,
                    "median_friendly_no_business": "22m:19s",
                    "median_raw_no_business": 1338.984375,
                    "consistency_score": "18.81%",
                    "consistency_score_no_business": "32.26%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 151,
                    "excluded_from_sla_percentage_friendly": 100,
                    "goal_status": null,
                    "goal": null
                },
                "overallTTF": {
                    "friendly": "03h:51m",
                    "raw": 13876.407407407407,
                    "friendly_no_business": "16h:53m",
                    "raw_no_business": 60802.81481481482
                },
                "overallTTC": {
                    "friendly": "04h:07m",
                    "raw": 14847.714285714286,
                    "friendly_no_business": "26h:45m",
                    "raw_no_business": 96336,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "goal_status": null,
                    "goal": null
                },
                "dailyStats": [],
                "name": "US Support Team"
            }
        ],
        "first_page_url": "https://timetoreply.local/api/reports/teams?model=US%20Sales%20Team&model_type=Team&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://timetoreply.local/api/reports/teams?model=US%20Sales%20Team&model_type=Team&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/reports/teams?model=US%20Sales%20Team&model_type=Team&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://timetoreply.local/api/reports/teams",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    }
}
 

Request   

GET api/reports/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name of the team you want statistics for. Use the models endpoint to get a list. Example: US Sales Team

model_type   string  optional  

Model Type of the model being queried. Can only be 'Internal' or 'Team'. Example: Team

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort agents by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Group Mailboxes

Group Mailboxes - Report

requires authentication

Group Mailboxes Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/group-mailboxes"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "Support",
    "model_type": "Group Mailbox",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "fugiat",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "sort_by": "threads.total",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/group-mailboxes',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'Support',
            'model_type' => 'Group Mailbox',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'fugiat',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/group-mailboxes?from=2020-01-01&to=2020-01-08&model=Support&model_type=Group+Mailbox&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=fugiat&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&sort_by=threads.total&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "threads": {
            "total": 200,
            "internal": 3,
            "inbound": 182,
            "outbound": 15,
            "sent_internally": 35,
            "await_customer": 64,
            "await_agent": 93,
            "closed": 8,
            "have_replies": 169,
            "have_replies_from_agents": 159,
            "have_no_replies_from_agents": 41,
            "completionRatio": {
                "ratio": 82.97,
                "numerator": 151,
                "denominator": 182
            },
            "handledRate": {
                "rate": 36,
                "numerator": 72,
                "denominator": 200
            },
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 473,
            "initial": 96,
            "replies": 313,
            "forward": 54,
            "follow_up": 10,
            "received": {
                "count": 276,
                "initial": 83,
                "replies": 133,
                "forward": 50,
                "follow_up": 10,
                "initial_replies": 16,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                },
                "avg_wait": "N/A",
                "avg_wait_raw": null,
                "avg_first_wait": "N/A",
                "avg_first_wait_raw": null
            },
            "sent": {
                "count": 260,
                "initial": 16,
                "replies": 190,
                "forward": 54,
                "follow_up": 0,
                "initial_replies": 151,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "01h:42m",
            "raw": 6128.731578947369,
            "friendly_no_business": "06h:29m",
            "raw_no_business": 23373.515789473684,
            "deviation_friendly": "15m:04s",
            "deviation_raw": 903.5,
            "deviation_friendly_no_business": "14m:20s",
            "deviation_raw_no_business": 860,
            "median_friendly": "18m:33s",
            "median_raw": 1112.9921875,
            "median_friendly_no_business": "21m:59s",
            "median_raw_no_business": 1318.984375,
            "consistency_score": "18.82%",
            "consistency_score_no_business": "34.8%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": 0,
            "sla_breach": null,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 190,
            "excluded_from_sla_percentage_friendly": 100
        },
        "initialTTR": {
            "friendly": "01h:46m",
            "raw": 6392.112582781457,
            "friendly_no_business": "06h:36m",
            "raw_no_business": 23793.12582781457,
            "deviation_friendly": "15m:11s",
            "deviation_raw": 911,
            "deviation_friendly_no_business": "15m:07s",
            "deviation_raw_no_business": 907,
            "median_friendly": "18m:42s",
            "median_raw": 1121.9921875,
            "median_friendly_no_business": "22m:19s",
            "median_raw_no_business": 1338.984375,
            "consistency_score": "18.81%",
            "consistency_score_no_business": "32.26%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 151,
            "excluded_from_sla_percentage_friendly": 100
        },
        "overallTTF": {
            "friendly": "03h:51m",
            "raw": 13876.407407407407,
            "friendly_no_business": "16h:53m",
            "raw_no_business": 60802.81481481482
        },
        "overallTTC": {
            "friendly": "03h:42m",
            "raw": 13332.25,
            "friendly_no_business": "23h:30m",
            "raw_no_business": 84634.5,
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0
        },
        "dailyStats": []
    },
    "all_group_mailbox_stats": {
        "current_page": 1,
        "data": [
            {
                "threads": {
                    "total": 25,
                    "internal": 0,
                    "inbound": 25,
                    "outbound": 0,
                    "sent_internally": 4,
                    "await_customer": 7,
                    "await_agent": 13,
                    "closed": 1,
                    "have_replies": 20,
                    "have_replies_from_agents": 20,
                    "have_no_replies_from_agents": 5,
                    "completionRatio": {
                        "ratio": 80,
                        "numerator": 20,
                        "denominator": 25
                    },
                    "handledRate": {
                        "rate": 32,
                        "numerator": 8,
                        "denominator": 25
                    },
                    "labels": {
                        "total": 0,
                        "list": []
                    }
                },
                "messages": {
                    "count": 72,
                    "initial": 24,
                    "replies": 40,
                    "forward": 6,
                    "follow_up": 2,
                    "received": {
                        "count": 51,
                        "initial": 24,
                        "replies": 20,
                        "forward": 5,
                        "follow_up": 2,
                        "initial_replies": 4,
                        "dayOfWeek": {
                            "Monday": 0,
                            "Tuesday": 0,
                            "Wednesday": 0,
                            "Thursday": 0,
                            "Friday": 0,
                            "Saturday": 0,
                            "Sunday": 0
                        },
                        "hourOfDay": {
                            "00:00": 0,
                            "01:00": 0,
                            "02:00": 0,
                            "03:00": 0,
                            "04:00": 0,
                            "05:00": 0,
                            "06:00": 0,
                            "07:00": 0,
                            "08:00": 0,
                            "09:00": 0,
                            "10:00": 0,
                            "11:00": 0,
                            "12:00": 0,
                            "13:00": 0,
                            "14:00": 0,
                            "15:00": 0,
                            "16:00": 0,
                            "17:00": 0,
                            "18:00": 0,
                            "19:00": 0,
                            "20:00": 0,
                            "21:00": 0,
                            "22:00": 0,
                            "23:00": 0
                        },
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 30,
                        "initial": 0,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dayOfWeek": {
                            "Monday": 0,
                            "Tuesday": 0,
                            "Wednesday": 0,
                            "Thursday": 0,
                            "Friday": 0,
                            "Saturday": 0,
                            "Sunday": 0
                        },
                        "hourOfDay": {
                            "00:00": 0,
                            "01:00": 0,
                            "02:00": 0,
                            "03:00": 0,
                            "04:00": 0,
                            "05:00": 0,
                            "06:00": 0,
                            "07:00": 0,
                            "08:00": 0,
                            "09:00": 0,
                            "10:00": 0,
                            "11:00": 0,
                            "12:00": 0,
                            "13:00": 0,
                            "14:00": 0,
                            "15:00": 0,
                            "16:00": 0,
                            "17:00": 0,
                            "18:00": 0,
                            "19:00": 0,
                            "20:00": 0,
                            "21:00": 0,
                            "22:00": 0,
                            "23:00": 0
                        }
                    }
                },
                "overallTTR": {
                    "friendly": "01h:00m",
                    "raw": 3625.0833333333335,
                    "friendly_no_business": "02h:17m",
                    "raw_no_business": 8273.25,
                    "deviation_friendly": "17m:25s",
                    "deviation_raw": 1045,
                    "deviation_friendly_no_business": "17m:14s",
                    "deviation_raw_no_business": 1033.5,
                    "median_friendly": "16m:09s",
                    "median_raw": 969.46875,
                    "median_friendly_no_business": "21m:23s",
                    "median_raw_no_business": 1282.96875,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "19.44%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 24,
                    "excluded_from_sla_percentage_friendly": 100,
                    "goal_status": null,
                    "goal": null
                },
                "initialTTR": {
                    "friendly": "51m:04s",
                    "raw": 3063.6,
                    "friendly_no_business": "02h:21m",
                    "raw_no_business": 8494.3,
                    "deviation_friendly": "15m:37s",
                    "deviation_raw": 937,
                    "deviation_friendly_no_business": "13m:27s",
                    "deviation_raw_no_business": 807,
                    "median_friendly": "14m:54s",
                    "median_raw": 894.46875,
                    "median_friendly_no_business": "21m:23s",
                    "median_raw_no_business": 1282.96875,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "37.1%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 20,
                    "excluded_from_sla_percentage_friendly": 100,
                    "goal_status": null,
                    "goal": null
                },
                "overallTTF": {
                    "friendly": "16h:04m",
                    "raw": 57895.4,
                    "friendly_no_business": "63h:25m",
                    "raw_no_business": 228352.6
                },
                "overallTTC": {
                    "friendly": "45m:24s",
                    "raw": 2724,
                    "friendly_no_business": "45m:24s",
                    "raw_no_business": 2724,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "goal_status": null,
                    "goal": null
                },
                "dailyStats": [],
                "name": "EU Support"
            },
            {
                "threads": {
                    "total": 0,
                    "internal": 0,
                    "inbound": 0,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 0,
                    "have_replies": 0,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 0,
                    "completionRatio": {
                        "ratio": 0,
                        "numerator": 0,
                        "denominator": 0
                    },
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 0
                    },
                    "labels": {
                        "total": 0,
                        "list": []
                    }
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dayOfWeek": null,
                        "hourOfDay": null,
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dayOfWeek": null,
                        "hourOfDay": null
                    }
                },
                "overallTTR": {
                    "friendly": "N/A",
                    "raw": 0,
                    "friendly_no_business": "N/A",
                    "raw_no_business": 0,
                    "deviation_friendly": "N/A",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "N/A",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "N/A",
                    "median_raw": 0,
                    "median_friendly_no_business": "N/A",
                    "median_raw_no_business": 0,
                    "consistency_score": "N/A",
                    "consistency_score_no_business": "N/A",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0,
                    "excluded_from_sla_percentage_friendly": "N/A",
                    "goal": 7200,
                    "goal_status": "passed"
                },
                "initialTTR": {
                    "friendly": "N/A",
                    "raw": 0,
                    "friendly_no_business": "N/A",
                    "raw_no_business": 0,
                    "deviation_friendly": "N/A",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "N/A",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "N/A",
                    "median_raw": 0,
                    "median_friendly_no_business": "N/A",
                    "median_raw_no_business": 0,
                    "consistency_score": "N/A",
                    "consistency_score_no_business": "N/A",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0,
                    "excluded_from_sla_percentage_friendly": "N/A",
                    "goal": 3600,
                    "goal_status": "passed"
                },
                "overallTTF": {
                    "friendly": "N/A",
                    "raw": 0,
                    "friendly_no_business": "N/A",
                    "raw_no_business": 0
                },
                "overallTTC": {
                    "friendly": "N/A",
                    "raw": 0,
                    "friendly_no_business": "N/A",
                    "raw_no_business": 0,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "goal": 10800,
                    "goal_status": "passed"
                },
                "dailyStats": [],
                "name": "Sales Mailbox"
            }
        ],
        "first_page_url": "https://timetoreply.local/api/reports/group-mailboxes?model=Support&model_type=Group%20Mailbox&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://timetoreply.local/api/reports/group-mailboxes?model=Support&model_type=Group%20Mailbox&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/reports/group-mailboxes?model=Support&model_type=Group%20Mailbox&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://timetoreply.local/api/reports/group-mailboxes",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    }
}
 

Request   

GET api/reports/group-mailboxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name of the group mailbox you want statistics for. Use the models endpoint to get a list. Example: Support

model_type   string  optional  

Model Type of the model being queried. Can only be 'Internal' or 'Group Mailbox'. Example: Group Mailbox

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort agents by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Lead Sources

Lead Sources - Report

requires authentication

Lead Sources Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/lead-sources"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "US Sales Team",
    "model_type": "Team",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label": "INBOX",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "sort_by": "threads.total",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/lead-sources',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'US Sales Team',
            'model_type' => 'Team',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label' => 'INBOX',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'sort_by' => 'threads.total',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/lead-sources?from=2020-01-01&to=2020-01-08&model=US+Sales+Team&model_type=Team&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label=INBOX&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&sort_by=threads.total&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "stats": {
        "overallTTR": {
            "friendly": "01h:42m",
            "raw": 6128.731578947369,
            "friendly_no_business": "N/A",
            "raw_no_business": null,
            "deviation_friendly": "15m:04s",
            "deviation_raw": 903.5,
            "deviation_friendly_no_business": "14m:20s",
            "deviation_raw_no_business": 860,
            "median_friendly": "18m:33s",
            "median_raw": 1112.9921875,
            "median_friendly_no_business": "21m:59s",
            "median_raw_no_business": 1318.984375,
            "consistency_score": "18.82%",
            "consistency_score_no_business": "34.8%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": 0,
            "sla_breach": null,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 190,
            "excluded_from_sla_percentage_friendly": 100
        },
        "initialTTR": {
            "friendly": "01h:46m",
            "raw": 6392.112582781457,
            "friendly_no_business": "N/A",
            "raw_no_business": null,
            "deviation_friendly": "15m:11s",
            "deviation_raw": 911,
            "deviation_friendly_no_business": "15m:07s",
            "deviation_raw_no_business": 907,
            "median_friendly": "18m:42s",
            "median_raw": 1121.9921875,
            "median_friendly_no_business": "22m:19s",
            "median_raw_no_business": 1338.984375,
            "consistency_score": "18.81%",
            "consistency_score_no_business": "32.26%",
            "percentileRanks": [
                {
                    "key": "Within 30 minutes",
                    "value": 100,
                    "count": 4
                },
                {
                    "key": "Within 1 hour",
                    "value": 100,
                    "count": 4
                },
                {
                    "key": "Within 2 hours",
                    "value": 100,
                    "count": 4
                },
                {
                    "key": "Without Any Reply",
                    "value": 100,
                    "count": 4
                }
            ],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 151,
            "excluded_from_sla_percentage_friendly": 100
        },
        "threads": {
            "total": 200,
            "internal": 0,
            "inbound": 182,
            "outbound": 0,
            "sent_internally": 0,
            "await_customer": 64,
            "await_agent": 0,
            "closed": 8,
            "have_replies": 0,
            "have_replies_from_agents": 159,
            "have_no_replies_from_agents": 41,
            "completionRatio": {
                "ratio": 82.97,
                "numerator": 151,
                "denominator": 182
            },
            "handledRate": {
                "rate": 36,
                "numerator": 72,
                "denominator": 200
            },
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "closedWon": {
            "percentage": 38.2,
            "avg_touches": 2,
            "overallTTC": {
                "friendly": "0 minutes",
                "raw": 0
            }
        },
        "revenue": {
            "raw": 33386,
            "currency": "USD",
            "avg_touches": 53,
            "avg_nudges": 2.5,
            "potential_raw": 83309,
            "projected_raw": 46535.6
        },
        "dealStages": [
            {
                "name": "Lead",
                "closing": false,
                "percentage": 100,
                "count": 4,
                "stage_id": 1,
                "sum_deal_values": 8900
            },
            {
                "name": "Appointment scheduled",
                "closing": false,
                "percentage": 100,
                "count": 4,
                "stage_id": 2,
                "sum_deal_values": 10552
            },
            {
                "name": "Qualified to buy",
                "closing": false,
                "percentage": 75,
                "count": 3,
                "stage_id": 3,
                "sum_deal_values": 9274
            },
            {
                "name": "Presentation scheduled",
                "closing": false,
                "percentage": 75,
                "count": 3,
                "stage_id": 4,
                "sum_deal_values": 5646
            },
            {
                "name": "Decision-maker bought in",
                "closing": false,
                "percentage": 75,
                "count": 3,
                "stage_id": 5,
                "sum_deal_values": 8212
            },
            {
                "name": "Contract sent",
                "closing": false,
                "percentage": 50,
                "count": 2,
                "stage_id": 6,
                "sum_deal_values": 1671
            },
            {
                "name": "Closed won",
                "closing": true,
                "percentage": 100,
                "count": 4,
                "stage_id": 11,
                "sum_deal_values": 33386
            },
            {
                "name": "Closed lost",
                "closing": true,
                "percentage": 75,
                "count": 3,
                "stage_id": 12,
                "sum_deal_values": 5668
            }
        ],
        "leadSources": [
            {
                "name": "US Sales Box",
                "percentage": 75,
                "count": 3,
                "overallTTR": {
                    "friendly": "1 hour",
                    "raw": 5226.4358974358975
                },
                "initialTTR": {
                    "friendly": "2 hours",
                    "raw": 5703.571428571428
                }
            },
            {
                "name": "Web Enquiry Form",
                "percentage": 100,
                "count": 4,
                "overallTTR": {
                    "friendly": "1 hour",
                    "raw": 4180.811594202899
                },
                "initialTTR": {
                    "friendly": "1 hour",
                    "raw": 4469.859649122807
                }
            }
        ],
        "leads": {
            "count": 4
        },
        "deals": {
            "count": 34
        }
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "icon": "globe-americas",
            "id": null,
            "model_type": "Anybody",
            "name": "Anybody",
            "value": "Anybody"
        }
    }
}
 

Request   

GET api/reports/lead-sources

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name of the team you want statistics for. Use the models endpoint to get a list. Example: US Sales Team

model_type   string  optional  

Model Type of the model being queried. Can only be 'Internal' or 'Team'. Example: Team

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them. Example: INBOX

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort agents by. Defaults to threads.total. Example: threads.total

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Sales Rep

Sales Rep - Report

requires authentication

Sales Rep Report Data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/reports/sales-rep"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "odio",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "page_emails": "1",
    "per_page_emails": "2",
    "direction_emails": "desc",
    "sort_by_emails": "threads.total",
    "page_domains": "1",
    "per_page_domains": "2",
    "direction_domains": "desc",
    "sort_by_domains": "threads.total",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/reports/sales-rep',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'odio',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'page_emails' => '1',
            'per_page_emails' => '2',
            'direction_emails' => 'desc',
            'sort_by_emails' => 'threads.total',
            'page_domains' => '1',
            'per_page_domains' => '2',
            'direction_domains' => 'desc',
            'sort_by_domains' => 'threads.total',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/reports/sales-rep?from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=odio&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "current_page": 1,
    "data": [
        {
            "deals": {
                "total": 4,
                "avg_messages_per_deal": 5.8
            },
            "leads": {
                "total": 3
            },
            "touches": {
                "count": 74,
                "avg": 24.7,
                "median": 2,
                "avg_time_between_touch": {
                    "friendly": "6 hours",
                    "raw": 20032.84
                }
            },
            "nudges": {
                "count": 6,
                "avg": 2,
                "median": 0
            },
            "closedWon": {
                "count": 7,
                "percentage": 46.67,
                "avg_touches": 1.3,
                "overallTTC": {
                    "friendly": "0 minutes",
                    "raw": 0
                }
            },
            "revenue": {
                "raw": 17672,
                "currency": "USD"
            },
            "initialTTR": {
                "friendly": "01h:42m",
                "raw": 6130.857142857143
            },
            "name": "[email protected]"
        },
        {
            "deals": {
                "total": 0,
                "avg_messages_per_deal": 0
            },
            "leads": {
                "total": 0
            },
            "touches": {
                "count": 0,
                "avg": 0,
                "median": 0,
                "avg_time_between_touch": {
                    "friendly": "N/A",
                    "raw": 0
                }
            },
            "nudges": {
                "count": 0,
                "median": 0,
                "avg": 0
            },
            "closedWon": {
                "count": 0,
                "percentage": 0,
                "avg_touches": 0,
                "overallTTC": {
                    "friendly": "N/A",
                    "raw": 0
                }
            },
            "revenue": {
                "raw": 0,
                "currency": "USD"
            },
            "initialTTR": {
                "friendly": "N/A",
                "raw": null
            },
            "name": "[email protected]"
        }
    ],
    "first_page_url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=1",
    "from": 1,
    "last_page": 4,
    "last_page_url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=4",
    "links": [
        {
            "url": null,
            "label": "&laquo; Previous",
            "active": false
        },
        {
            "url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
            "label": "Next &raquo;",
            "active": false
        }
    ],
    "next_page_url": "https://timetoreply.local/api/reports/sales-rep?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&page_emails=1&per_page_emails=2&direction_emails=desc&sort_by_emails=threads.total&page_domains=1&per_page_domains=2&direction_domains=desc&sort_by_domains=threads.total&per_page=2&page=2",
    "path": "https://timetoreply.local/api/reports/sales-rep",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 8
}
 

Request   

GET api/reports/sales-rep

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

page_emails   integer  optional  

For paginated results, which page to get for emails. Example: 1

per_page_emails   integer  optional  

For paginated results, how many results per page for emails. Max 200. Example: 2

direction_emails   string  optional  

Direction in which to sort email results. Must be either asc or desc. Example: desc

sort_by_emails   string  optional  

Field Name to sort emails by. Defaults to threads.total. Example: threads.total

page_domains   integer  optional  

For paginated results, which page to get for domains. Example: 1

per_page_domains   integer  optional  

For paginated results, how many results per page for domains. Max 200. Example: 2

direction_domains   string  optional  

Direction in which to sort domain results. Must be either asc or desc. Example: desc

sort_by_domains   string  optional  

Field Name to sort domains by. Defaults to threads.total. Example: threads.total

Logs

Conversations

Conversations - Report

requires authentication

Conversation (Thread) Logs data

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/logs/conversations"
);

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "Top Revenue Contacts",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "consequuntur",
    "thread_type": "inbound,outbound,internal",
    "thread_status": "internal,await-customer,closed,await-agent",
    "has_replies": "hasReplies,hasForwards,hasNoRepliesOrForwards",
    "classification": "calculating,first,reply,reply-all,forward",
    "messageType": "inbound,outbound,internal",
    "replies_over": "15",
    "message_replies_over": "15",
    "no_reply_for": "15",
    "per_page": "2",
    "sort_by": "last_received_at_date_time",
    "direction": "desc",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/logs/conversations',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => 'Top Revenue Contacts',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => 'consequuntur',
            'thread_type' => 'inbound,outbound,internal',
            'thread_status' => 'internal,await-customer,closed,await-agent',
            'has_replies' => 'hasReplies,hasForwards,hasNoRepliesOrForwards',
            'classification' => 'calculating,first,reply,reply-all,forward',
            'messageType' => 'inbound,outbound,internal',
            'replies_over' => '15',
            'message_replies_over' => '15',
            'no_reply_for' => '15',
            'per_page' => '2',
            'sort_by' => 'last_received_at_date_time',
            'direction' => 'desc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/logs/conversations?from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=Top+Revenue+Contacts&model_type_com=Contact+Group&exclude_cc_com=&exclusive=&label[]=consequuntur&thread_type=inbound%2Coutbound%2Cinternal&thread_status=internal%2Cawait-customer%2Cclosed%2Cawait-agent&has_replies=hasReplies%2ChasForwards%2ChasNoRepliesOrForwards&classification=calculating%2Cfirst%2Creply%2Creply-all%2Cforward&messageType=inbound%2Coutbound%2Cinternal&replies_over=15&message_replies_over=15&no_reply_for=15&per_page=2&sort_by=last_received_at_date_time&direction=desc&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

{
    "threads": {
        "current_page": 1,
        "data": [
            {
                "id": 181,
                "init_agent_reply_time": 650,
                "init_agent_action_time": 650,
                "total_agent_reply_time": 58250,
                "last_received_at_date_time": "May 16th 2023 17:53:40",
                "thread_type": "outbound",
                "thread_status": "internal",
                "raw_init_agent_reply_time": 650,
                "init_agent_reply_message_id": "[email protected]",
                "init_reply_agent_id": null,
                "time_to_close": null,
                "raw_time_to_close": null,
                "touches": 1,
                "nudges": 0,
                "friendly_initial_reply_time": "10m:50s",
                "friendly_raw_initial_reply_time": "10m:50s",
                "friendly_total_reply_time": "16h:10m:50s",
                "microsoft_conversations": [],
                "email_usernames": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_from": [
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_reply_to": [],
                "email_usernames_senders": [
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_to": [
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_received": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_domains": [
                    "timetoreply.com",
                    "bernhard.org"
                ],
                "date_times": [
                    "2023-05-12 16:49:15",
                    "2023-05-12 17:00:05",
                    "2023-05-16 16:51:01",
                    "2023-05-16 16:53:40"
                ],
                "message_classifications": [
                    "first",
                    "reply-all",
                    "forward"
                ],
                "message_subjects": [
                    "RE: Web Enquiry Form: incentivize strategic users",
                    "FW: Web Enquiry Form: incentivize strategic users"
                ],
                "messages": [
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "May 16th 2023 17:53:40",
                        "subject": "RE: Web Enquiry Form: incentivize strategic users",
                        "references": [
                            "[email protected]",
                            "[email protected]",
                            "[email protected]",
                            "[email protected]"
                        ],
                        "replytime": 0,
                        "classification": "forward",
                        "raw_replytime": 159,
                        "friendly_reply_time": "00s",
                        "friendly_raw_reply_time": "02m:39s",
                        "email_domains": [
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "timetoreply.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_received": [
                            "timetoreply.com"
                        ],
                        "email_usernames": [
                            "[email protected]"
                        ],
                        "email_usernames_from": [
                            "[email protected]"
                        ],
                        "email_usernames_to": [
                            "[email protected]"
                        ],
                        "email_usernames_cc": [],
                        "email_usernames_reply_to": [],
                        "email_usernames_senders": [
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]"
                        ],
                        "is_initial_reply": false,
                        "is_newest_message": true,
                        "message_type": "internal",
                        "labels": [],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "timestamp": 1684256020,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_relevant": true,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A"
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "May 16th 2023 17:51:01",
                        "subject": "FW: Web Enquiry Form: incentivize strategic users",
                        "references": [
                            "[email protected]",
                            "[email protected]",
                            "[email protected]"
                        ],
                        "replytime": 57600,
                        "classification": "forward",
                        "raw_replytime": 345706,
                        "friendly_reply_time": "16h:00m:00s",
                        "friendly_raw_reply_time": "96h:01m:46s",
                        "email_domains": [
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "timetoreply.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_received": [
                            "timetoreply.com"
                        ],
                        "email_usernames": [
                            "[email protected]"
                        ],
                        "email_usernames_from": [
                            "[email protected]"
                        ],
                        "email_usernames_to": [
                            "[email protected]"
                        ],
                        "email_usernames_cc": [],
                        "email_usernames_reply_to": [],
                        "email_usernames_senders": [
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]"
                        ],
                        "is_initial_reply": false,
                        "is_newest_message": false,
                        "message_type": "internal",
                        "labels": [],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "timestamp": 1684255861,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_relevant": true,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A"
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "May 12th 2023 18:00:05",
                        "subject": "RE: Web Enquiry Form: incentivize strategic users",
                        "references": [
                            "1677469210PoPLfV[email protected]",
                            "[email protected]"
                        ],
                        "replytime": 650,
                        "classification": "reply-all",
                        "raw_replytime": 650,
                        "friendly_reply_time": "10m:50s",
                        "friendly_raw_reply_time": "10m:50s",
                        "email_domains": [
                            "bernhard.org",
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "bernhard.org"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_received": [
                            "timetoreply.com"
                        ],
                        "email_usernames": [
                            "[email protected]",
                            "[email protected]",
                            "[email protected]"
                        ],
                        "email_usernames_from": [
                            "[email protected]"
                        ],
                        "email_usernames_to": [
                            "[email protected]"
                        ],
                        "email_usernames_cc": [
                            "[email protected]"
                        ],
                        "email_usernames_reply_to": [],
                        "email_usernames_senders": [
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]",
                            "[email protected]"
                        ],
                        "is_initial_reply": true,
                        "is_newest_message": false,
                        "message_type": "inbound",
                        "labels": [],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "timestamp": 1683910805,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_relevant": false,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A"
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "May 12th 2023 17:49:15",
                        "subject": "RE: Web Enquiry Form: incentivize strategic users",
                        "references": [
                            "[email protected]"
                        ],
                        "replytime": null,
                        "classification": "first",
                        "raw_replytime": null,
                        "friendly_reply_time": "N/A",
                        "friendly_raw_reply_time": "N/A",
                        "email_domains": [
                            "timetoreply.com",
                            "bernhard.org"
                        ],
                        "email_domains_from": [
                            "timetoreply.com"
                        ],
                        "email_domains_to": [
                            "bernhard.org"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_received": [
                            "bernhard.org",
                            "timetoreply.com"
                        ],
                        "email_usernames": [
                            "[email protected]",
                            "[email protected]",
                            "[email protected]"
                        ],
                        "email_usernames_from": [
                            "[email protected]"
                        ],
                        "email_usernames_to": [
                            "[email protected]"
                        ],
                        "email_usernames_cc": [
                            "[email protected]"
                        ],
                        "email_usernames_reply_to": [],
                        "email_usernames_senders": [
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]",
                            "[email protected]"
                        ],
                        "is_initial_reply": false,
                        "is_newest_message": false,
                        "message_type": "outbound",
                        "labels": [
                            "UNREAD"
                        ],
                        "is_touch": true,
                        "is_nudge": false,
                        "touch_time": null,
                        "timestamp": 1683910155,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_relevant": true,
                        "reply_is_outlier": false,
                        "agents_read_status": [],
                        "friendly_touch_time": "N/A"
                    }
                ],
                "labels": [
                    "UNREAD"
                ],
                "has_contact_success": false,
                "contact_success_time": null,
                "contact_reply_time": null,
                "deal": {
                    "id": 39,
                    "deal_stage": 11,
                    "deal_value": 3608,
                    "owner": 5,
                    "name": "Fantastic Steel Computer"
                },
                "subject": "RE: Web Enquiry Form: incentivize strategic users",
                "initial_reply_is_relevant": false,
                "initial_reply_is_included_in_stats": true,
                "initial_reply_is_outlier": false,
                "friendly_time_to_close": "N/A",
                "friendly_raw_time_to_close": "N/A"
            },
            {
                "id": 164,
                "init_agent_reply_time": null,
                "init_agent_action_time": 1266,
                "total_agent_reply_time": 1266,
                "last_received_at_date_time": "May 16th 2023 17:51:35",
                "thread_type": "inbound",
                "thread_status": "await-agent",
                "raw_init_agent_reply_time": null,
                "init_agent_reply_message_id": null,
                "init_reply_agent_id": null,
                "time_to_close": null,
                "raw_time_to_close": null,
                "touches": 0,
                "nudges": 1,
                "friendly_initial_reply_time": "Pending",
                "friendly_raw_initial_reply_time": "Pending",
                "friendly_total_reply_time": "21m:06s",
                "microsoft_conversations": [],
                "email_usernames": [
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_from": [
                    "[email protected]"
                ],
                "email_usernames_reply_to": [],
                "email_usernames_senders": [
                    "[email protected]"
                ],
                "email_usernames_to": [
                    "[email protected]"
                ],
                "email_usernames_received": [
                    "[email protected]"
                ],
                "email_domains": [
                    "feest.com",
                    "timetoreply.com"
                ],
                "date_times": [
                    "2023-05-16 16:30:29",
                    "2023-05-16 16:51:35"
                ],
                "message_classifications": [
                    "first",
                    "follow-up"
                ],
                "message_subjects": [
                    "Web Enquiry Form: enable bleeding-edge infomediaries",
                    "FW: Web Enquiry Form: enable bleeding-edge infomediaries"
                ],
                "messages": [
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "May 16th 2023 17:51:35",
                        "subject": "FW: Web Enquiry Form: enable bleeding-edge infomediaries",
                        "references": [
                            "[email protected]"
                        ],
                        "replytime": 1266,
                        "classification": "follow-up",
                        "raw_replytime": 1266,
                        "friendly_reply_time": "21m:06s",
                        "friendly_raw_reply_time": "21m:06s",
                        "email_domains": [
                            "feest.com",
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "feest.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_received": [
                            "timetoreply.com"
                        ],
                        "email_usernames": [
                            "[email protected]",
                            "[email protected]"
                        ],
                        "email_usernames_from": [
                            "[email protected]"
                        ],
                        "email_usernames_to": [
                            "[email protected]"
                        ],
                        "email_usernames_cc": [],
                        "email_usernames_reply_to": [],
                        "email_usernames_senders": [
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]"
                        ],
                        "is_initial_reply": false,
                        "is_newest_message": true,
                        "message_type": "inbound",
                        "labels": [],
                        "is_touch": false,
                        "is_nudge": true,
                        "touch_time": null,
                        "timestamp": 1684255895,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_relevant": false,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A"
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "May 16th 2023 17:30:29",
                        "subject": "Web Enquiry Form: enable bleeding-edge infomediaries",
                        "references": null,
                        "replytime": null,
                        "classification": "first",
                        "raw_replytime": null,
                        "friendly_reply_time": "N/A",
                        "friendly_raw_reply_time": "N/A",
                        "email_domains": [
                            "feest.com",
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "feest.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_received": [
                            "timetoreply.com"
                        ],
                        "email_usernames": [
                            "[email protected]",
                            "[email protected]"
                        ],
                        "email_usernames_from": [
                            "[email protected]"
                        ],
                        "email_usernames_to": [
                            "[email protected]"
                        ],
                        "email_usernames_cc": [],
                        "email_usernames_reply_to": [],
                        "email_usernames_senders": [
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]"
                        ],
                        "is_initial_reply": false,
                        "is_newest_message": false,
                        "message_type": "inbound",
                        "labels": [
                            "UNREAD"
                        ],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "timestamp": 1684254629,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_relevant": false,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": false
                        },
                        "friendly_touch_time": "N/A"
                    }
                ],
                "labels": [
                    "UNREAD"
                ],
                "has_contact_success": false,
                "contact_success_time": null,
                "contact_reply_time": null,
                "deal": {
                    "id": 41,
                    "deal_stage": 4,
                    "deal_value": 1825,
                    "owner": 5,
                    "name": "Aerodynamic Silk Chair"
                },
                "subject": "FW: Web Enquiry Form: enable bleeding-edge infomediaries",
                "initial_reply_is_relevant": true,
                "initial_reply_is_included_in_stats": true,
                "initial_reply_is_outlier": false,
                "friendly_time_to_close": "N/A",
                "friendly_raw_time_to_close": "N/A"
            }
        ],
        "first_page_url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 100,
        "last_page_url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=100",
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=99",
                "label": "99",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=100",
                "label": "100",
                "active": false
            },
            {
                "url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "next_page_url": "https://timetoreply.local/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=Top%20Revenue%20Contacts&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
        "path": "https://timetoreply.local/api/logs/conversations",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 199
    },
    "stats": {
        "threads": {
            "total": 199,
            "internal": 3,
            "inbound": 181,
            "outbound": 15,
            "sent_internally": 0,
            "await_customer": 0,
            "await_agent": 0,
            "closed": 0,
            "have_replies": 168,
            "have_replies_from_agents": 158,
            "have_no_replies_from_agents": 41,
            "completionRatio": {
                "ratio": 82.87,
                "numerator": 150,
                "denominator": 181
            },
            "handledRate": {
                "rate": 0,
                "numerator": 0,
                "denominator": 199
            },
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 468,
            "initial": 0,
            "replies": 309,
            "forward": 0,
            "follow_up": 0,
            "received": {
                "count": 0,
                "initial": 0,
                "replies": 0,
                "forward": 0,
                "follow_up": 0,
                "initial_replies": 0,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                },
                "avg_wait": "N/A",
                "avg_wait_raw": null,
                "avg_first_wait": "N/A",
                "avg_first_wait_raw": null
            },
            "sent": {
                "count": 258,
                "initial": 0,
                "replies": 188,
                "forward": 0,
                "follow_up": 0,
                "initial_replies": 150,
                "dayOfWeek": {
                    "Monday": 0,
                    "Tuesday": 0,
                    "Wednesday": 0,
                    "Thursday": 0,
                    "Friday": 0,
                    "Saturday": 0,
                    "Sunday": 0
                },
                "hourOfDay": {
                    "00:00": 0,
                    "01:00": 0,
                    "02:00": 0,
                    "03:00": 0,
                    "04:00": 0,
                    "05:00": 0,
                    "06:00": 0,
                    "07:00": 0,
                    "08:00": 0,
                    "09:00": 0,
                    "10:00": 0,
                    "11:00": 0,
                    "12:00": 0,
                    "13:00": 0,
                    "14:00": 0,
                    "15:00": 0,
                    "16:00": 0,
                    "17:00": 0,
                    "18:00": 0,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "N/A",
            "raw": null,
            "friendly_no_business": "N/A",
            "raw_no_business": null,
            "deviation_friendly": "N/A",
            "deviation_raw": null,
            "deviation_friendly_no_business": "N/A",
            "deviation_raw_no_business": null,
            "median_friendly": "N/A",
            "median_raw": null,
            "median_friendly_no_business": "N/A",
            "median_raw_no_business": null,
            "consistency_score": "N/A",
            "consistency_score_no_business": "N/A",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": 0,
            "sla_breach": null,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 188,
            "excluded_from_sla_percentage_friendly": 100
        },
        "initialTTR": {
            "friendly": "01h:47m",
            "raw": 6432.506666666667,
            "friendly_no_business": "06h:39m",
            "raw_no_business": 23949.52666666667,
            "deviation_friendly": "15m:34s",
            "deviation_raw": 934,
            "deviation_friendly_no_business": "15m:00s",
            "deviation_raw_no_business": 900,
            "median_friendly": "18m:42s",
            "median_raw": 1121.9921875,
            "median_friendly_no_business": "22m:19s",
            "median_raw_no_business": 1338.984375,
            "consistency_score": "16.76%",
            "consistency_score_no_business": "32.78%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0,
            "excluded_from_sla": 150,
            "excluded_from_sla_percentage_friendly": 100
        },
        "overallTTF": {
            "friendly": "N/A",
            "raw": null,
            "friendly_no_business": "N/A",
            "raw_no_business": null
        },
        "overallTTC": {
            "friendly": "N/A",
            "raw": null,
            "friendly_no_business": "N/A",
            "raw_no_business": null,
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": 0,
            "sla_breach_percentage_friendly": "N/A"
        },
        "dailyStats": []
    }
}
 

Request   

GET api/logs/conversations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

from   string  optional  

The start date of your request in the format "YYYY-MM-DD". Must be less than or equal to "to". Example: 2020-01-01

to   string  optional  

The end date of your request in the format "YYYY-MM-DD". Must be greater than or equal to "from". Example: 2020-01-08

model   string  optional  

Name, email address or domain you want statistics for. Use the models endpoint to get a list. Example: My Company

model_type   string  optional  

Model Type of the model being queried. Use "Contact" for email address and domain. Example: Internal

exclude_cc   boolean  optional  

Should we exclude CC messages from the statistics. Example: false

model_com   string  optional  

Model Communicating With, same as Model, except now for who/what the Model is communicating with. Example: Top Revenue Contacts

model_type_com   string  optional  

Model Type of the model you are communicating with. Use "Contact" for email address and domain. Example: Contact Group

exclude_cc_com   boolean  optional  

Should we exclude CC messages from the statistics for the communicating with model. Example: false

exclusive   boolean  optional  

Should we only focus on statistics where exclusively Model and ModelCom were involved?. Example: false

search   string  optional  

Search a specific email subject line (warning this is very slow!).

label   string[]  optional  

Label, if your mail provider supports labels/categories, you can filter your results using them.

thread_type   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

thread_status   string  optional  

A comma separated list (no spaces) of any combination of the following: internal,await-customer,closed,await-agent. Example: internal,await-customer,closed,await-agent

has_replies   string  optional  

A comma separated list (no spaces) of any combination of the following: hasReplies,hasForwards,hasNoRepliesOrForwards. Example: hasReplies,hasForwards,hasNoRepliesOrForwards

classification   string  optional  

A comma separated list (no spaces) of any combination of the following: calculating,first,reply,reply-all,forward,follow-up. Example: calculating,first,reply,reply-all,forward

messageType   string  optional  

A comma separated list (no spaces) of any combination of the following: inbound,outbound,internal. Example: inbound,outbound,internal

replies_over   integer  optional  

Limit results to conversations with first reply times over X minutes. Should not be used at same time as message_replies_over. Example: 15

message_replies_over   integer  optional  

Limit results to messages where the reply time was over X minutes. Should not be used at same time as replies_over. Example: 15

no_reply_for   integer  optional  

Limit results to messages that have not had a reply for at least X minutes. Example: 15

per_page   integer  optional  

For paginated results, how many results per page. Max 200. Example: 2

sort_by   string  optional  

Field Name to sort conversations (threads) by. Defaults to last_received_at_date_time. Example: last_received_at_date_time

direction   string  optional  

Direction in which to sort paginated results. Must be either asc or desc. Example: desc

page   integer  optional  

For paginated results, which page to get. Example: 1

Conversations - Find by subject or email

requires authentication

Find Conversation from a subject line or email address

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/logs/conversations/get-by-subject-or-email"
);

const params = {
    "search": "Support Query",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/logs/conversations/get-by-subject-or-email',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'search' => 'Support Query',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/logs/conversations/get-by-subject-or-email?search=Support+Query" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
tracking-events: []
 

[]
 

Request   

GET api/logs/conversations/get-by-subject-or-email

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string  optional  

Search a specific email subject line or email address. Example: Support Query

Conversations - Find

requires authentication

Entire Conversation from a single Message ID

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/logs/conversations/get-by-internet-message-id"
);

const params = {
    "internet_message_id": "[email protected]",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://portal.timetoreply.com/api/logs/conversations/get-by-internet-message-id',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'internet_message_id' => '