MENU navbar-image

Introduction

This API is designed to let you do (almost) everything you can do from the timetoreply portal programmatically 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.

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": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/overview';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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',
            '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=My+Company&model_type=Internal&exclude_cc=&model_com=1&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&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": 120,
            "internal": 25,
            "inbound": 75,
            "outbound": 20,
            "sent_internally": 40,
            "await_customer": 26,
            "await_agent": 37,
            "closed": 17,
            "have_replies": 70,
            "have_replies_from_agents": 68,
            "have_no_replies_from_agents": 52,
            "completionRatio": {
                "ratio": 77.33,
                "numerator": 58,
                "denominator": 75
            },
            "handledRate": {
                "rate": 35.83,
                "numerator": 43,
                "denominator": 120
            },
            "top_labels": "",
            "messages_per_conversations_avg": 2.7,
            "messages_sent_per_conversations_avg": 1.5,
            "messages_received_per_conversations_avg": 1.2,
            "labels": {
                "total": 21,
                "list": [
                    {
                        "key": "UNREAD",
                        "doc_count": 79
                    },
                    {
                        "key": "CATEGORY_SOCIAL",
                        "doc_count": 18
                    },
                    {
                        "key": "STARRED",
                        "doc_count": 16
                    },
                    {
                        "key": "CATEGORY_UPDATES",
                        "doc_count": 14
                    },
                    {
                        "key": "CATEGORY_PROMOTIONS",
                        "doc_count": 13
                    },
                    {
                        "key": "IMPORTANT",
                        "doc_count": 13
                    },
                    {
                        "key": "SENT",
                        "doc_count": 13
                    },
                    {
                        "key": "CATEGORY_PERSONAL",
                        "doc_count": 12
                    },
                    {
                        "key": "INBOX",
                        "doc_count": 12
                    },
                    {
                        "key": "CATEGORY_FORUMS",
                        "doc_count": 10
                    },
                    {
                        "key": "Baby",
                        "doc_count": 2
                    },
                    {
                        "key": "Books",
                        "doc_count": 2
                    },
                    {
                        "key": "Baby & Jewelry",
                        "doc_count": 1
                    },
                    {
                        "key": "Books, Home & Games",
                        "doc_count": 1
                    },
                    {
                        "key": "Computers",
                        "doc_count": 1
                    },
                    {
                        "key": "Grocery, Automotive & Sports",
                        "doc_count": 1
                    },
                    {
                        "key": "Home, Clothing & Grocery",
                        "doc_count": 1
                    },
                    {
                        "key": "Jewelry",
                        "doc_count": 1
                    },
                    {
                        "key": "Music, Automotive & Industrial",
                        "doc_count": 1
                    },
                    {
                        "key": "Toys, Grocery & Jewelry",
                        "doc_count": 1
                    }
                ]
            }
        },
        "messages": {
            "count": 217,
            "initial": 57,
            "replies": 113,
            "forward": 43,
            "follow_up": 4,
            "received": {
                "count": 143,
                "initial": 40,
                "replies": 70,
                "forward": 29,
                "follow_up": 4,
                "initial_replies": 30,
                "dayOfWeek": {
                    "Monday": 23,
                    "Tuesday": 24,
                    "Wednesday": 20,
                    "Thursday": 36,
                    "Friday": 20,
                    "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.5,
                    "10:00": 1.25,
                    "11:00": 1.38,
                    "12:00": 1.75,
                    "13:00": 4,
                    "14:00": 2,
                    "15:00": 2.13,
                    "16:00": 1.88,
                    "17:00": 2.25,
                    "18:00": 0.5,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0.13,
                    "23:00": 0.13
                },
                "avg_wait": "61h:38m",
                "avg_wait_raw": 221931,
                "avg_first_wait": "48h:58m",
                "avg_first_wait_raw": 176336
            },
            "sent": {
                "count": 175,
                "initial": 41,
                "replies": 90,
                "forward": 43,
                "follow_up": 1,
                "initial_replies": 58,
                "dayOfWeek": {
                    "Monday": 29,
                    "Tuesday": 27,
                    "Wednesday": 26,
                    "Thursday": 43,
                    "Friday": 24,
                    "Saturday": 0,
                    "Sunday": 2
                },
                "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.13,
                    "09:00": 0.63,
                    "10:00": 1,
                    "11:00": 1.38,
                    "12:00": 2.13,
                    "13:00": 4.38,
                    "14:00": 3.38,
                    "15:00": 2.63,
                    "16:00": 2,
                    "17:00": 3.5,
                    "18:00": 0.63,
                    "19:00": 0,
                    "20:00": 0,
                    "21:00": 0,
                    "22:00": 0.13,
                    "23:00": 0
                }
            }
        },
        "overallTTR": {
            "friendly": "3h:3m",
            "raw": 11019,
            "friendly_no_business": "10h:47m",
            "raw_no_business": 38864,
            "deviation_friendly": "16m:56s",
            "deviation_raw": 1016,
            "deviation_friendly_no_business": "14m:38s",
            "deviation_raw_no_business": 878,
            "median_friendly": "24m:3s",
            "median_raw": 1443,
            "median_friendly_no_business": "24m:39s",
            "median_raw_no_business": 1479,
            "consistency_score": "29.59%",
            "consistency_score_no_business": "40.63%",
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 83.15
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 86.52
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 89.89
                },
                {
                    "count": 0,
                    "key": "16h:0m",
                    "value": 91.01
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 80.9
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 84.27
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 86.52
                },
                {
                    "count": 0,
                    "key": "16h:0m",
                    "value": 86.52
                }
            ],
            "within_sla": 77,
            "within_sla_percentage_friendly": 86.52,
            "sla_breach": 12,
            "sla_breach_percentage_friendly": 13.48,
            "excluded_from_sla": 1
        },
        "initialTTR": {
            "friendly": "2h:26m",
            "raw": 8788,
            "friendly_no_business": "7h:37m",
            "raw_no_business": 27444,
            "deviation_friendly": "14m:58s",
            "deviation_raw": 898,
            "deviation_friendly_no_business": "14m:7s",
            "deviation_raw_no_business": 847,
            "median_friendly": "23m:7s",
            "median_raw": 1387,
            "median_friendly_no_business": "23m:34s",
            "median_raw_no_business": 1414,
            "consistency_score": "35.25%",
            "consistency_score_no_business": "40.13%",
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 81.48
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 88.89
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 90.74
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 92.59
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 79.63
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 87.04
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 88.89
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 92.59
                }
            ],
            "within_sla": 48,
            "within_sla_percentage_friendly": 88.89,
            "sla_breach": 6,
            "sla_breach_percentage_friendly": 11.11,
            "excluded_from_sla": 4
        },
        "overallTTF": {
            "friendly": "2h:5m",
            "raw": 7535,
            "friendly_no_business": "5h:41m",
            "raw_no_business": 20498
        },
        "overallTTC": {
            "friendly": "5h:25m",
            "raw": 19538,
            "friendly_no_business": "21h:30m",
            "raw_no_business": 77415,
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "12h:0m",
                    "value": 82.35
                },
                {
                    "count": 0,
                    "key": "24h:0m",
                    "value": 94.12
                },
                {
                    "count": 0,
                    "key": "48h:0m",
                    "value": 100
                },
                {
                    "count": 0,
                    "key": "96h:0m",
                    "value": 100
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "12h:0m",
                    "value": 70.59
                },
                {
                    "count": 0,
                    "key": "24h:0m",
                    "value": 76.47
                },
                {
                    "count": 0,
                    "key": "48h:0m",
                    "value": 82.35
                },
                {
                    "count": 0,
                    "key": "96h:0m",
                    "value": 94.12
                }
            ],
            "within_sla": 16,
            "within_sla_percentage_friendly": 94.12,
            "sla_breach": 1,
            "sla_breach_percentage_friendly": 5.88
        },
        "dailyStats": [
            {
                "timestamp": 1727391600000,
                "date": "Fri, 27th Sep",
                "messages": {
                    "sent": 27,
                    "forward": 7,
                    "reply": 13,
                    "received": 21
                },
                "overallTTR": {
                    "raw": 8677.615384615385,
                    "raw_no_business": 21898.615384615383
                },
                "overallTTF": {
                    "raw": 6279.285714285715,
                    "raw_no_business": 6417.142857142857
                },
                "initialTTR": {
                    "raw": 15681,
                    "raw_no_business": 15681
                },
                "threads": {
                    "total": 13,
                    "have_replies_from_agents": 7,
                    "have_no_replies_from_agents": 6,
                    "completionRatio": 53.85
                }
            },
            {
                "timestamp": 1727478000000,
                "date": "Sat, 28th Sep",
                "messages": {
                    "sent": 0,
                    "forward": 0,
                    "reply": 0,
                    "received": 0
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "threads": {
                    "total": 0,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 0,
                    "completionRatio": 0
                }
            },
            {
                "timestamp": 1727564400000,
                "date": "Sun, 29th Sep",
                "messages": {
                    "sent": 2,
                    "forward": 0,
                    "reply": 0,
                    "received": 0
                },
                "overallTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "overallTTF": {
                    "raw": null,
                    "raw_no_business": null
                },
                "initialTTR": {
                    "raw": null,
                    "raw_no_business": null
                },
                "threads": {
                    "total": 0,
                    "have_replies_from_agents": 0,
                    "have_no_replies_from_agents": 0,
                    "completionRatio": 0
                }
            },
            {
                "timestamp": 1727650800000,
                "date": "Mon, 30th Sep",
                "messages": {
                    "sent": 29,
                    "forward": 6,
                    "reply": 15,
                    "received": 23
                },
                "overallTTR": {
                    "raw": 1783.5333333333333,
                    "raw_no_business": 1839.6666666666667
                },
                "overallTTF": {
                    "raw": 15638.75,
                    "raw_no_business": 84416
                },
                "initialTTR": {
                    "raw": 1725.4545454545455,
                    "raw_no_business": 1734.5454545454545
                },
                "threads": {
                    "total": 10,
                    "have_replies_from_agents": 4,
                    "have_no_replies_from_agents": 6,
                    "completionRatio": 40
                }
            },
            {
                "timestamp": 1727737200000,
                "date": "Tue, 1st Oct",
                "messages": {
                    "sent": 27,
                    "forward": 8,
                    "reply": 13,
                    "received": 24
                },
                "overallTTR": {
                    "raw": 8838,
                    "raw_no_business": 35461.38461538462
                },
                "overallTTF": {
                    "raw": 6328.166666666667,
                    "raw_no_business": 6769
                },
                "initialTTR": {
                    "raw": 2241.375,
                    "raw_no_business": 2241.375
                },
                "threads": {
                    "total": 16,
                    "have_replies_from_agents": 3,
                    "have_no_replies_from_agents": 13,
                    "completionRatio": 18.75
                }
            },
            {
                "timestamp": 1727823600000,
                "date": "Wed, 2nd Oct",
                "messages": {
                    "sent": 26,
                    "forward": 1,
                    "reply": 19,
                    "received": 20
                },
                "overallTTR": {
                    "raw": 11859.947368421053,
                    "raw_no_business": 42920.05263157895
                },
                "overallTTF": {
                    "raw": 1769,
                    "raw_no_business": 1769
                },
                "initialTTR": {
                    "raw": 2352.6666666666665,
                    "raw_no_business": 3792.75
                },
                "threads": {
                    "total": 14,
                    "have_replies_from_agents": 10,
                    "have_no_replies_from_agents": 4,
                    "completionRatio": 71.43
                }
            },
            {
                "timestamp": 1727910000000,
                "date": "Thu, 3rd Oct",
                "messages": {
                    "sent": 43,
                    "forward": 16,
                    "reply": 19,
                    "received": 36
                },
                "overallTTR": {
                    "raw": 21481.61111111111,
                    "raw_no_business": 86144.16666666667
                },
                "overallTTF": {
                    "raw": 7207.615384615385,
                    "raw_no_business": 20669.23076923077
                },
                "initialTTR": {
                    "raw": 27574.636363636364,
                    "raw_no_business": 117578.63636363637
                },
                "threads": {
                    "total": 23,
                    "have_replies_from_agents": 8,
                    "have_no_replies_from_agents": 15,
                    "completionRatio": 34.78
                }
            },
            {
                "timestamp": 1727996400000,
                "date": "Fri, 4th Oct",
                "messages": {
                    "sent": 21,
                    "forward": 5,
                    "reply": 11,
                    "received": 19
                },
                "overallTTR": {
                    "raw": 10387.545454545454,
                    "raw_no_business": 29052.909090909092
                },
                "overallTTF": {
                    "raw": 5944.5,
                    "raw_no_business": 5944.5
                },
                "initialTTR": {
                    "raw": 1996.3333333333333,
                    "raw_no_business": 1996.3333333333333
                },
                "threads": {
                    "total": 12,
                    "have_replies_from_agents": 4,
                    "have_no_replies_from_agents": 8,
                    "completionRatio": 33.33
                }
            }
        ],
        "type": "stats"
    },
    "all_agent_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 28,
                    "await_customer": 14,
                    "await_agent": 16,
                    "closed": 11,
                    "have_replies": 35,
                    "have_initial_replies": 29,
                    "handledRate": {
                        "rate": 36.23,
                        "numerator": 25,
                        "denominator": 69
                    },
                    "top_labels": [
                        "UNREAD",
                        "CATEGORY_PERSONAL",
                        "CATEGORY_PROMOTIONS",
                        "CATEGORY_SOCIAL",
                        "STARRED"
                    ],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "40h:8m",
                        "avg_wait_raw": 144535,
                        "avg_first_wait": "22h:49m",
                        "avg_first_wait_raw": 82156
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 76.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 83.33
                        }
                    ],
                    "within_sla": 25,
                    "within_sla_percentage_friendly": 83.33,
                    "sla_breach": 5,
                    "sla_breach_percentage_friendly": 16.67,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "within_sla": 12,
                    "within_sla_percentage_friendly": 80,
                    "sla_breach": 3,
                    "sla_breach_percentage_friendly": 20,
                    "excluded_from_sla": 2
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 72.73
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 90.91
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 72.73
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 81.82
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 90.91
                        }
                    ],
                    "within_sla": 10,
                    "within_sla_percentage_friendly": 90.91,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 9.09
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 25,
                    "await_customer": 7,
                    "await_agent": 10,
                    "closed": 9,
                    "have_replies": 30,
                    "have_initial_replies": 26,
                    "handledRate": {
                        "rate": 31.37,
                        "numerator": 16,
                        "denominator": 51
                    },
                    "top_labels": [
                        "UNREAD",
                        "IMPORTANT",
                        "CATEGORY_SOCIAL",
                        "STARRED",
                        "CATEGORY_UPDATES"
                    ],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "56h:7m",
                        "avg_wait_raw": 202026,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 86.67
                        }
                    ],
                    "within_sla": 26,
                    "within_sla_percentage_friendly": 86.67,
                    "sla_breach": 4,
                    "sla_breach_percentage_friendly": 13.33,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 19,
                    "within_sla_percentage_friendly": 95,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 5,
                    "excluded_from_sla": 1
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 77.78
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 77.78
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 9,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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": 3,
        "last_page_url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 5
    },
    "all_domain_stats": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview",
        "per_page": 2,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "all_customer_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 28,
                    "await_customer": 14,
                    "await_agent": 16,
                    "closed": 11,
                    "have_replies": 35,
                    "have_initial_replies": 29,
                    "handledRate": {
                        "rate": 36.23,
                        "numerator": 25,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.2,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 0.5
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 47,
                        "initial": 15,
                        "replies": 16,
                        "forward": 15,
                        "follow_up": 1,
                        "initial_replies": 8,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 33,
                        "initial": 8,
                        "replies": 18,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 11,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:11m",
                    "raw": 11497,
                    "friendly_no_business": "9h:44m",
                    "raw_no_business": 35058,
                    "deviation_friendly": "12m:31s",
                    "deviation_raw": 751,
                    "deviation_friendly_no_business": "12m:31s",
                    "deviation_raw_no_business": 751,
                    "median_friendly": "26m:33s",
                    "median_raw": 1593,
                    "median_friendly_no_business": "26m:33s",
                    "median_raw_no_business": 1593,
                    "consistency_score": "52.85%",
                    "consistency_score_no_business": "52.85%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 88.24
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 76.47
                        }
                    ],
                    "within_sla": 14,
                    "within_sla_percentage_friendly": 82.35,
                    "sla_breach": 3,
                    "sla_breach_percentage_friendly": 17.65,
                    "excluded_from_sla": 1
                },
                "initialTTR": {
                    "friendly": "29m:44s",
                    "raw": 1784,
                    "friendly_no_business": "29m:44s",
                    "raw_no_business": 1784,
                    "deviation_friendly": "5m:57s",
                    "deviation_raw": 357,
                    "deviation_friendly_no_business": "5m:57s",
                    "deviation_raw_no_business": 357,
                    "median_friendly": "24m:52s",
                    "median_raw": 1492,
                    "median_friendly_no_business": "24m:52s",
                    "median_raw_no_business": 1492,
                    "consistency_score": "76.1%",
                    "consistency_score_no_business": "76.1%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 10,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 1
                },
                "overallTTF": {
                    "friendly": "24m:37s",
                    "raw": 1477,
                    "friendly_no_business": "31m:10s",
                    "raw_no_business": 1870
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 72.73
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 90.91
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 72.73
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 81.82
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 90.91
                        }
                    ],
                    "within_sla": 10,
                    "within_sla_percentage_friendly": 90.91,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 9.09
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 25,
                    "await_customer": 7,
                    "await_agent": 10,
                    "closed": 9,
                    "have_replies": 30,
                    "have_initial_replies": 26,
                    "handledRate": {
                        "rate": 31.37,
                        "numerator": 16,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.5,
                    "messages_received_per_conversations_avg": 0.6,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 31,
                        "initial": 3,
                        "replies": 17,
                        "forward": 11,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 44,
                        "initial": 16,
                        "replies": 12,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 4,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "4h:8m",
                    "raw": 14937,
                    "friendly_no_business": "14h:53m",
                    "raw_no_business": 53602,
                    "deviation_friendly": "11m:47s",
                    "deviation_raw": 707,
                    "deviation_friendly_no_business": "11m:47s",
                    "deviation_raw_no_business": 707,
                    "median_friendly": "26m:41s",
                    "median_raw": 1601,
                    "median_friendly_no_business": "26m:41s",
                    "median_raw_no_business": 1601,
                    "consistency_score": "55.86%",
                    "consistency_score_no_business": "55.86%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 75
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 83.33
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 75
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 83.33
                        }
                    ],
                    "within_sla": 10,
                    "within_sla_percentage_friendly": 83.33,
                    "sla_breach": 2,
                    "sla_breach_percentage_friendly": 16.67,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "21m:38s",
                    "raw": 1298,
                    "friendly_no_business": "21m:38s",
                    "raw_no_business": 1298,
                    "deviation_friendly": "5m:57s",
                    "deviation_raw": 357,
                    "deviation_friendly_no_business": "5m:57s",
                    "deviation_raw_no_business": 357,
                    "median_friendly": "15m:41s",
                    "median_raw": 941,
                    "median_friendly_no_business": "15m:41s",
                    "median_raw_no_business": 941,
                    "consistency_score": "62.11%",
                    "consistency_score_no_business": "62.11%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 2
                },
                "overallTTF": {
                    "friendly": "2h:21m",
                    "raw": 8477,
                    "friendly_no_business": "4h:24m",
                    "raw_no_business": 15844
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 77.78
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "12h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "24h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "48h:0m",
                            "value": 77.78
                        },
                        {
                            "count": 0,
                            "key": "96h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 9,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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": 173,
        "last_page_url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=173",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=172",
                "label": "172",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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=173",
                "label": "173",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/overview",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 345
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        }
    },
    "mailbox_names": {
        "data": {
            "[email protected]": "Nicolette Reinger",
            "[email protected]": "Mac Stoltenberg"
        },
        "enabled": false
    },
    "show_comparisons_in_leaderboard": true,
    "company_goals": {
        "first_reply_time_goal": 7200,
        "first_reply_time_goal_bands": [],
        "overall_reply_time_goal": 14400,
        "overall_reply_time_goal_bands": [],
        "time_to_close_goal": 86400,
        "time_to_close_goal_bands": []
    }
}
 

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  

The ID, 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: 1

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": "1",
    "model_type_com": "Contact Group",
    "label[0]": "INBOX",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/productivity';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'label[0]' => 'INBOX',
            '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=1&model_type_com=Contact+Group&label[]=INBOX&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": 5,
        "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": 5,
        "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": 5,
        "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": 5,
        "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_7200",
                "label": "Replies under 2h:0m",
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 2h:0m (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_under_14400",
                "label": "Replies under 4h:0m",
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 4h:0m (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_under_28800",
                "label": "Replies under 8h:0m",
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 8h:0m (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            },
            {
                "field": "replies_under_57600",
                "label": "Replies under 16h:0m",
                "sortable": true,
                "visible": true,
                "subheading": "N/A",
                "meta": {
                    "tooltip": "Percentage of replies that happened in under 16h:0m (takes business hours into account)",
                    "subheadingPercentage": 0
                },
                "headerClass": "has-tooltip"
            }
        ],
        "data": [
            {
                "name": "[email protected]",
                "replies_count": 0,
                "replies_under_7200": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_14400": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_28800": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_57600": {
                    "display": 0,
                    "percentage": 0
                }
            },
            {
                "name": "[email protected]",
                "replies_count": 0,
                "replies_under_7200": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_14400": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_28800": {
                    "display": 0,
                    "percentage": 0
                },
                "replies_under_57600": {
                    "display": 0,
                    "percentage": 0
                }
            }
        ],
        "default_sort": [
            "replies_under_14400",
            "desc"
        ],
        "default_sort_direction": "desc",
        "loading": false,
        "per_page": 2,
        "total": 5,
        "page": 1
    },
    "stats": {
        "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": null,
                "denominator": null
            },
            "handledRate": {
                "rate": 0,
                "numerator": null,
                "denominator": null
            },
            "top_labels": "",
            "messages_per_conversations_avg": 0,
            "messages_sent_per_conversations_avg": 0,
            "messages_received_per_conversations_avg": 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": {
                    "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": 0,
                "avg_first_wait": "N/A",
                "avg_first_wait_raw": 0
            },
            "sent": {
                "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
                }
            }
        },
        "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": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 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": null,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": null
        },
        "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": null,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A"
        },
        "dailyStats": [],
        "type": "stats"
    },
    "page": 1,
    "total": 5,
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        }
    }
}
 

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  

The ID, 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: 1

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

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": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/comparative';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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',
            '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=1&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&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 2h:0m",
                "data": [
                    86.67,
                    82.76
                ],
                "index": 3,
                "legendIndex": 0,
                "stringKey": "2h:0m"
            },
            {
                "name": "Replies in under 4h:0m",
                "data": [
                    0,
                    6.9
                ],
                "index": 2,
                "legendIndex": 1,
                "stringKey": "4h:0m"
            },
            {
                "name": "Replies in under 8h:0m",
                "data": [
                    3.33,
                    0
                ],
                "index": 1,
                "legendIndex": 2,
                "stringKey": "8h:0m"
            },
            {
                "name": "Replies in under 16h:0m",
                "data": [
                    3.33,
                    0
                ],
                "index": 0,
                "legendIndex": 3,
                "stringKey": "16h:0m"
            }
        ]
    },
    "agentStats": {
        "initialTTR.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 4,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 8.7,
                        "numerator": 4,
                        "denominator": 46
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 51,
                        "initial": 18,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 3,
                        "initial_replies": 10,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 40,
                        "initial": 6,
                        "replies": 30,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:18m",
                    "raw": 11898,
                    "friendly_no_business": "10h:22m",
                    "raw_no_business": 37348,
                    "deviation_friendly": "18m:45s",
                    "deviation_raw": 1125,
                    "deviation_friendly_no_business": "15m:14s",
                    "deviation_raw_no_business": 914,
                    "median_friendly": "26m:38s",
                    "median_raw": 1598,
                    "median_friendly_no_business": "26m:38s",
                    "median_raw_no_business": 1598,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "42.8%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 89.66
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "2h:12m",
                    "raw": 7949,
                    "friendly_no_business": "7h:27m",
                    "raw_no_business": 26854,
                    "deviation_friendly": "13m:31s",
                    "deviation_raw": 811,
                    "deviation_friendly_no_business": "13m:31s",
                    "deviation_raw_no_business": 811,
                    "median_friendly": "24m:55s",
                    "median_raw": 1495,
                    "median_friendly_no_business": "24m:55s",
                    "median_raw_no_business": 1495,
                    "consistency_score": "45.74%",
                    "consistency_score_no_business": "45.75%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 20
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5225,
                    "friendly_no_business": "1h:38m",
                    "raw_no_business": 5891
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "messages.received.count": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 4,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 8.7,
                        "numerator": 4,
                        "denominator": 46
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 51,
                        "initial": 18,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 3,
                        "initial_replies": 10,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 40,
                        "initial": 6,
                        "replies": 30,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:18m",
                    "raw": 11898,
                    "friendly_no_business": "10h:22m",
                    "raw_no_business": 37348,
                    "deviation_friendly": "18m:45s",
                    "deviation_raw": 1125,
                    "deviation_friendly_no_business": "15m:14s",
                    "deviation_raw_no_business": 914,
                    "median_friendly": "26m:38s",
                    "median_raw": 1598,
                    "median_friendly_no_business": "26m:38s",
                    "median_raw_no_business": 1598,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "42.8%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 89.66
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "2h:12m",
                    "raw": 7949,
                    "friendly_no_business": "7h:27m",
                    "raw_no_business": 26854,
                    "deviation_friendly": "13m:31s",
                    "deviation_raw": 811,
                    "deviation_friendly_no_business": "13m:31s",
                    "deviation_raw_no_business": 811,
                    "median_friendly": "24m:55s",
                    "median_raw": 1495,
                    "median_friendly_no_business": "24m:55s",
                    "median_raw_no_business": 1495,
                    "consistency_score": "45.74%",
                    "consistency_score_no_business": "45.75%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 20
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5225,
                    "friendly_no_business": "1h:38m",
                    "raw_no_business": 5891
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "messages.sent.replies": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 4,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 8.7,
                        "numerator": 4,
                        "denominator": 46
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 51,
                        "initial": 18,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 3,
                        "initial_replies": 10,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 40,
                        "initial": 6,
                        "replies": 30,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:18m",
                    "raw": 11898,
                    "friendly_no_business": "10h:22m",
                    "raw_no_business": 37348,
                    "deviation_friendly": "18m:45s",
                    "deviation_raw": 1125,
                    "deviation_friendly_no_business": "15m:14s",
                    "deviation_raw_no_business": 914,
                    "median_friendly": "26m:38s",
                    "median_raw": 1598,
                    "median_friendly_no_business": "26m:38s",
                    "median_raw_no_business": 1598,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "42.8%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 89.66
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "2h:12m",
                    "raw": 7949,
                    "friendly_no_business": "7h:27m",
                    "raw_no_business": 26854,
                    "deviation_friendly": "13m:31s",
                    "deviation_raw": 811,
                    "deviation_friendly_no_business": "13m:31s",
                    "deviation_raw_no_business": 811,
                    "median_friendly": "24m:55s",
                    "median_raw": 1495,
                    "median_friendly_no_business": "24m:55s",
                    "median_raw_no_business": 1495,
                    "consistency_score": "45.74%",
                    "consistency_score_no_business": "45.75%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 20
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5225,
                    "friendly_no_business": "1h:38m",
                    "raw_no_business": 5891
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "messages.sent.count": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 11,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 15.94,
                        "numerator": 11,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 17
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "messages.sent.forward": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 11,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 15.94,
                        "numerator": 11,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 17
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "overallTTC.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 11,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 15.94,
                        "numerator": 11,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 17
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "overallTTF.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 4,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 8.7,
                        "numerator": 4,
                        "denominator": 46
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 51,
                        "initial": 18,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 3,
                        "initial_replies": 10,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 40,
                        "initial": 6,
                        "replies": 30,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:18m",
                    "raw": 11898,
                    "friendly_no_business": "10h:22m",
                    "raw_no_business": 37348,
                    "deviation_friendly": "18m:45s",
                    "deviation_raw": 1125,
                    "deviation_friendly_no_business": "15m:14s",
                    "deviation_raw_no_business": 914,
                    "median_friendly": "26m:38s",
                    "median_raw": 1598,
                    "median_friendly_no_business": "26m:38s",
                    "median_raw_no_business": 1598,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "42.8%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 89.66
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "2h:12m",
                    "raw": 7949,
                    "friendly_no_business": "7h:27m",
                    "raw_no_business": 26854,
                    "deviation_friendly": "13m:31s",
                    "deviation_raw": 811,
                    "deviation_friendly_no_business": "13m:31s",
                    "deviation_raw_no_business": 811,
                    "median_friendly": "24m:55s",
                    "median_raw": 1495,
                    "median_friendly_no_business": "24m:55s",
                    "median_raw_no_business": 1495,
                    "consistency_score": "45.74%",
                    "consistency_score_no_business": "45.75%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 20
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5225,
                    "friendly_no_business": "1h:38m",
                    "raw_no_business": 5891
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 11,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 15.94,
                        "numerator": 11,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 17
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "overallTTR.raw": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 4,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 8.7,
                        "numerator": 4,
                        "denominator": 46
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 51,
                        "initial": 18,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 3,
                        "initial_replies": 10,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 40,
                        "initial": 6,
                        "replies": 30,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:18m",
                    "raw": 11898,
                    "friendly_no_business": "10h:22m",
                    "raw_no_business": 37348,
                    "deviation_friendly": "18m:45s",
                    "deviation_raw": 1125,
                    "deviation_friendly_no_business": "15m:14s",
                    "deviation_raw_no_business": 914,
                    "median_friendly": "26m:38s",
                    "median_raw": 1598,
                    "median_friendly_no_business": "26m:38s",
                    "median_raw_no_business": 1598,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "42.8%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 89.66
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "2h:12m",
                    "raw": 7949,
                    "friendly_no_business": "7h:27m",
                    "raw_no_business": 26854,
                    "deviation_friendly": "13m:31s",
                    "deviation_raw": 811,
                    "deviation_friendly_no_business": "13m:31s",
                    "deviation_raw_no_business": 811,
                    "median_friendly": "24m:55s",
                    "median_raw": 1495,
                    "median_friendly_no_business": "24m:55s",
                    "median_raw_no_business": 1495,
                    "consistency_score": "45.74%",
                    "consistency_score_no_business": "45.75%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 20
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5225,
                    "friendly_no_business": "1h:38m",
                    "raw_no_business": 5891
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ],
        "threads.total": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 11,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 15.94,
                        "numerator": 11,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 17
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 17.65,
                        "numerator": 9,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "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
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "16h:0m",
                            "value": 93.33
                        }
                    ],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 30
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 21
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                }
            }
        ]
    },
    "pagination": {
        "total": 5,
        "page": 1
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        }
    }
}
 

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  

The ID, 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: 1

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": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/interactions';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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',
            '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=1&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&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": 22,
                "email": "[email protected]",
                "from": 12,
                "cc": 3
            },
            "[email protected]": {
                "to": 21,
                "email": "[email protected]",
                "from": 13,
                "cc": 2
            },
            "[email protected]": {
                "to": 8,
                "email": "[email protected]",
                "from": 8,
                "cc": 0
            },
            "[email protected]": {
                "to": 6,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 3,
                "email": "[email protected]",
                "from": 1,
                "cc": 0
            },
            "[email protected]": {
                "to": 3,
                "email": "[email protected]",
                "from": 0,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 1,
                "cc": 0
            },
            "[email protected]": {
                "to": 2,
                "email": "[email protected]",
                "from": 1,
                "cc": 0
            },
            "[email protected]": {
                "to": 0,
                "email": "[email protected]",
                "from": 0,
                "cc": 3
            },
            "[email protected]": {
                "to": 0,
                "email": "[email protected]",
                "from": 1,
                "cc": 2
            },
            "[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": 1,
                "email": "[email protected]",
                "from": 1,
                "cc": 0
            },
            "[email protected]": {
                "to": 1,
                "email": "[email protected]",
                "from": 0,
                "cc": 1
            },
            "[email protected]": {
                "to": 0,
                "email": "[email protected]",
                "from": 0,
                "cc": 2
            },
            "[email protected]": {
                "to": 0,
                "email": "[email protected]",
                "from": 0,
                "cc": 2
            },
            "[email protected]": {
                "to": 0,
                "email": "[email protected]",
                "from": 1,
                "cc": 1
            },
            "[email protected]": {
                "to": 1,
                "email": "[email protected]",
                "from": 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  

The ID or Name 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: 1

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": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/sla';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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',
            '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=My+Company&model_type=Internal&exclude_cc=&model_com=1&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&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": 120,
            "internal": 25,
            "inbound": 75,
            "outbound": 20,
            "sent_internally": 40,
            "await_customer": 26,
            "await_agent": 37,
            "closed": 17,
            "have_replies": 70,
            "have_replies_from_agents": 68,
            "have_no_replies_from_agents": 52,
            "completionRatio": {
                "ratio": 77.33,
                "numerator": 58,
                "denominator": 75
            },
            "handledRate": {
                "rate": 35.83,
                "numerator": 43,
                "denominator": 120
            },
            "top_labels": "",
            "messages_per_conversations_avg": 2.7,
            "messages_sent_per_conversations_avg": 1.5,
            "messages_received_per_conversations_avg": 1.2,
            "labels": {
                "total": 21,
                "list": [
                    {
                        "key": "UNREAD",
                        "doc_count": 79
                    },
                    {
                        "key": "CATEGORY_SOCIAL",
                        "doc_count": 18
                    },
                    {
                        "key": "STARRED",
                        "doc_count": 16
                    },
                    {
                        "key": "CATEGORY_UPDATES",
                        "doc_count": 14
                    },
                    {
                        "key": "CATEGORY_PROMOTIONS",
                        "doc_count": 13
                    },
                    {
                        "key": "IMPORTANT",
                        "doc_count": 13
                    },
                    {
                        "key": "SENT",
                        "doc_count": 13
                    },
                    {
                        "key": "CATEGORY_PERSONAL",
                        "doc_count": 12
                    },
                    {
                        "key": "INBOX",
                        "doc_count": 12
                    },
                    {
                        "key": "CATEGORY_FORUMS",
                        "doc_count": 10
                    },
                    {
                        "key": "Baby",
                        "doc_count": 2
                    },
                    {
                        "key": "Books",
                        "doc_count": 2
                    },
                    {
                        "key": "Baby & Jewelry",
                        "doc_count": 1
                    },
                    {
                        "key": "Books, Home & Games",
                        "doc_count": 1
                    },
                    {
                        "key": "Computers",
                        "doc_count": 1
                    },
                    {
                        "key": "Grocery, Automotive & Sports",
                        "doc_count": 1
                    },
                    {
                        "key": "Home, Clothing & Grocery",
                        "doc_count": 1
                    },
                    {
                        "key": "Jewelry",
                        "doc_count": 1
                    },
                    {
                        "key": "Music, Automotive & Industrial",
                        "doc_count": 1
                    },
                    {
                        "key": "Toys, Grocery & Jewelry",
                        "doc_count": 1
                    }
                ]
            }
        },
        "messages": {
            "count": 217,
            "initial": 57,
            "replies": 113,
            "forward": 43,
            "follow_up": 4,
            "received": {
                "count": 143,
                "initial": 40,
                "replies": 70,
                "forward": 29,
                "follow_up": 4,
                "initial_replies": 30,
                "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": "61h:38m",
                "avg_wait_raw": 221932,
                "avg_first_wait": "48h:58m",
                "avg_first_wait_raw": 176336
            },
            "sent": {
                "count": 175,
                "initial": 41,
                "replies": 90,
                "forward": 43,
                "follow_up": 1,
                "initial_replies": 58,
                "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": "3h:3m",
            "raw": 11019,
            "friendly_no_business": "10h:47m",
            "raw_no_business": 38864,
            "deviation_friendly": "16m:56s",
            "deviation_raw": 1016,
            "deviation_friendly_no_business": "14m:38s",
            "deviation_raw_no_business": 878,
            "median_friendly": "24m:3s",
            "median_raw": 1443,
            "median_friendly_no_business": "24m:39s",
            "median_raw_no_business": 1479,
            "consistency_score": "29.59%",
            "consistency_score_no_business": "40.63%",
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 76.4
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 83.15
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 86.52
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 89.89
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 75.28
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 80.9
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 84.27
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 86.52
                }
            ],
            "within_sla": 74,
            "within_sla_percentage_friendly": 83.15,
            "sla_breach": 15,
            "sla_breach_percentage_friendly": 16.85,
            "excluded_from_sla": 1
        },
        "initialTTR": {
            "friendly": "2h:26m",
            "raw": 8788,
            "friendly_no_business": "7h:37m",
            "raw_no_business": 27444,
            "deviation_friendly": "14m:58s",
            "deviation_raw": 898,
            "deviation_friendly_no_business": "14m:7s",
            "deviation_raw_no_business": 847,
            "median_friendly": "23m:7s",
            "median_raw": 1387,
            "median_friendly_no_business": "23m:34s",
            "median_raw_no_business": 1414,
            "consistency_score": "35.25%",
            "consistency_score_no_business": "40.13%",
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 81.48
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 88.89
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 90.74
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 92.59
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 79.63
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 87.04
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 88.89
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 92.59
                }
            ],
            "within_sla": 48,
            "within_sla_percentage_friendly": 88.89,
            "sla_breach": 6,
            "sla_breach_percentage_friendly": 11.11,
            "excluded_from_sla": 4
        },
        "overallTTF": {
            "friendly": "2h:5m",
            "raw": 7535,
            "friendly_no_business": "5h:41m",
            "raw_no_business": 20498
        },
        "overallTTC": {
            "friendly": "5h:25m",
            "raw": 19538,
            "friendly_no_business": "21h:30m",
            "raw_no_business": 77415,
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 35.29
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 58.82
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 64.71
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 82.35
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 35.29
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 58.82
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 64.71
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 70.59
                }
            ],
            "within_sla": 10,
            "within_sla_percentage_friendly": 58.82,
            "sla_breach": 7,
            "sla_breach_percentage_friendly": 41.18
        },
        "dailyStats": [],
        "type": "stats"
    },
    "previous_period": {
        "threads": {
            "total": 86,
            "internal": 14,
            "inbound": 56,
            "outbound": 16,
            "sent_internally": 29,
            "await_customer": 16,
            "await_agent": 23,
            "closed": 18,
            "have_replies": 48,
            "have_replies_from_agents": 46,
            "have_no_replies_from_agents": 40,
            "completionRatio": {
                "ratio": 75,
                "numerator": 42,
                "denominator": 56
            },
            "handledRate": {
                "rate": 39.53,
                "numerator": 34,
                "denominator": 86
            },
            "top_labels": "",
            "messages_per_conversations_avg": 3,
            "messages_sent_per_conversations_avg": 1.6,
            "messages_received_per_conversations_avg": 1.4,
            "labels": {
                "total": 17,
                "list": [
                    {
                        "key": "UNREAD",
                        "doc_count": 63
                    },
                    {
                        "key": "CATEGORY_FORUMS",
                        "doc_count": 16
                    },
                    {
                        "key": "CATEGORY_PROMOTIONS",
                        "doc_count": 12
                    },
                    {
                        "key": "SENT",
                        "doc_count": 12
                    },
                    {
                        "key": "CATEGORY_PERSONAL",
                        "doc_count": 9
                    },
                    {
                        "key": "CATEGORY_SOCIAL",
                        "doc_count": 9
                    },
                    {
                        "key": "INBOX",
                        "doc_count": 9
                    },
                    {
                        "key": "IMPORTANT",
                        "doc_count": 8
                    },
                    {
                        "key": "STARRED",
                        "doc_count": 8
                    },
                    {
                        "key": "CATEGORY_UPDATES",
                        "doc_count": 6
                    },
                    {
                        "key": "Beauty & Home",
                        "doc_count": 1
                    },
                    {
                        "key": "Books",
                        "doc_count": 1
                    },
                    {
                        "key": "Computers & Outdoors",
                        "doc_count": 1
                    },
                    {
                        "key": "Garden",
                        "doc_count": 1
                    },
                    {
                        "key": "Music",
                        "doc_count": 1
                    },
                    {
                        "key": "Sports & Health",
                        "doc_count": 1
                    },
                    {
                        "key": "Toys & Health",
                        "doc_count": 1
                    }
                ]
            }
        },
        "messages": {
            "count": 185,
            "initial": 48,
            "replies": 89,
            "forward": 42,
            "follow_up": 6,
            "received": {
                "count": 123,
                "initial": 36,
                "replies": 50,
                "forward": 31,
                "follow_up": 6,
                "initial_replies": 17,
                "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": "248h:51m",
                "avg_wait_raw": 895913,
                "avg_first_wait": "336h:45m",
                "avg_first_wait_raw": 1212329
            },
            "sent": {
                "count": 134,
                "initial": 28,
                "replies": 62,
                "forward": 42,
                "follow_up": 2,
                "initial_replies": 42,
                "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": "42m:40s",
            "raw": 2560,
            "friendly_no_business": "2h:47m",
            "raw_no_business": 10055,
            "deviation_friendly": "10m:22s",
            "deviation_raw": 622,
            "deviation_friendly_no_business": "10m:40s",
            "deviation_raw_no_business": 640,
            "median_friendly": "14m:4s",
            "median_raw": 844,
            "median_friendly_no_business": "17m:50s",
            "median_raw_no_business": 1070,
            "consistency_score": "26.34%",
            "consistency_score_no_business": "40.23%",
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 82.26
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 90.32
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 96.77
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 98.39
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 82.26
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 90.32
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 91.94
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 93.55
                }
            ],
            "within_sla": 56,
            "within_sla_percentage_friendly": 90.32,
            "sla_breach": 6,
            "sla_breach_percentage_friendly": 9.68,
            "excluded_from_sla": 0
        },
        "initialTTR": {
            "friendly": "43m:51s",
            "raw": 2631,
            "friendly_no_business": "2h:54m",
            "raw_no_business": 10473,
            "deviation_friendly": "11m:8s",
            "deviation_raw": 668,
            "deviation_friendly_no_business": "10m:31s",
            "deviation_raw_no_business": 631,
            "median_friendly": "17m:50s",
            "median_raw": 1070,
            "median_friendly_no_business": "20m:46s",
            "median_raw_no_business": 1246,
            "consistency_score": "37.57%",
            "consistency_score_no_business": "49.36%",
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 82.05
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 89.74
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 97.44
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 97.44
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 82.05
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 89.74
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 92.31
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 94.87
                }
            ],
            "within_sla": 35,
            "within_sla_percentage_friendly": 89.74,
            "sla_breach": 4,
            "sla_breach_percentage_friendly": 10.26,
            "excluded_from_sla": 3
        },
        "overallTTF": {
            "friendly": "27m:37s",
            "raw": 1657,
            "friendly_no_business": "33m:42s",
            "raw_no_business": 2022
        },
        "overallTTC": {
            "friendly": "6h:7m",
            "raw": 22046,
            "friendly_no_business": "24h:14m",
            "raw_no_business": 87249,
            "percentileRanks": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 55.56
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 66.67
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 72.22
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 77.78
                }
            ],
            "percentileRanksRaw": [
                {
                    "count": 0,
                    "key": "1h:0m",
                    "value": 50
                },
                {
                    "count": 0,
                    "key": "2h:0m",
                    "value": 66.67
                },
                {
                    "count": 0,
                    "key": "4h:0m",
                    "value": 72.22
                },
                {
                    "count": 0,
                    "key": "8h:0m",
                    "value": 72.22
                }
            ],
            "within_sla": 12,
            "within_sla_percentage_friendly": 66.67,
            "sla_breach": 6,
            "sla_breach_percentage_friendly": 33.33
        },
        "dailyStats": [],
        "type": "previousPeriod"
    },
    "all_agent_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 28,
                    "await_customer": 14,
                    "await_agent": 16,
                    "closed": 11,
                    "have_replies": 35,
                    "have_initial_replies": 29,
                    "handledRate": {
                        "rate": 36.23,
                        "numerator": 25,
                        "denominator": 69
                    },
                    "top_labels": [
                        "UNREAD",
                        "CATEGORY_PERSONAL",
                        "CATEGORY_PROMOTIONS",
                        "CATEGORY_SOCIAL",
                        "STARRED"
                    ],
                    "messages_per_conversations_avg": 1.9,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 1.2
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 45,
                        "initial": 14,
                        "replies": 24,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "40h:8m",
                        "avg_wait_raw": 144535,
                        "avg_first_wait": "22h:49m",
                        "avg_first_wait_raw": 82156
                    },
                    "sent": {
                        "count": 83,
                        "initial": 29,
                        "replies": 30,
                        "forward": 23,
                        "follow_up": 1,
                        "initial_replies": 17,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:20m",
                    "raw": 12045,
                    "friendly_no_business": "13h:4m",
                    "raw_no_business": 47044,
                    "deviation_friendly": "14m:19s",
                    "deviation_raw": 859,
                    "deviation_friendly_no_business": "13m:6s",
                    "deviation_raw_no_business": 786,
                    "median_friendly": "22m:52s",
                    "median_raw": 1372,
                    "median_friendly_no_business": "23m:7s",
                    "median_raw_no_business": 1387,
                    "consistency_score": "37.43%",
                    "consistency_score_no_business": "43.36%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 70
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 76.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 83.33
                        }
                    ],
                    "within_sla": 24,
                    "within_sla_percentage_friendly": 80,
                    "sla_breach": 6,
                    "sla_breach_percentage_friendly": 20,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "5h:17m",
                    "raw": 19044,
                    "friendly_no_business": "17h:15m",
                    "raw_no_business": 62111,
                    "deviation_friendly": "21m:47s",
                    "deviation_raw": 1307,
                    "deviation_friendly_no_business": "21m:11s",
                    "deviation_raw_no_business": 1271,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:21s",
                    "median_raw_no_business": 1401,
                    "consistency_score": "5.76%",
                    "consistency_score_no_business": "9.28%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 73.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "within_sla": 12,
                    "within_sla_percentage_friendly": 80,
                    "sla_breach": 3,
                    "sla_breach_percentage_friendly": 20,
                    "excluded_from_sla": 2
                },
                "overallTTF": {
                    "friendly": "1h:48m",
                    "raw": 6482,
                    "friendly_no_business": "4h:32m",
                    "raw_no_business": 16326
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 45.45
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 72.73
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 45.45
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 63.64
                        }
                    ],
                    "within_sla": 7,
                    "within_sla_percentage_friendly": 63.64,
                    "sla_breach": 4,
                    "sla_breach_percentage_friendly": 36.36
                },
                "previous": {
                    "name": "[email protected]",
                    "threads": {
                        "total": 51,
                        "internal": 13,
                        "inbound": 27,
                        "outbound": 11,
                        "sent_internally": 21,
                        "await_customer": 6,
                        "await_agent": 15,
                        "closed": 9,
                        "have_replies": 25,
                        "have_initial_replies": 23,
                        "handledRate": {
                            "rate": 29.41,
                            "numerator": 15,
                            "denominator": 51
                        },
                        "top_labels": [
                            "UNREAD",
                            "SENT",
                            "CATEGORY_FORUMS",
                            "CATEGORY_SOCIAL",
                            "CATEGORY_PROMOTIONS"
                        ],
                        "messages_per_conversations_avg": 2.1,
                        "messages_received_per_conversations_avg": 1,
                        "messages_sent_per_conversations_avg": 1.1
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 51,
                            "initial": 15,
                            "replies": 22,
                            "forward": 9,
                            "follow_up": 5,
                            "initial_replies": 9,
                            "dailyStats": [],
                            "avg_wait": "252h:9m",
                            "avg_wait_raw": 907790,
                            "avg_first_wait": "336h:45m",
                            "avg_first_wait_raw": 1212329
                        },
                        "sent": {
                            "count": 56,
                            "initial": 18,
                            "replies": 23,
                            "forward": 15,
                            "follow_up": 0,
                            "initial_replies": 14,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "1h:3m",
                        "raw": 3790,
                        "friendly_no_business": "4h:45m",
                        "raw_no_business": 17130,
                        "deviation_friendly": "18m:25s",
                        "deviation_raw": 1105,
                        "deviation_friendly_no_business": "11m:45s",
                        "deviation_raw_no_business": 705,
                        "median_friendly": "22m:47s",
                        "median_raw": 1367,
                        "median_friendly_no_business": "25m:6s",
                        "median_raw_no_business": 1506,
                        "consistency_score": "19.16%",
                        "consistency_score_no_business": "53.19%",
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 73.91
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 82.61
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 95.65
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 95.65
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 73.91
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 82.61
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 86.96
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 91.3
                            }
                        ],
                        "within_sla": 19,
                        "within_sla_percentage_friendly": 82.61,
                        "sla_breach": 4,
                        "sla_breach_percentage_friendly": 17.39,
                        "excluded_from_sla": 0
                    },
                    "initialTTR": {
                        "friendly": "1h:37m",
                        "raw": 5845,
                        "friendly_no_business": "8h:6m",
                        "raw_no_business": 29204,
                        "deviation_friendly": "24m:36s",
                        "deviation_raw": 1476,
                        "deviation_friendly_no_business": "24m:16s",
                        "deviation_raw_no_business": 1456,
                        "median_friendly": "28m:58s",
                        "median_raw": 1738,
                        "median_friendly_no_business": "28m:58s",
                        "median_raw_no_business": 1738,
                        "consistency_score": "15.06%",
                        "consistency_score_no_business": "16.21%",
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 61.54
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 69.23
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 92.31
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 92.31
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 61.54
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 69.23
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 76.92
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 84.62
                            }
                        ],
                        "within_sla": 9,
                        "within_sla_percentage_friendly": 69.23,
                        "sla_breach": 4,
                        "sla_breach_percentage_friendly": 30.77,
                        "excluded_from_sla": 1
                    },
                    "overallTTF": {
                        "friendly": "50m:41s",
                        "raw": 3041,
                        "friendly_no_business": "57m:0s",
                        "raw_no_business": 3420
                    },
                    "overallTTC": {
                        "friendly": "2h:30m",
                        "raw": 9020,
                        "friendly_no_business": "6h:9m",
                        "raw_no_business": 22149,
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 55.56
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 66.67
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 77.78
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 88.89
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 44.44
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 66.67
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 77.78
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 77.78
                            }
                        ],
                        "within_sla": 6,
                        "within_sla_percentage_friendly": 66.67,
                        "sla_breach": 3,
                        "sla_breach_percentage_friendly": 33.33
                    }
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 25,
                    "await_customer": 7,
                    "await_agent": 10,
                    "closed": 9,
                    "have_replies": 30,
                    "have_initial_replies": 26,
                    "handledRate": {
                        "rate": 31.37,
                        "numerator": 16,
                        "denominator": 51
                    },
                    "top_labels": [
                        "UNREAD",
                        "IMPORTANT",
                        "CATEGORY_SOCIAL",
                        "STARRED",
                        "CATEGORY_UPDATES"
                    ],
                    "messages_per_conversations_avg": 2.2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 58,
                        "initial": 19,
                        "replies": 22,
                        "forward": 16,
                        "follow_up": 1,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "56h:7m",
                        "avg_wait_raw": 202027,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 52,
                        "initial": 6,
                        "replies": 30,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 21,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:32m",
                    "raw": 9144,
                    "friendly_no_business": "8h:55m",
                    "raw_no_business": 32151,
                    "deviation_friendly": "19m:4s",
                    "deviation_raw": 1144,
                    "deviation_friendly_no_business": "13m:55s",
                    "deviation_raw_no_business": 835,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "12.34%",
                    "consistency_score_no_business": "37.72%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 86.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 90
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 86.67
                        }
                    ],
                    "within_sla": 26,
                    "within_sla_percentage_friendly": 86.67,
                    "sla_breach": 4,
                    "sla_breach_percentage_friendly": 13.33,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "31m:32s",
                    "raw": 1892,
                    "friendly_no_business": "33m:23s",
                    "raw_no_business": 2003,
                    "deviation_friendly": "12m:57s",
                    "deviation_raw": 777,
                    "deviation_friendly_no_business": "13m:24s",
                    "deviation_raw_no_business": 804,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "22m:20s",
                    "median_raw_no_business": 1340,
                    "consistency_score": "40.46%",
                    "consistency_score_no_business": "40%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 95
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 19,
                    "within_sla_percentage_friendly": 95,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 5,
                    "excluded_from_sla": 1
                },
                "overallTTF": {
                    "friendly": "2h:41m",
                    "raw": 9703,
                    "friendly_no_business": "8h:32m",
                    "raw_no_business": 30770
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 33.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 44.44
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 55.56
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 77.78
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 33.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 44.44
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 55.56
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 66.67
                        }
                    ],
                    "within_sla": 4,
                    "within_sla_percentage_friendly": 44.44,
                    "sla_breach": 5,
                    "sla_breach_percentage_friendly": 55.56
                },
                "previous": {
                    "name": "[email protected]",
                    "threads": {
                        "total": 34,
                        "internal": 13,
                        "inbound": 15,
                        "outbound": 6,
                        "sent_internally": 14,
                        "await_customer": 6,
                        "await_agent": 5,
                        "closed": 9,
                        "have_replies": 20,
                        "have_initial_replies": 19,
                        "handledRate": {
                            "rate": 44.12,
                            "numerator": 15,
                            "denominator": 34
                        },
                        "top_labels": [
                            "UNREAD",
                            "CATEGORY_FORUMS",
                            "CATEGORY_PROMOTIONS",
                            "CATEGORY_PERSONAL",
                            "INBOX"
                        ],
                        "messages_per_conversations_avg": 2.5,
                        "messages_received_per_conversations_avg": 1.3,
                        "messages_sent_per_conversations_avg": 1.2
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 43,
                            "initial": 13,
                            "replies": 20,
                            "forward": 9,
                            "follow_up": 1,
                            "initial_replies": 7,
                            "dailyStats": [],
                            "avg_wait": "253h:6m",
                            "avg_wait_raw": 911160,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        },
                        "sent": {
                            "count": 41,
                            "initial": 8,
                            "replies": 21,
                            "forward": 12,
                            "follow_up": 0,
                            "initial_replies": 12,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "43m:19s",
                        "raw": 2599,
                        "friendly_no_business": "2h:44m",
                        "raw_no_business": 9886,
                        "deviation_friendly": "10m:37s",
                        "deviation_raw": 637,
                        "deviation_friendly_no_business": "10m:11s",
                        "deviation_raw_no_business": 611,
                        "median_friendly": "16m:6s",
                        "median_raw": 966,
                        "median_friendly_no_business": "18m:52s",
                        "median_raw_no_business": 1132,
                        "consistency_score": "34.09%",
                        "consistency_score_no_business": "46.02%",
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 85.71
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 90.48
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 95.24
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 85.71
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 90.48
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 90.48
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 90.48
                            }
                        ],
                        "within_sla": 19,
                        "within_sla_percentage_friendly": 90.48,
                        "sla_breach": 2,
                        "sla_breach_percentage_friendly": 9.52,
                        "excluded_from_sla": 0
                    },
                    "initialTTR": {
                        "friendly": "21m:21s",
                        "raw": 1281,
                        "friendly_no_business": "21m:44s",
                        "raw_no_business": 1304,
                        "deviation_friendly": "10m:21s",
                        "deviation_raw": 621,
                        "deviation_friendly_no_business": "10m:21s",
                        "deviation_raw_no_business": 621,
                        "median_friendly": "20m:56s",
                        "median_raw": 1256,
                        "median_friendly_no_business": "20m:56s",
                        "median_raw_no_business": 1256,
                        "consistency_score": "50.55%",
                        "consistency_score_no_business": "50.55%",
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 90.91
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 90.91
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "within_sla": 11,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 1
                    },
                    "overallTTF": {
                        "friendly": "8m:14s",
                        "raw": 494,
                        "friendly_no_business": "19m:43s",
                        "raw_no_business": 1183
                    },
                    "overallTTC": {
                        "friendly": "4h:51m",
                        "raw": 17497,
                        "friendly_no_business": "19h:4m",
                        "raw_no_business": 68679,
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 55.56
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 66.67
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 66.67
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 77.78
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 55.56
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 66.67
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 66.67
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 66.67
                            }
                        ],
                        "within_sla": 6,
                        "within_sla_percentage_friendly": 66.67,
                        "sla_breach": 3,
                        "sla_breach_percentage_friendly": 33.33
                    }
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 22,
                    "await_customer": 10,
                    "await_agent": 10,
                    "closed": 4,
                    "have_replies": 34,
                    "have_initial_replies": 30,
                    "handledRate": {
                        "rate": 30.43,
                        "numerator": 14,
                        "denominator": 46
                    },
                    "top_labels": [
                        "UNREAD",
                        "STARRED",
                        "CATEGORY_FORUMS",
                        "CATEGORY_SOCIAL",
                        "CATEGORY_PERSONAL"
                    ],
                    "messages_per_conversations_avg": 2,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 51,
                        "initial": 18,
                        "replies": 24,
                        "forward": 6,
                        "follow_up": 3,
                        "initial_replies": 10,
                        "dailyStats": [],
                        "avg_wait": "82h:30m",
                        "avg_wait_raw": 297019,
                        "avg_first_wait": "53h:45m",
                        "avg_first_wait_raw": 193558
                    },
                    "sent": {
                        "count": 40,
                        "initial": 6,
                        "replies": 30,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 20,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:18m",
                    "raw": 11898,
                    "friendly_no_business": "10h:22m",
                    "raw_no_business": 37348,
                    "deviation_friendly": "18m:45s",
                    "deviation_raw": 1125,
                    "deviation_friendly_no_business": "15m:14s",
                    "deviation_raw_no_business": 914,
                    "median_friendly": "26m:38s",
                    "median_raw": 1598,
                    "median_friendly_no_business": "26m:38s",
                    "median_raw_no_business": 1598,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "42.8%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 72.41
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 72.41
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.76
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 89.66
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 89.66
                        }
                    ],
                    "within_sla": 24,
                    "within_sla_percentage_friendly": 82.76,
                    "sla_breach": 5,
                    "sla_breach_percentage_friendly": 17.24,
                    "excluded_from_sla": 1
                },
                "initialTTR": {
                    "friendly": "2h:12m",
                    "raw": 7949,
                    "friendly_no_business": "7h:27m",
                    "raw_no_business": 26854,
                    "deviation_friendly": "13m:31s",
                    "deviation_raw": 811,
                    "deviation_friendly_no_business": "13m:31s",
                    "deviation_raw_no_business": 811,
                    "median_friendly": "24m:55s",
                    "median_raw": 1495,
                    "median_friendly_no_business": "24m:55s",
                    "median_raw_no_business": 1495,
                    "consistency_score": "45.74%",
                    "consistency_score_no_business": "45.75%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 73.68
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 89.47
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 94.74
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 94.74
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 73.68
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 89.47
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 94.74
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 94.74
                        }
                    ],
                    "within_sla": 17,
                    "within_sla_percentage_friendly": 89.47,
                    "sla_breach": 2,
                    "sla_breach_percentage_friendly": 10.53,
                    "excluded_from_sla": 1
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5225,
                    "friendly_no_business": "1h:38m",
                    "raw_no_business": 5891
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 25
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 75
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 25
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 50
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 50,
                    "sla_breach": 2,
                    "sla_breach_percentage_friendly": 50
                },
                "previous": {
                    "name": "[email protected]",
                    "threads": {
                        "total": 38,
                        "internal": 13,
                        "inbound": 22,
                        "outbound": 3,
                        "sent_internally": 19,
                        "await_customer": 6,
                        "await_agent": 3,
                        "closed": 10,
                        "have_replies": 17,
                        "have_initial_replies": 17,
                        "handledRate": {
                            "rate": 42.11,
                            "numerator": 16,
                            "denominator": 38
                        },
                        "top_labels": [
                            "UNREAD",
                            "CATEGORY_FORUMS",
                            "CATEGORY_PROMOTIONS",
                            "IMPORTANT",
                            "CATEGORY_SOCIAL"
                        ],
                        "messages_per_conversations_avg": 2,
                        "messages_received_per_conversations_avg": 1.1,
                        "messages_sent_per_conversations_avg": 1
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 40,
                            "initial": 17,
                            "replies": 10,
                            "forward": 13,
                            "follow_up": 0,
                            "initial_replies": 1,
                            "dailyStats": [],
                            "avg_wait": "217h:18m",
                            "avg_wait_raw": 782282,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        },
                        "sent": {
                            "count": 37,
                            "initial": 2,
                            "replies": 18,
                            "forward": 15,
                            "follow_up": 2,
                            "initial_replies": 16,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "15m:45s",
                        "raw": 945,
                        "friendly_no_business": "20m:11s",
                        "raw_no_business": 1211,
                        "deviation_friendly": "4m:47s",
                        "deviation_raw": 287,
                        "deviation_friendly_no_business": "5m:46s",
                        "deviation_raw_no_business": 346,
                        "median_friendly": "7m:8s",
                        "median_raw": 428,
                        "median_friendly_no_business": "11m:19s",
                        "median_raw_no_business": 679,
                        "consistency_score": "33.08%",
                        "consistency_score_no_business": "49.14%",
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 88.89
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 88.89
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "within_sla": 18,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 0
                    },
                    "initialTTR": {
                        "friendly": "13m:55s",
                        "raw": 835,
                        "friendly_no_business": "16m:3s",
                        "raw_no_business": 963,
                        "deviation_friendly": "6m:0s",
                        "deviation_raw": 360,
                        "deviation_friendly_no_business": "5m:45s",
                        "deviation_raw_no_business": 345,
                        "median_friendly": "11m:19s",
                        "median_raw": 679,
                        "median_friendly_no_business": "12m:4s",
                        "median_raw_no_business": 724,
                        "consistency_score": "47.01%",
                        "consistency_score_no_business": "52.37%",
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 93.33
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 93.33
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "within_sla": 15,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0,
                        "excluded_from_sla": 1
                    },
                    "overallTTF": {
                        "friendly": "25m:4s",
                        "raw": 1504,
                        "friendly_no_business": "27m:16s",
                        "raw_no_business": 1636
                    },
                    "overallTTC": {
                        "friendly": "8h:0m",
                        "raw": 28825,
                        "friendly_no_business": "30h:52m",
                        "raw_no_business": 111171,
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 60
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 60
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 60
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 70
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 60
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 60
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 60
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 60
                            }
                        ],
                        "within_sla": 6,
                        "within_sla_percentage_friendly": 60,
                        "sla_breach": 4,
                        "sla_breach_percentage_friendly": 40
                    }
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 8,
                    "internal": 0,
                    "inbound": 8,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 3,
                    "await_agent": 5,
                    "closed": 0,
                    "have_replies": 6,
                    "have_initial_replies": 6,
                    "handledRate": {
                        "rate": 37.5,
                        "numerator": 3,
                        "denominator": 8
                    },
                    "top_labels": [
                        "UNREAD",
                        "CATEGORY_SOCIAL",
                        "IMPORTANT",
                        "INBOX"
                    ],
                    "messages_per_conversations_avg": 1,
                    "messages_received_per_conversations_avg": 1,
                    "messages_sent_per_conversations_avg": 0
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 8,
                        "initial": 2,
                        "replies": 6,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "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,
                        "dailyStats": []
                    }
                },
                "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": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 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": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": null
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                },
                "previous": {
                    "name": "[email protected]",
                    "threads": {
                        "total": 5,
                        "internal": 0,
                        "inbound": 5,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 3,
                        "await_agent": 1,
                        "closed": 1,
                        "have_replies": 1,
                        "have_initial_replies": 1,
                        "handledRate": {
                            "rate": 80,
                            "numerator": 4,
                            "denominator": 5
                        },
                        "top_labels": [
                            "UNREAD",
                            "CATEGORY_PROMOTIONS",
                            "CATEGORY_SOCIAL",
                            "IMPORTANT",
                            "STARRED"
                        ],
                        "messages_per_conversations_avg": 1,
                        "messages_received_per_conversations_avg": 1,
                        "messages_sent_per_conversations_avg": 0
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 5,
                            "initial": 4,
                            "replies": 1,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 1,
                            "dailyStats": [],
                            "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,
                            "dailyStats": []
                        }
                    },
                    "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": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 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": null,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": null
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "overallTTC": {
                        "friendly": "27m:55s",
                        "raw": 1675,
                        "friendly_no_business": "27m:55s",
                        "raw_no_business": 1675,
                        "percentileRanks": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 100
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 100
                            }
                        ],
                        "within_sla": 1,
                        "within_sla_percentage_friendly": 100,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0
                    }
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 6,
                    "internal": 0,
                    "inbound": 6,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 6,
                    "closed": 0,
                    "have_replies": 5,
                    "have_initial_replies": 5,
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 6
                    },
                    "top_labels": [
                        "UNREAD",
                        "CATEGORY_PERSONAL",
                        "CATEGORY_SOCIAL",
                        "IMPORTANT",
                        "STARRED"
                    ],
                    "messages_per_conversations_avg": 1,
                    "messages_received_per_conversations_avg": 1,
                    "messages_sent_per_conversations_avg": 0
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 6,
                        "initial": 1,
                        "replies": 5,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 5,
                        "dailyStats": [],
                        "avg_wait": "70h:21m",
                        "avg_wait_raw": 253294,
                        "avg_first_wait": "70h:21m",
                        "avg_first_wait_raw": 253294
                    },
                    "sent": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": []
                    }
                },
                "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": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 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": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": null
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                },
                "previous": {
                    "name": "[email protected]",
                    "threads": {
                        "total": 1,
                        "internal": 0,
                        "inbound": 1,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 0,
                        "await_agent": 1,
                        "closed": 0,
                        "have_replies": 1,
                        "have_initial_replies": 1,
                        "handledRate": {
                            "rate": 0,
                            "numerator": 0,
                            "denominator": 1
                        },
                        "top_labels": [
                            "CATEGORY_PERSONAL",
                            "CATEGORY_PROMOTIONS",
                            "UNREAD"
                        ],
                        "messages_per_conversations_avg": 1,
                        "messages_received_per_conversations_avg": 1,
                        "messages_sent_per_conversations_avg": 0
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 1,
                            "initial": 0,
                            "replies": 1,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 1,
                            "dailyStats": [],
                            "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,
                            "dailyStats": []
                        }
                    },
                    "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": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 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": null,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": null
                    },
                    "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": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 0
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 0
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 0
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 0
                            }
                        ],
                        "percentileRanksRaw": [
                            {
                                "count": 0,
                                "key": "1h:0m",
                                "value": 0
                            },
                            {
                                "count": 0,
                                "key": "2h:0m",
                                "value": 0
                            },
                            {
                                "count": 0,
                                "key": "4h:0m",
                                "value": 0
                            },
                            {
                                "count": 0,
                                "key": "8h:0m",
                                "value": 0
                            }
                        ],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A"
                    }
                }
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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 »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/reports/sla",
        "per_page": 15,
        "prev_page_url": null,
        "to": 5,
        "total": 5
    },
    "all_domain_stats": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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 »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/reports/sla",
        "per_page": 15,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "all_customer_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "[email protected]",
                "threads": {
                    "total": 69,
                    "internal": 23,
                    "inbound": 31,
                    "outbound": 15,
                    "sent_internally": 28,
                    "await_customer": 14,
                    "await_agent": 16,
                    "closed": 11,
                    "have_replies": 35,
                    "have_initial_replies": 29,
                    "handledRate": {
                        "rate": 36.23,
                        "numerator": 25,
                        "denominator": 69
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.2,
                    "messages_received_per_conversations_avg": 0.7,
                    "messages_sent_per_conversations_avg": 0.5
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 47,
                        "initial": 15,
                        "replies": 16,
                        "forward": 15,
                        "follow_up": 1,
                        "initial_replies": 8,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 33,
                        "initial": 8,
                        "replies": 18,
                        "forward": 7,
                        "follow_up": 0,
                        "initial_replies": 11,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:11m",
                    "raw": 11497,
                    "friendly_no_business": "9h:44m",
                    "raw_no_business": 35058,
                    "deviation_friendly": "12m:31s",
                    "deviation_raw": 751,
                    "deviation_friendly_no_business": "12m:31s",
                    "deviation_raw_no_business": 751,
                    "median_friendly": "26m:33s",
                    "median_raw": 1593,
                    "median_friendly_no_business": "26m:33s",
                    "median_raw_no_business": 1593,
                    "consistency_score": "52.85%",
                    "consistency_score_no_business": "52.85%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 70.59
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 82.35
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 70.59
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 76.47
                        }
                    ],
                    "within_sla": 14,
                    "within_sla_percentage_friendly": 82.35,
                    "sla_breach": 3,
                    "sla_breach_percentage_friendly": 17.65,
                    "excluded_from_sla": 1
                },
                "initialTTR": {
                    "friendly": "29m:44s",
                    "raw": 1784,
                    "friendly_no_business": "29m:44s",
                    "raw_no_business": 1784,
                    "deviation_friendly": "5m:57s",
                    "deviation_raw": 357,
                    "deviation_friendly_no_business": "5m:57s",
                    "deviation_raw_no_business": 357,
                    "median_friendly": "24m:52s",
                    "median_raw": 1492,
                    "median_friendly_no_business": "24m:52s",
                    "median_raw_no_business": 1492,
                    "consistency_score": "76.1%",
                    "consistency_score_no_business": "76.1%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 90
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 10,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 1
                },
                "overallTTF": {
                    "friendly": "24m:37s",
                    "raw": 1477,
                    "friendly_no_business": "31m:10s",
                    "raw_no_business": 1870
                },
                "overallTTC": {
                    "friendly": "7h:8m",
                    "raw": 25698,
                    "friendly_no_business": "26h:6m",
                    "raw_no_business": 93997,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 45.45
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 72.73
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 45.45
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 63.64
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 63.64
                        }
                    ],
                    "within_sla": 7,
                    "within_sla_percentage_friendly": 63.64,
                    "sla_breach": 4,
                    "sla_breach_percentage_friendly": 36.36
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 51,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 7,
                    "sent_internally": 25,
                    "await_customer": 7,
                    "await_agent": 10,
                    "closed": 9,
                    "have_replies": 30,
                    "have_initial_replies": 26,
                    "handledRate": {
                        "rate": 31.37,
                        "numerator": 16,
                        "denominator": 51
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.5,
                    "messages_received_per_conversations_avg": 0.6,
                    "messages_sent_per_conversations_avg": 0.9
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 31,
                        "initial": 3,
                        "replies": 17,
                        "forward": 11,
                        "follow_up": 0,
                        "initial_replies": 12,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 44,
                        "initial": 16,
                        "replies": 12,
                        "forward": 16,
                        "follow_up": 0,
                        "initial_replies": 4,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "4h:8m",
                    "raw": 14937,
                    "friendly_no_business": "14h:53m",
                    "raw_no_business": 53602,
                    "deviation_friendly": "11m:47s",
                    "deviation_raw": 707,
                    "deviation_friendly_no_business": "11m:47s",
                    "deviation_raw_no_business": 707,
                    "median_friendly": "26m:41s",
                    "median_raw": 1601,
                    "median_friendly_no_business": "26m:41s",
                    "median_raw_no_business": 1601,
                    "consistency_score": "55.86%",
                    "consistency_score_no_business": "55.86%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 75
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 83.33
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 75
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 83.33
                        }
                    ],
                    "within_sla": 9,
                    "within_sla_percentage_friendly": 75,
                    "sla_breach": 3,
                    "sla_breach_percentage_friendly": 25,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "21m:38s",
                    "raw": 1298,
                    "friendly_no_business": "21m:38s",
                    "raw_no_business": 1298,
                    "deviation_friendly": "5m:57s",
                    "deviation_raw": 357,
                    "deviation_friendly_no_business": "5m:57s",
                    "deviation_raw_no_business": 357,
                    "median_friendly": "15m:41s",
                    "median_raw": 941,
                    "median_friendly_no_business": "15m:41s",
                    "median_raw_no_business": 941,
                    "consistency_score": "62.11%",
                    "consistency_score_no_business": "62.11%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 2
                },
                "overallTTF": {
                    "friendly": "2h:21m",
                    "raw": 8477,
                    "friendly_no_business": "4h:24m",
                    "raw_no_business": 15844
                },
                "overallTTC": {
                    "friendly": "5h:34m",
                    "raw": 20068,
                    "friendly_no_business": "21h:38m",
                    "raw_no_business": 77915,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 33.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 44.44
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 55.56
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 77.78
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 33.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 44.44
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 55.56
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 66.67
                        }
                    ],
                    "within_sla": 4,
                    "within_sla_percentage_friendly": 44.44,
                    "sla_breach": 5,
                    "sla_breach_percentage_friendly": 55.56
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 46,
                    "internal": 18,
                    "inbound": 26,
                    "outbound": 2,
                    "sent_internally": 22,
                    "await_customer": 10,
                    "await_agent": 10,
                    "closed": 4,
                    "have_replies": 34,
                    "have_initial_replies": 30,
                    "handledRate": {
                        "rate": 30.43,
                        "numerator": 14,
                        "denominator": 46
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.3,
                    "messages_received_per_conversations_avg": 0.5,
                    "messages_sent_per_conversations_avg": 0.8
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 23,
                        "initial": 6,
                        "replies": 14,
                        "forward": 3,
                        "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
                    },
                    "sent": {
                        "count": 38,
                        "initial": 14,
                        "replies": 17,
                        "forward": 6,
                        "follow_up": 1,
                        "initial_replies": 10,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "2h:15m",
                    "raw": 8143,
                    "friendly_no_business": "8h:49m",
                    "raw_no_business": 31794,
                    "deviation_friendly": "15m:2s",
                    "deviation_raw": 902,
                    "deviation_friendly_no_business": "14m:12s",
                    "deviation_raw_no_business": 852,
                    "median_friendly": "24m:52s",
                    "median_raw": 1492,
                    "median_friendly_no_business": "24m:52s",
                    "median_raw_no_business": 1492,
                    "consistency_score": "39.54%",
                    "consistency_score_no_business": "42.89%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 88.24
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 94.12
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 76.47
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 82.35
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 82.35
                        }
                    ],
                    "within_sla": 14,
                    "within_sla_percentage_friendly": 82.35,
                    "sla_breach": 3,
                    "sla_breach_percentage_friendly": 17.65,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "3h:39m",
                    "raw": 13166,
                    "friendly_no_business": "3h:39m",
                    "raw_no_business": 13166,
                    "deviation_friendly": "15m:2s",
                    "deviation_raw": 902,
                    "deviation_friendly_no_business": "15m:2s",
                    "deviation_raw_no_business": 902,
                    "median_friendly": "24m:52s",
                    "median_raw": 1492,
                    "median_friendly_no_business": "24m:52s",
                    "median_raw_no_business": 1492,
                    "consistency_score": "39.54%",
                    "consistency_score_no_business": "39.54%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 85.71
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 85.71
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 85.71
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 85.71
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 85.71
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 85.71
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 85.71
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 85.71
                        }
                    ],
                    "within_sla": 6,
                    "within_sla_percentage_friendly": 85.71,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 14.29,
                    "excluded_from_sla": 3
                },
                "overallTTF": {
                    "friendly": "1h:27m",
                    "raw": 5255,
                    "friendly_no_business": "4h:8m",
                    "raw_no_business": 14921
                },
                "overallTTC": {
                    "friendly": "8h:12m",
                    "raw": 29551,
                    "friendly_no_business": "24h:5m",
                    "raw_no_business": 86746,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 25
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 75
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 25
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 50
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 50,
                    "sla_breach": 2,
                    "sla_breach_percentage_friendly": 50
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 9,
                    "internal": 1,
                    "inbound": 7,
                    "outbound": 1,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 9,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 100,
                        "numerator": 9,
                        "denominator": 9
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1,
                    "messages_received_per_conversations_avg": 0,
                    "messages_sent_per_conversations_avg": 1
                },
                "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,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 9,
                        "initial": 1,
                        "replies": 0,
                        "forward": 8,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": []
                    }
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "overallTTF": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null
                },
                "overallTTC": {
                    "friendly": "4h:47m",
                    "raw": 17277,
                    "friendly_no_business": "24h:28m",
                    "raw_no_business": 88088,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 33.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 55.56
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 88.89
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 33.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 55.56
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 77.78
                        }
                    ],
                    "within_sla": 5,
                    "within_sla_percentage_friendly": 55.56,
                    "sla_breach": 4,
                    "sla_breach_percentage_friendly": 44.44
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 8,
                    "internal": 0,
                    "inbound": 8,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 3,
                    "await_agent": 5,
                    "closed": 0,
                    "have_replies": 6,
                    "have_initial_replies": 6,
                    "handledRate": {
                        "rate": 37.5,
                        "numerator": 3,
                        "denominator": 8
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 0.8,
                    "messages_received_per_conversations_avg": 0,
                    "messages_sent_per_conversations_avg": 0.8
                },
                "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,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 6,
                        "initial": 0,
                        "replies": 6,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 6,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "28m:0s",
                    "raw": 1680,
                    "friendly_no_business": "1h:11m",
                    "raw_no_business": 4282,
                    "deviation_friendly": "27m:42s",
                    "deviation_raw": 1662,
                    "deviation_friendly_no_business": "22m:34s",
                    "deviation_raw_no_business": 1354,
                    "median_friendly": "10m:55s",
                    "median_raw": 655,
                    "median_friendly_no_business": "45m:24s",
                    "median_raw_no_business": 2724,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "50.31%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 83.33
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 6,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "24m:31s",
                    "raw": 1471,
                    "friendly_no_business": "1h:16m",
                    "raw_no_business": 4594,
                    "deviation_friendly": "10m:55s",
                    "deviation_raw": 655,
                    "deviation_friendly_no_business": "44m:43s",
                    "deviation_raw_no_business": 2683,
                    "median_friendly": "10m:55s",
                    "median_raw": 655,
                    "median_friendly_no_business": "55m:40s",
                    "median_raw_no_business": 3340,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "19.67%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 5,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 1
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 6,
                    "internal": 0,
                    "inbound": 6,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 6,
                    "closed": 0,
                    "have_replies": 5,
                    "have_initial_replies": 5,
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 6
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 0.8,
                    "messages_received_per_conversations_avg": 0,
                    "messages_sent_per_conversations_avg": 0.8
                },
                "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,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 5,
                        "initial": 0,
                        "replies": 5,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 5,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:55m",
                    "raw": 14138,
                    "friendly_no_business": "13h:36m",
                    "raw_no_business": 49016,
                    "deviation_friendly": "9m:10s",
                    "deviation_raw": 550,
                    "deviation_friendly_no_business": "17m:20s",
                    "deviation_raw_no_business": 1040,
                    "median_friendly": "9m:10s",
                    "median_raw": 550,
                    "median_friendly_no_business": "26m:31s",
                    "median_raw_no_business": 1591,
                    "consistency_score": "0.05%",
                    "consistency_score_no_business": "34.62%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "within_sla": 4,
                    "within_sla_percentage_friendly": 80,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 20,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "3h:55m",
                    "raw": 14138,
                    "friendly_no_business": "13h:36m",
                    "raw_no_business": 49016,
                    "deviation_friendly": "9m:10s",
                    "deviation_raw": 550,
                    "deviation_friendly_no_business": "17m:20s",
                    "deviation_raw_no_business": 1040,
                    "median_friendly": "9m:10s",
                    "median_raw": 550,
                    "median_friendly_no_business": "26m:31s",
                    "median_raw_no_business": 1591,
                    "consistency_score": "0.05%",
                    "consistency_score_no_business": "34.62%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 80
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 80
                        }
                    ],
                    "within_sla": 4,
                    "within_sla_percentage_friendly": 80,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 20,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 4,
                    "internal": 0,
                    "inbound": 2,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 1,
                    "await_agent": 3,
                    "closed": 0,
                    "have_replies": 3,
                    "have_initial_replies": 3,
                    "handledRate": {
                        "rate": 25,
                        "numerator": 1,
                        "denominator": 4
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.5,
                    "messages_received_per_conversations_avg": 1.3,
                    "messages_sent_per_conversations_avg": 1.3
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 5,
                        "initial": 2,
                        "replies": 3,
                        "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
                    },
                    "sent": {
                        "count": 5,
                        "initial": 2,
                        "replies": 3,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 2,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "1h:10m",
                    "raw": 4224,
                    "friendly_no_business": "1h:10m",
                    "raw_no_business": 4224,
                    "deviation_friendly": "10m:8s",
                    "deviation_raw": 608,
                    "deviation_friendly_no_business": "10m:8s",
                    "deviation_raw_no_business": 608,
                    "median_friendly": "20m:9s",
                    "median_raw": 1209,
                    "median_friendly_no_business": "20m:9s",
                    "median_raw_no_business": 1209,
                    "consistency_score": "49.69%",
                    "consistency_score_no_business": "49.69%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 66.67
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 66.67,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 33.33,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "1h:35m",
                    "raw": 5733,
                    "friendly_no_business": "1h:35m",
                    "raw_no_business": 5733,
                    "deviation_friendly": "1h:25m",
                    "deviation_raw": 5133,
                    "deviation_friendly_no_business": "1h:25m",
                    "deviation_raw_no_business": 5133,
                    "median_friendly": "10m:0s",
                    "median_raw": 600,
                    "median_friendly_no_business": "10m:0s",
                    "median_raw_no_business": 600,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "0%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 50
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 1,
                    "within_sla_percentage_friendly": 50,
                    "sla_breach": 1,
                    "sla_breach_percentage_friendly": 50,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 4,
                    "internal": 0,
                    "inbound": 2,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 1,
                    "await_agent": 3,
                    "closed": 0,
                    "have_replies": 1,
                    "have_initial_replies": 1,
                    "handledRate": {
                        "rate": 25,
                        "numerator": 1,
                        "denominator": 4
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.3,
                    "messages_received_per_conversations_avg": 0.5,
                    "messages_sent_per_conversations_avg": 0.8
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 2,
                        "initial": 2,
                        "replies": 0,
                        "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
                    },
                    "sent": {
                        "count": 3,
                        "initial": 2,
                        "replies": 1,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 1,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "23m:33s",
                    "raw": 1413,
                    "friendly_no_business": "23m:33s",
                    "raw_no_business": 1413,
                    "deviation_friendly": "0s",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "0s",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "23m:33s",
                    "median_raw": 1413,
                    "median_friendly_no_business": "23m:33s",
                    "median_raw_no_business": 1413,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "100%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 1,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "23m:33s",
                    "raw": 1413,
                    "friendly_no_business": "23m:33s",
                    "raw_no_business": 1413,
                    "deviation_friendly": "0s",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "0s",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "23m:33s",
                    "median_raw": 1413,
                    "median_friendly_no_business": "23m:33s",
                    "median_raw_no_business": 1413,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "100%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 1,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 4,
                    "internal": 0,
                    "inbound": 4,
                    "outbound": 0,
                    "sent_internally": 3,
                    "await_customer": 1,
                    "await_agent": 0,
                    "closed": 0,
                    "have_replies": 1,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 25,
                        "numerator": 1,
                        "denominator": 4
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.5,
                    "messages_received_per_conversations_avg": 0.3,
                    "messages_sent_per_conversations_avg": 1.3
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 1,
                        "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
                    },
                    "sent": {
                        "count": 5,
                        "initial": 0,
                        "replies": 1,
                        "forward": 4,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "10m:42s",
                    "raw": 642,
                    "friendly_no_business": "22m:36s",
                    "raw_no_business": 1356,
                    "deviation_friendly": "0s",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "0s",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "10m:42s",
                    "median_raw": 642,
                    "median_friendly_no_business": "22m:36s",
                    "median_raw_no_business": 1356,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "100%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 1,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "overallTTF": {
                    "friendly": "1h:58m",
                    "raw": 7125,
                    "friendly_no_business": "1h:58m",
                    "raw_no_business": 7125
                },
                "overallTTC": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 3,
                    "internal": 0,
                    "inbound": 1,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 1,
                    "await_agent": 2,
                    "closed": 0,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 33.33,
                        "numerator": 1,
                        "denominator": 3
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1,
                    "messages_received_per_conversations_avg": 0.3,
                    "messages_sent_per_conversations_avg": 0.7
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 1,
                        "initial": 1,
                        "replies": 0,
                        "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
                    },
                    "sent": {
                        "count": 2,
                        "initial": 2,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": []
                    }
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 3,
                    "internal": 0,
                    "inbound": 3,
                    "outbound": 0,
                    "sent_internally": 2,
                    "await_customer": 0,
                    "await_agent": 1,
                    "closed": 0,
                    "have_replies": 3,
                    "have_initial_replies": 3,
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 3
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1,
                    "messages_received_per_conversations_avg": 0,
                    "messages_sent_per_conversations_avg": 1
                },
                "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,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 3,
                        "initial": 0,
                        "replies": 3,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 3,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "30m:33s",
                    "raw": 1833,
                    "friendly_no_business": "30m:33s",
                    "raw_no_business": 1833,
                    "deviation_friendly": "8m:15s",
                    "deviation_raw": 495,
                    "deviation_friendly_no_business": "8m:15s",
                    "deviation_raw_no_business": 495,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "21m:45s",
                    "median_raw_no_business": 1305,
                    "consistency_score": "62.05%",
                    "consistency_score_no_business": "62.05%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 3,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "30m:33s",
                    "raw": 1833,
                    "friendly_no_business": "30m:33s",
                    "raw_no_business": 1833,
                    "deviation_friendly": "8m:15s",
                    "deviation_raw": 495,
                    "deviation_friendly_no_business": "8m:15s",
                    "deviation_raw_no_business": 495,
                    "median_friendly": "21m:45s",
                    "median_raw": 1305,
                    "median_friendly_no_business": "21m:45s",
                    "median_raw_no_business": 1305,
                    "consistency_score": "62.05%",
                    "consistency_score_no_business": "62.05%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 3,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 3,
                    "internal": 0,
                    "inbound": 2,
                    "outbound": 1,
                    "sent_internally": 0,
                    "await_customer": 2,
                    "await_agent": 1,
                    "closed": 0,
                    "have_replies": 3,
                    "have_initial_replies": 3,
                    "handledRate": {
                        "rate": 66.67,
                        "numerator": 2,
                        "denominator": 3
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 2.3,
                    "messages_received_per_conversations_avg": 1.3,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 4,
                        "initial": 2,
                        "replies": 2,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 1,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 3,
                        "initial": 1,
                        "replies": 2,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 2,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3m:46s",
                    "raw": 226,
                    "friendly_no_business": "7m:3s",
                    "raw_no_business": 423,
                    "deviation_friendly": "3m:46s",
                    "deviation_raw": 226,
                    "deviation_friendly_no_business": "3m:23s",
                    "deviation_raw_no_business": 203,
                    "median_friendly": "0s",
                    "median_raw": 0,
                    "median_friendly_no_business": "3m:40s",
                    "median_raw_no_business": 220,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "7.73%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "3m:46s",
                    "raw": 226,
                    "friendly_no_business": "7m:3s",
                    "raw_no_business": 423,
                    "deviation_friendly": "3m:46s",
                    "deviation_raw": 226,
                    "deviation_friendly_no_business": "3m:23s",
                    "deviation_raw_no_business": 203,
                    "median_friendly": "0s",
                    "median_raw": 0,
                    "median_friendly_no_business": "3m:40s",
                    "median_raw_no_business": 220,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "7.73%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 2,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 2,
                    "internal": 0,
                    "inbound": 0,
                    "outbound": 2,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 2,
                    "closed": 0,
                    "have_replies": 0,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 2
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1,
                    "messages_received_per_conversations_avg": 0,
                    "messages_sent_per_conversations_avg": 1
                },
                "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,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 2,
                        "initial": 2,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": []
                    }
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 2,
                    "internal": 0,
                    "inbound": 2,
                    "outbound": 0,
                    "sent_internally": 2,
                    "await_customer": 0,
                    "await_agent": 0,
                    "closed": 0,
                    "have_replies": 1,
                    "have_initial_replies": 0,
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 2
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.5,
                    "messages_received_per_conversations_avg": 0.5,
                    "messages_sent_per_conversations_avg": 1
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 1,
                        "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
                    },
                    "sent": {
                        "count": 2,
                        "initial": 0,
                        "replies": 0,
                        "forward": 2,
                        "follow_up": 0,
                        "initial_replies": 0,
                        "dailyStats": []
                    }
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 0
                },
                "overallTTF": {
                    "friendly": "8h:1m",
                    "raw": 28861,
                    "friendly_no_business": "46h:13m",
                    "raw_no_business": 166416
                },
                "overallTTC": {
                    "friendly": "N/A",
                    "raw": null,
                    "friendly_no_business": "N/A",
                    "raw_no_business": null,
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            },
            {
                "name": "[email protected]",
                "threads": {
                    "total": 2,
                    "internal": 0,
                    "inbound": 2,
                    "outbound": 0,
                    "sent_internally": 0,
                    "await_customer": 0,
                    "await_agent": 2,
                    "closed": 0,
                    "have_replies": 1,
                    "have_initial_replies": 1,
                    "handledRate": {
                        "rate": 0,
                        "numerator": 0,
                        "denominator": 2
                    },
                    "top_labels": [],
                    "messages_per_conversations_avg": 1.5,
                    "messages_received_per_conversations_avg": 1,
                    "messages_sent_per_conversations_avg": 0.5
                },
                "messages": {
                    "count": 0,
                    "initial": 0,
                    "replies": 0,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 2,
                        "initial": 2,
                        "replies": 0,
                        "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
                    },
                    "sent": {
                        "count": 1,
                        "initial": 0,
                        "replies": 1,
                        "forward": 0,
                        "follow_up": 0,
                        "initial_replies": 1,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "22m:51s",
                    "raw": 1371,
                    "friendly_no_business": "22m:51s",
                    "raw_no_business": 1371,
                    "deviation_friendly": "0s",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "0s",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "22m:51s",
                    "median_raw": 1371,
                    "median_friendly_no_business": "22m:51s",
                    "median_raw_no_business": 1371,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "100%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 1,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "initialTTR": {
                    "friendly": "22m:51s",
                    "raw": 1371,
                    "friendly_no_business": "22m:51s",
                    "raw_no_business": 1371,
                    "deviation_friendly": "0s",
                    "deviation_raw": 0,
                    "deviation_friendly_no_business": "0s",
                    "deviation_raw_no_business": 0,
                    "median_friendly": "22m:51s",
                    "median_raw": 1371,
                    "median_friendly_no_business": "22m:51s",
                    "median_raw_no_business": 1371,
                    "consistency_score": "100%",
                    "consistency_score_no_business": "100%",
                    "percentileRanks": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 100
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 100
                        }
                    ],
                    "within_sla": 1,
                    "within_sla_percentage_friendly": 100,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0,
                    "excluded_from_sla": 0
                },
                "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": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "percentileRanksRaw": [
                        {
                            "count": 0,
                            "key": "1h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "2h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "4h:0m",
                            "value": 0
                        },
                        {
                            "count": 0,
                            "key": "8h:0m",
                            "value": 0
                        }
                    ],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A"
                }
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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": 23,
        "last_page_url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=23",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=22",
                "label": "22",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=23",
                "label": "23",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=2",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "https://portal.timetoreply.com/api/reports/sla?model=My%20Company&model_type=Internal&model_com=1&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=2",
        "path": "https://portal.timetoreply.com/api/reports/sla",
        "per_page": 15,
        "prev_page_url": null,
        "to": 15,
        "total": 345
    },
    "args": {
        "model": {
            "icon": "building",
            "id": null,
            "model_type": "Internal",
            "name": "My Company",
            "value": "My Company"
        },
        "modelCom": {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        "init_ttr_goal": 7200,
        "overall_ttr_goal": 7200,
        "overall_ttc_goal": 7200
    },
    "mailbox_names": {
        "data": {
            "[email protected]": "Nicolette Reinger",
            "[email protected]": "Mac Stoltenberg",
            "[email protected]": "Muriel McKenzie",
            "[email protected]": "US Support",
            "[email protected]": "EU Support",
            "[email protected]": "Hubspot Customer Group",
            "[email protected]": "Hubspot Customer Group",
            "[email protected]": "Hubspot Customer Group",
            "[email protected]": "Shaina Williamson",
            "[email protected]": "Hubspot Customer Group",
            "[email protected]": "EU Sales",
            "[email protected]": "Hubspot Customer Group",
            "[email protected]": "Hubspot Customer Group",
            "[email protected]": "Deondre Koss",
            "[email protected]": "Hubspot Customer Group"
        },
        "enabled": false
    },
    "show_comparisons_in_leaderboard": true,
    "company_goals": {
        "first_reply_time_goal": 7200,
        "first_reply_time_goal_bands": [],
        "overall_reply_time_goal": 14400,
        "overall_reply_time_goal_bands": [],
        "time_to_close_goal": 86400,
        "time_to_close_goal_bands": []
    }
}
 

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  

The ID, 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: 1

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": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/trend';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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',
            '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=1&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&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]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 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]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 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]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 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]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 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]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 4
        },
        "initialTTR.raw": {
            "title": "Avg. First Reply Time",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "sales,success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 5
        },
        "overallTTR.raw": {
            "title": "Avg. Overall Reply Time",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 6
        },
        "overallTTC.raw": {
            "title": "Avg. Time To Close",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 7
        },
        "initialTTR.deviation_raw": {
            "title": "Deviation First Reply Time",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "sales,success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 8
        },
        "overallTTR.deviation_raw": {
            "title": "Deviation Overall Reply Time",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 0
        },
        "initialTTR.median_raw": {
            "title": "Median First Reply Time",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "sales,success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 1
        },
        "overallTTR.median_raw": {
            "title": "Median Overall Reply Time",
            "type": "replyTime",
            "data": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null,
                        null
                    ]
                }
            },
            "product_levels": "success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 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": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "sales,success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 3
        },
        "threads.total": {
            "title": "Conversations",
            "type": "number",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "sales,success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 4
        },
        "threads.success_rate": {
            "title": "Contact Success Rate",
            "type": "percentage",
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "agentData": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "sales,ignite,starter,pro,elite,enterprise,onprem",
            "color": 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": {
                "[email protected]": {
                    "color": "#f2ffc2",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                },
                "[email protected]": {
                    "color": "#f604f1",
                    "data": [
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0,
                        0
                    ]
                }
            },
            "product_levels": "sales,ignite,starter,pro,elite,enterprise,onprem",
            "color": 7
        },
        "threads.labels": {
            "title": "Labels",
            "type": "labels",
            "data": [],
            "agentData": [],
            "product_levels": "sales,success,ignite,starter,pro,elite,enterprise,onprem",
            "color": 8
        }
    },
    "dates": [
        "Feb 2019",
        "Mar 2019",
        "Apr 2019",
        "May 2019",
        "Jun 2019",
        "Jul 2019",
        "Aug 2019",
        "Sep 2019",
        "Oct 2019",
        "Nov 2019",
        "Dec 2019",
        "Jan to date"
    ],
    "total": 5,
    "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  

The ID, 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: 1

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": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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",
    "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();
$url = 'https://portal.timetoreply.com/api/reports/contact';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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',
            '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=1&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&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: []
 

{
    "emails": {
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 118,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 20,
                        "await_agent": 31,
                        "closed": 19,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 33.05,
                            "numerator": 39,
                            "denominator": 118
                        },
                        "top_labels": [],
                        "messages_per_conversations_avg": 1.1,
                        "messages_received_per_conversations_avg": 0.6,
                        "messages_sent_per_conversations_avg": 0.5
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 74,
                            "initial": 0,
                            "replies": 23,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 9,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        },
                        "sent": {
                            "count": 59,
                            "initial": 0,
                            "replies": 28,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 18,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "2h:7m",
                        "raw": 7621,
                        "friendly_no_business": "6h:14m",
                        "raw_no_business": 22455,
                        "deviation_friendly": "14m:12s",
                        "deviation_raw": 852,
                        "deviation_friendly_no_business": "14m:12s",
                        "deviation_raw_no_business": 852,
                        "median_friendly": "24m:52s",
                        "median_raw": 1492,
                        "median_friendly_no_business": "24m:52s",
                        "median_raw_no_business": 1492,
                        "consistency_score": "42.89%",
                        "consistency_score_no_business": "42.89%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 28
                    },
                    "initialTTR": {
                        "friendly": "25m:48s",
                        "raw": 1548,
                        "friendly_no_business": "25m:48s",
                        "raw_no_business": 1548,
                        "deviation_friendly": "13m:50s",
                        "deviation_raw": 830,
                        "deviation_friendly_no_business": "13m:50s",
                        "deviation_raw_no_business": 830,
                        "median_friendly": "22m:20s",
                        "median_raw": 1340,
                        "median_friendly_no_business": "22m:20s",
                        "median_raw_no_business": 1340,
                        "consistency_score": "38.06%",
                        "consistency_score_no_business": "38.06%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 18
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "overallTTC": {
                        "friendly": "4h:53m",
                        "raw": 17635,
                        "friendly_no_business": "16h:47m",
                        "raw_no_business": 60449,
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0
                    }
                },
                {
                    "name": "[email protected]",
                    "threads": {
                        "total": 83,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 12,
                        "await_agent": 15,
                        "closed": 18,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 36.14,
                            "numerator": 30,
                            "denominator": 83
                        },
                        "top_labels": [],
                        "messages_per_conversations_avg": 1.5,
                        "messages_received_per_conversations_avg": 0.6,
                        "messages_sent_per_conversations_avg": 0.9
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 53,
                            "initial": 0,
                            "replies": 25,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 16,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        },
                        "sent": {
                            "count": 73,
                            "initial": 0,
                            "replies": 22,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 9,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "2h:20m",
                        "raw": 8410,
                        "friendly_no_business": "8h:11m",
                        "raw_no_business": 29512,
                        "deviation_friendly": "10m:58s",
                        "deviation_raw": 658,
                        "deviation_friendly_no_business": "10m:58s",
                        "deviation_raw_no_business": 658,
                        "median_friendly": "16m:12s",
                        "median_raw": 972,
                        "median_friendly_no_business": "16m:12s",
                        "median_raw_no_business": 972,
                        "consistency_score": "32.33%",
                        "consistency_score_no_business": "32.34%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 22
                    },
                    "initialTTR": {
                        "friendly": "14m:45s",
                        "raw": 885,
                        "friendly_no_business": "14m:45s",
                        "raw_no_business": 885,
                        "deviation_friendly": "6m:32s",
                        "deviation_raw": 392,
                        "deviation_friendly_no_business": "6m:32s",
                        "deviation_raw_no_business": 392,
                        "median_friendly": "6m:33s",
                        "median_raw": 393,
                        "median_friendly_no_business": "6m:33s",
                        "median_raw_no_business": 393,
                        "consistency_score": "0.41%",
                        "consistency_score_no_business": "0.41%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 9
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "overallTTC": {
                        "friendly": "5h:13m",
                        "raw": 18782,
                        "friendly_no_business": "20h:21m",
                        "raw_no_business": 73297,
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0
                    }
                }
            ],
            "first_page_url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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": 173,
            "last_page_url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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=173",
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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=172",
                    "label": "172",
                    "active": false
                },
                {
                    "url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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=173",
                    "label": "173",
                    "active": false
                },
                {
                    "url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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 »",
                    "active": false
                }
            ],
            "next_page_url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact",
            "per_page": 2,
            "prev_page_url": null,
            "to": 2,
            "total": 345
        },
        "totals": {
            "name": null,
            "threads.total": 202,
            "threads.await_customer": 41,
            "threads.await_agent": 59,
            "messages.received.count": 266,
            "messages.sent.count": 309,
            "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"
        }
    },
    "domains": {
        "data": {
            "current_page": 1,
            "data": [
                {
                    "name": "timetoreply.com",
                    "threads": {
                        "total": 202,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 41,
                        "await_agent": 59,
                        "closed": 34,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 37.13,
                            "numerator": 75,
                            "denominator": 202
                        },
                        "top_labels": [],
                        "messages_per_conversations_avg": 1.9,
                        "messages_received_per_conversations_avg": 0.9,
                        "messages_sent_per_conversations_avg": 1
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 175,
                            "initial": 0,
                            "replies": 72,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 41,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        },
                        "sent": {
                            "count": 211,
                            "initial": 0,
                            "replies": 82,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 51,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "1h:42m",
                        "raw": 6131,
                        "friendly_no_business": "5h:7m",
                        "raw_no_business": 18431,
                        "deviation_friendly": "15m:11s",
                        "deviation_raw": 911,
                        "deviation_friendly_no_business": "15m:28s",
                        "deviation_raw_no_business": 928,
                        "median_friendly": "21m:45s",
                        "median_raw": 1305,
                        "median_friendly_no_business": "22m:37s",
                        "median_raw_no_business": 1357,
                        "consistency_score": "30.19%",
                        "consistency_score_no_business": "31.61%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 82
                    },
                    "initialTTR": {
                        "friendly": "1h:30m",
                        "raw": 5437,
                        "friendly_no_business": "3h:2m",
                        "raw_no_business": 10940,
                        "deviation_friendly": "15m:39s",
                        "deviation_raw": 939,
                        "deviation_friendly_no_business": "18m:18s",
                        "deviation_raw_no_business": 1098,
                        "median_friendly": "22m:10s",
                        "median_raw": 1330,
                        "median_friendly_no_business": "24m:52s",
                        "median_raw_no_business": 1492,
                        "consistency_score": "29.4%",
                        "consistency_score_no_business": "26.41%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 51
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "overallTTC": {
                        "friendly": "5h:43m",
                        "raw": 20593,
                        "friendly_no_business": "22h:53m",
                        "raw_no_business": 82404,
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0
                    }
                },
                {
                    "name": "yahoo.com",
                    "threads": {
                        "total": 9,
                        "internal": 0,
                        "inbound": 0,
                        "outbound": 0,
                        "sent_internally": 0,
                        "await_customer": 3,
                        "await_agent": 5,
                        "closed": 1,
                        "have_replies": 0,
                        "have_initial_replies": 0,
                        "handledRate": {
                            "rate": 44.44,
                            "numerator": 4,
                            "denominator": 9
                        },
                        "top_labels": [],
                        "messages_per_conversations_avg": 1.9,
                        "messages_received_per_conversations_avg": 1,
                        "messages_sent_per_conversations_avg": 0.9
                    },
                    "messages": {
                        "count": 0,
                        "initial": 0,
                        "replies": 0,
                        "forward": 0,
                        "follow_up": 0,
                        "received": {
                            "count": 9,
                            "initial": 0,
                            "replies": 4,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 2,
                            "dailyStats": [],
                            "avg_wait": "N/A",
                            "avg_wait_raw": null,
                            "avg_first_wait": "N/A",
                            "avg_first_wait_raw": null
                        },
                        "sent": {
                            "count": 8,
                            "initial": 0,
                            "replies": 5,
                            "forward": 0,
                            "follow_up": 0,
                            "initial_replies": 2,
                            "dailyStats": []
                        }
                    },
                    "overallTTR": {
                        "friendly": "9h:20m",
                        "raw": 33645,
                        "friendly_no_business": "37h:56m",
                        "raw_no_business": 136578,
                        "deviation_friendly": "20m:55s",
                        "deviation_raw": 1255,
                        "deviation_friendly_no_business": "16m:14s",
                        "deviation_raw_no_business": 974,
                        "median_friendly": "20m:55s",
                        "median_raw": 1255,
                        "median_friendly_no_business": "20m:56s",
                        "median_raw_no_business": 1256,
                        "consistency_score": "0%",
                        "consistency_score_no_business": "22.44%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": null,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": null,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 5
                    },
                    "initialTTR": {
                        "friendly": "10m:28s",
                        "raw": 628,
                        "friendly_no_business": "12m:48s",
                        "raw_no_business": 768,
                        "deviation_friendly": "10m:28s",
                        "deviation_raw": 628,
                        "deviation_friendly_no_business": "8m:7s",
                        "deviation_raw_no_business": 487,
                        "median_friendly": "0s",
                        "median_raw": 0,
                        "median_friendly_no_business": "4m:41s",
                        "median_raw_no_business": 281,
                        "consistency_score": "100%",
                        "consistency_score_no_business": "0%",
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": "N/A",
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": "N/A",
                        "excluded_from_sla": 2
                    },
                    "overallTTF": {
                        "friendly": "N/A",
                        "raw": null,
                        "friendly_no_business": "N/A",
                        "raw_no_business": null
                    },
                    "overallTTC": {
                        "friendly": "1h:5m",
                        "raw": 3937,
                        "friendly_no_business": "1h:5m",
                        "raw_no_business": 3937,
                        "percentileRanks": [],
                        "percentileRanksRaw": [],
                        "within_sla": 0,
                        "within_sla_percentage_friendly": 0,
                        "sla_breach": 0,
                        "sla_breach_percentage_friendly": 0
                    }
                }
            ],
            "first_page_url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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": 60,
            "last_page_url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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=60",
            "links": [
                {
                    "url": null,
                    "label": "« Previous",
                    "active": false
                },
                {
                    "url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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=59",
                    "label": "59",
                    "active": false
                },
                {
                    "url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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=60",
                    "label": "60",
                    "active": false
                },
                {
                    "url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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 »",
                    "active": false
                }
            ],
            "next_page_url": "https://portal.timetoreply.com/api/reports/contact?model=My%20Company&model_type=Internal&model_com=1&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://portal.timetoreply.com/api/reports/contact",
            "per_page": 2,
            "prev_page_url": null,
            "to": 2,
            "total": 120
        },
        "totals": {
            "name": null,
            "threads.total": 202,
            "threads.await_customer": 41,
            "threads.await_agent": 59,
            "messages.received.count": 266,
            "messages.sent.count": 309,
            "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"
        }
    }
}
 

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  

The ID, 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: 1

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": "1",
    "model_type": "Team",
    "exclude_cc": "0",
    "model_com": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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();
$url = 'https://portal.timetoreply.com/api/reports/teams';
$response = $client->get(
    $url,
    [
        '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' => 'Team',
            'exclude_cc' => '0',
            'model_com' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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/teams?from=2020-01-01&to=2020-01-08&model=1&model_type=Team&exclude_cc=&model_com=1&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": {
        "threads": {
            "total": 119,
            "internal": 25,
            "inbound": 74,
            "outbound": 20,
            "sent_internally": 40,
            "await_customer": 26,
            "await_agent": 36,
            "closed": 17,
            "have_replies": 70,
            "have_replies_from_agents": 68,
            "have_no_replies_from_agents": 51,
            "completionRatio": {
                "ratio": 78.38,
                "numerator": 58,
                "denominator": 74
            },
            "handledRate": {
                "rate": 36.13,
                "numerator": 43,
                "denominator": 119
            },
            "top_labels": "",
            "messages_per_conversations_avg": 2.6,
            "messages_sent_per_conversations_avg": 1.5,
            "messages_received_per_conversations_avg": 1.1,
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 214,
            "initial": 0,
            "replies": 113,
            "forward": 0,
            "follow_up": 0,
            "received": {
                "count": 129,
                "initial": 37,
                "replies": 59,
                "forward": 29,
                "follow_up": 4,
                "initial_replies": 19,
                "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": 175,
                "initial": 41,
                "replies": 90,
                "forward": 43,
                "follow_up": 1,
                "initial_replies": 58,
                "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": "3h:3m",
            "raw": 11019,
            "friendly_no_business": "10h:47m",
            "raw_no_business": 38864,
            "deviation_friendly": "16m:56s",
            "deviation_raw": 1016,
            "deviation_friendly_no_business": "14m:38s",
            "deviation_raw_no_business": 878,
            "median_friendly": "24m:3s",
            "median_raw": 1443,
            "median_friendly_no_business": "24m:39s",
            "median_raw_no_business": 1479,
            "consistency_score": "29.59%",
            "consistency_score_no_business": "40.63%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 90
        },
        "initialTTR": {
            "friendly": "2h:26m",
            "raw": 8788,
            "friendly_no_business": "7h:37m",
            "raw_no_business": 27444,
            "deviation_friendly": "14m:58s",
            "deviation_raw": 898,
            "deviation_friendly_no_business": "14m:7s",
            "deviation_raw_no_business": 847,
            "median_friendly": "23m:7s",
            "median_raw": 1387,
            "median_friendly_no_business": "23m:34s",
            "median_raw_no_business": 1414,
            "consistency_score": "35.25%",
            "consistency_score_no_business": "40.13%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": 0,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 58
        },
        "overallTTF": {
            "friendly": "2h:5m",
            "raw": 7535,
            "friendly_no_business": "5h:41m",
            "raw_no_business": 20498
        },
        "overallTTC": {
            "friendly": "5h:25m",
            "raw": 19538,
            "friendly_no_business": "21h:30m",
            "raw_no_business": 77415,
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0
        },
        "dailyStats": [],
        "type": "stats"
    },
    "all_team_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "US Support Team",
                "threads": {
                    "total": 119,
                    "internal": 25,
                    "inbound": 74,
                    "outbound": 20,
                    "sent_internally": 40,
                    "await_customer": 26,
                    "await_agent": 36,
                    "closed": 17,
                    "have_replies": 70,
                    "have_initial_replies": null,
                    "handledRate": {
                        "rate": 36.13,
                        "numerator": 43,
                        "denominator": 119
                    },
                    "top_labels": [
                        ""
                    ],
                    "messages_per_conversations_avg": 2.6,
                    "messages_received_per_conversations_avg": 1.1,
                    "messages_sent_per_conversations_avg": 1.5
                },
                "messages": {
                    "count": 214,
                    "initial": 0,
                    "replies": 113,
                    "forward": 0,
                    "follow_up": 0,
                    "received": {
                        "count": 129,
                        "initial": 37,
                        "replies": 59,
                        "forward": 29,
                        "follow_up": 4,
                        "initial_replies": 19,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 175,
                        "initial": 41,
                        "replies": 90,
                        "forward": 43,
                        "follow_up": 1,
                        "initial_replies": 58,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "3h:3m",
                    "raw": 11019,
                    "friendly_no_business": "10h:47m",
                    "raw_no_business": 38864,
                    "deviation_friendly": "16m:56s",
                    "deviation_raw": 1016,
                    "deviation_friendly_no_business": "14m:38s",
                    "deviation_raw_no_business": 878,
                    "median_friendly": "24m:3s",
                    "median_raw": 1443,
                    "median_friendly_no_business": "24m:39s",
                    "median_raw_no_business": 1479,
                    "consistency_score": "29.59%",
                    "consistency_score_no_business": "40.63%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 90
                },
                "initialTTR": {
                    "friendly": "2h:26m",
                    "raw": 8788,
                    "friendly_no_business": "7h:37m",
                    "raw_no_business": 27444,
                    "deviation_friendly": "14m:58s",
                    "deviation_raw": 898,
                    "deviation_friendly_no_business": "14m:7s",
                    "deviation_raw_no_business": 847,
                    "median_friendly": "23m:7s",
                    "median_raw": 1387,
                    "median_friendly_no_business": "23m:34s",
                    "median_raw_no_business": 1414,
                    "consistency_score": "35.25%",
                    "consistency_score_no_business": "40.13%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 58
                },
                "overallTTF": {
                    "friendly": "2h:5m",
                    "raw": 7535,
                    "friendly_no_business": "5h:41m",
                    "raw_no_business": 20498
                },
                "overallTTC": {
                    "friendly": "5h:25m",
                    "raw": 19538,
                    "friendly_no_business": "21h:30m",
                    "raw_no_business": 77415,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                },
                "members": {
                    "current_page": 1,
                    "data": [
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 69,
                                "internal": 23,
                                "inbound": 31,
                                "outbound": 15,
                                "sent_internally": 28,
                                "await_customer": 14,
                                "await_agent": 16,
                                "closed": 11,
                                "have_replies": 35,
                                "have_initial_replies": 29,
                                "handledRate": {
                                    "rate": 36.23,
                                    "numerator": 25,
                                    "denominator": 69
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "CATEGORY_PERSONAL",
                                    "CATEGORY_PROMOTIONS",
                                    "CATEGORY_SOCIAL",
                                    "STARRED"
                                ],
                                "messages_per_conversations_avg": 1.9,
                                "messages_received_per_conversations_avg": 0.7,
                                "messages_sent_per_conversations_avg": 1.2
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 45,
                                    "initial": 14,
                                    "replies": 24,
                                    "forward": 7,
                                    "follow_up": 0,
                                    "initial_replies": 12,
                                    "dailyStats": [],
                                    "avg_wait": "40h:8m",
                                    "avg_wait_raw": 144536,
                                    "avg_first_wait": "22h:49m",
                                    "avg_first_wait_raw": 82157
                                },
                                "sent": {
                                    "count": 83,
                                    "initial": 29,
                                    "replies": 30,
                                    "forward": 23,
                                    "follow_up": 1,
                                    "initial_replies": 17,
                                    "dailyStats": []
                                }
                            },
                            "overallTTR": {
                                "friendly": "3h:20m",
                                "raw": 12045,
                                "friendly_no_business": "13h:4m",
                                "raw_no_business": 47044,
                                "deviation_friendly": "14m:19s",
                                "deviation_raw": 859,
                                "deviation_friendly_no_business": "13m:6s",
                                "deviation_raw_no_business": 786,
                                "median_friendly": "22m:52s",
                                "median_raw": 1372,
                                "median_friendly_no_business": "23m:7s",
                                "median_raw_no_business": 1387,
                                "consistency_score": "37.43%",
                                "consistency_score_no_business": "43.36%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 80
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 83.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 90
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 90
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 76.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 80
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 83.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 83.33
                                    }
                                ],
                                "within_sla": 25,
                                "within_sla_percentage_friendly": 83.33,
                                "sla_breach": 5,
                                "sla_breach_percentage_friendly": 16.67,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "initialTTR": {
                                "friendly": "5h:17m",
                                "raw": 19044,
                                "friendly_no_business": "17h:15m",
                                "raw_no_business": 62111,
                                "deviation_friendly": "21m:47s",
                                "deviation_raw": 1307,
                                "deviation_friendly_no_business": "21m:11s",
                                "deviation_raw_no_business": 1271,
                                "median_friendly": "23m:7s",
                                "median_raw": 1387,
                                "median_friendly_no_business": "23m:21s",
                                "median_raw_no_business": 1401,
                                "consistency_score": "5.76%",
                                "consistency_score_no_business": "9.28%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 73.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 80
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 80
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 80
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 73.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 73.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 80
                                    }
                                ],
                                "within_sla": 12,
                                "within_sla_percentage_friendly": 80,
                                "sla_breach": 3,
                                "sla_breach_percentage_friendly": 20,
                                "excluded_from_sla": 2,
                                "goal_status": null,
                                "goal": null
                            },
                            "overallTTF": {
                                "friendly": "1h:48m",
                                "raw": 6482,
                                "friendly_no_business": "4h:32m",
                                "raw_no_business": 16326
                            },
                            "overallTTC": {
                                "friendly": "7h:8m",
                                "raw": 25698,
                                "friendly_no_business": "26h:6m",
                                "raw_no_business": 93997,
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 72.73
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 90.91
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 63.64
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 72.73
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 81.82
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 90.91
                                    }
                                ],
                                "within_sla": 10,
                                "within_sla_percentage_friendly": 90.91,
                                "sla_breach": 1,
                                "sla_breach_percentage_friendly": 9.09,
                                "goal_status": null,
                                "goal": null
                            }
                        },
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 51,
                                "internal": 18,
                                "inbound": 26,
                                "outbound": 7,
                                "sent_internally": 25,
                                "await_customer": 7,
                                "await_agent": 10,
                                "closed": 9,
                                "have_replies": 30,
                                "have_initial_replies": 26,
                                "handledRate": {
                                    "rate": 31.37,
                                    "numerator": 16,
                                    "denominator": 51
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "IMPORTANT",
                                    "CATEGORY_SOCIAL",
                                    "STARRED",
                                    "CATEGORY_UPDATES"
                                ],
                                "messages_per_conversations_avg": 2.2,
                                "messages_received_per_conversations_avg": 1.1,
                                "messages_sent_per_conversations_avg": 1
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 58,
                                    "initial": 19,
                                    "replies": 22,
                                    "forward": 16,
                                    "follow_up": 1,
                                    "initial_replies": 5,
                                    "dailyStats": [],
                                    "avg_wait": "56h:7m",
                                    "avg_wait_raw": 202027,
                                    "avg_first_wait": "N/A",
                                    "avg_first_wait_raw": null
                                },
                                "sent": {
                                    "count": 52,
                                    "initial": 6,
                                    "replies": 30,
                                    "forward": 16,
                                    "follow_up": 0,
                                    "initial_replies": 21,
                                    "dailyStats": []
                                }
                            },
                            "overallTTR": {
                                "friendly": "2h:32m",
                                "raw": 9144,
                                "friendly_no_business": "8h:55m",
                                "raw_no_business": 32151,
                                "deviation_friendly": "19m:4s",
                                "deviation_raw": 1144,
                                "deviation_friendly_no_business": "13m:55s",
                                "deviation_raw_no_business": 835,
                                "median_friendly": "21m:45s",
                                "median_raw": 1305,
                                "median_friendly_no_business": "22m:20s",
                                "median_raw_no_business": 1340,
                                "consistency_score": "12.34%",
                                "consistency_score_no_business": "37.72%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 86.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 86.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 90
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 93.33
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 83.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 83.33
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 86.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 86.67
                                    }
                                ],
                                "within_sla": 26,
                                "within_sla_percentage_friendly": 86.67,
                                "sla_breach": 4,
                                "sla_breach_percentage_friendly": 13.33,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "initialTTR": {
                                "friendly": "31m:32s",
                                "raw": 1892,
                                "friendly_no_business": "33m:23s",
                                "raw_no_business": 2003,
                                "deviation_friendly": "12m:57s",
                                "deviation_raw": 777,
                                "deviation_friendly_no_business": "13m:24s",
                                "deviation_raw_no_business": 804,
                                "median_friendly": "21m:45s",
                                "median_raw": 1305,
                                "median_friendly_no_business": "22m:20s",
                                "median_raw_no_business": 1340,
                                "consistency_score": "40.46%",
                                "consistency_score_no_business": "40%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 95
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 95
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 95
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 95
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 95
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 95
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 19,
                                "within_sla_percentage_friendly": 95,
                                "sla_breach": 1,
                                "sla_breach_percentage_friendly": 5,
                                "excluded_from_sla": 1,
                                "goal_status": null,
                                "goal": null
                            },
                            "overallTTF": {
                                "friendly": "2h:41m",
                                "raw": 9703,
                                "friendly_no_business": "8h:32m",
                                "raw_no_business": 30770
                            },
                            "overallTTC": {
                                "friendly": "5h:34m",
                                "raw": 20068,
                                "friendly_no_business": "21h:38m",
                                "raw_no_business": 77915,
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 77.78
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 77.78
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 9,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "goal_status": null,
                                "goal": null
                            }
                        },
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 46,
                                "internal": 18,
                                "inbound": 26,
                                "outbound": 2,
                                "sent_internally": 22,
                                "await_customer": 10,
                                "await_agent": 10,
                                "closed": 4,
                                "have_replies": 34,
                                "have_initial_replies": 30,
                                "handledRate": {
                                    "rate": 30.43,
                                    "numerator": 14,
                                    "denominator": 46
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "STARRED",
                                    "CATEGORY_FORUMS",
                                    "CATEGORY_SOCIAL",
                                    "CATEGORY_PERSONAL"
                                ],
                                "messages_per_conversations_avg": 2,
                                "messages_received_per_conversations_avg": 1.1,
                                "messages_sent_per_conversations_avg": 0.9
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 51,
                                    "initial": 18,
                                    "replies": 24,
                                    "forward": 6,
                                    "follow_up": 3,
                                    "initial_replies": 10,
                                    "dailyStats": [],
                                    "avg_wait": "82h:30m",
                                    "avg_wait_raw": 297020,
                                    "avg_first_wait": "53h:45m",
                                    "avg_first_wait_raw": 193559
                                },
                                "sent": {
                                    "count": 40,
                                    "initial": 6,
                                    "replies": 30,
                                    "forward": 4,
                                    "follow_up": 0,
                                    "initial_replies": 20,
                                    "dailyStats": []
                                }
                            },
                            "overallTTR": {
                                "friendly": "3h:18m",
                                "raw": 11898,
                                "friendly_no_business": "10h:22m",
                                "raw_no_business": 37348,
                                "deviation_friendly": "18m:45s",
                                "deviation_raw": 1125,
                                "deviation_friendly_no_business": "15m:14s",
                                "deviation_raw_no_business": 914,
                                "median_friendly": "26m:38s",
                                "median_raw": 1598,
                                "median_friendly_no_business": "26m:38s",
                                "median_raw_no_business": 1598,
                                "consistency_score": "29.59%",
                                "consistency_score_no_business": "42.8%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 82.76
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 89.66
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 89.66
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 89.66
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 82.76
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 89.66
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 89.66
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 89.66
                                    }
                                ],
                                "within_sla": 26,
                                "within_sla_percentage_friendly": 89.66,
                                "sla_breach": 3,
                                "sla_breach_percentage_friendly": 10.34,
                                "excluded_from_sla": 1,
                                "goal_status": null,
                                "goal": null
                            },
                            "initialTTR": {
                                "friendly": "2h:12m",
                                "raw": 7949,
                                "friendly_no_business": "7h:27m",
                                "raw_no_business": 26854,
                                "deviation_friendly": "13m:31s",
                                "deviation_raw": 811,
                                "deviation_friendly_no_business": "13m:31s",
                                "deviation_raw_no_business": 811,
                                "median_friendly": "24m:55s",
                                "median_raw": 1495,
                                "median_friendly_no_business": "24m:55s",
                                "median_raw_no_business": 1495,
                                "consistency_score": "45.74%",
                                "consistency_score_no_business": "45.75%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 73.68
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 89.47
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 94.74
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 94.74
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 73.68
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 89.47
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 94.74
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 94.74
                                    }
                                ],
                                "within_sla": 17,
                                "within_sla_percentage_friendly": 89.47,
                                "sla_breach": 2,
                                "sla_breach_percentage_friendly": 10.53,
                                "excluded_from_sla": 1,
                                "goal_status": null,
                                "goal": null
                            },
                            "overallTTF": {
                                "friendly": "1h:27m",
                                "raw": 5225,
                                "friendly_no_business": "1h:38m",
                                "raw_no_business": 5891
                            },
                            "overallTTC": {
                                "friendly": "8h:12m",
                                "raw": 29551,
                                "friendly_no_business": "24h:5m",
                                "raw_no_business": 86746,
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 75
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 75
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 75
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 4,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "goal_status": null,
                                "goal": null
                            }
                        }
                    ],
                    "first_page_url": "https://portal.timetoreply.com/api/reports/teams?model=1&model_type=Team&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                    "from": 1,
                    "last_page": 1,
                    "last_page_url": "https://portal.timetoreply.com/api/reports/teams?model=1&model_type=Team&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                    "links": [
                        {
                            "url": null,
                            "label": "« Previous",
                            "active": false
                        },
                        {
                            "url": "https://portal.timetoreply.com/api/reports/teams?model=1&model_type=Team&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                            "label": "1",
                            "active": true
                        },
                        {
                            "url": null,
                            "label": "Next »",
                            "active": false
                        }
                    ],
                    "next_page_url": null,
                    "path": "https://portal.timetoreply.com/api/reports/teams",
                    "per_page": 25,
                    "prev_page_url": null,
                    "to": 3,
                    "total": 3
                }
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/reports/teams?model=1&model_type=Team&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/reports/teams?model=1&model_type=Team&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/teams?model=1&model_type=Team&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/reports/teams",
        "per_page": 2,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "args": {
        "model": {
            "id": 1,
            "name": "US Support Team",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "model_type": "Team",
            "icon": "handshake"
        },
        "modelCom": {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        }
    }
}
 

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  

The ID, Name of the team you want statistics for. Use the models endpoint to get a list. Example: 1

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: 1

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": "1",
    "model_type": "Group Mailbox",
    "exclude_cc": "0",
    "model_com": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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();
$url = 'https://portal.timetoreply.com/api/reports/group-mailboxes';
$response = $client->get(
    $url,
    [
        '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' => 'Group Mailbox',
            'exclude_cc' => '0',
            'model_com' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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/group-mailboxes?from=2020-01-01&to=2020-01-08&model=1&model_type=Group+Mailbox&exclude_cc=&model_com=1&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": {
        "threads": {
            "total": 16,
            "internal": 0,
            "inbound": 16,
            "outbound": 0,
            "sent_internally": 6,
            "await_customer": 4,
            "await_agent": 5,
            "closed": 1,
            "have_replies": 9,
            "have_replies_from_agents": 9,
            "have_no_replies_from_agents": 7,
            "completionRatio": {
                "ratio": 50,
                "numerator": 8,
                "denominator": 16
            },
            "handledRate": {
                "rate": 31.25,
                "numerator": 5,
                "denominator": 16
            },
            "top_labels": "",
            "messages_per_conversations_avg": 2.7,
            "messages_sent_per_conversations_avg": 1.3,
            "messages_received_per_conversations_avg": 1.4,
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 25,
            "initial": 2,
            "replies": 11,
            "forward": 12,
            "follow_up": 0,
            "received": {
                "count": 22,
                "initial": 2,
                "replies": 8,
                "forward": 12,
                "follow_up": 0,
                "initial_replies": 6,
                "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": 21,
                "initial": 0,
                "replies": 9,
                "forward": 12,
                "follow_up": 0,
                "initial_replies": 8,
                "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": "40m:53s",
            "raw": 2453,
            "friendly_no_business": "1h:10m",
            "raw_no_business": 4212,
            "deviation_friendly": "18m:52s",
            "deviation_raw": 1132,
            "deviation_friendly_no_business": "34m:27s",
            "deviation_raw_no_business": 2067,
            "median_friendly": "18m:53s",
            "median_raw": 1133,
            "median_friendly_no_business": "45m:24s",
            "median_raw_no_business": 2724,
            "consistency_score": "0.04%",
            "consistency_score_no_business": "24.12%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 9
        },
        "initialTTR": {
            "friendly": "43m:23s",
            "raw": 2603,
            "friendly_no_business": "1h:21m",
            "raw_no_business": 4865,
            "deviation_friendly": "10m:55s",
            "deviation_raw": 655,
            "deviation_friendly_no_business": "51m:58s",
            "deviation_raw_no_business": 3118,
            "median_friendly": "10m:55s",
            "median_raw": 655,
            "median_friendly_no_business": "55m:40s",
            "median_raw_no_business": 3340,
            "consistency_score": "0%",
            "consistency_score_no_business": "6.64%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": 0,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 8
        },
        "overallTTF": {
            "friendly": "2h:5m",
            "raw": 7534,
            "friendly_no_business": "4h:51m",
            "raw_no_business": 17505
        },
        "overallTTC": {
            "friendly": "14h:18m",
            "raw": 51505,
            "friendly_no_business": "46h:18m",
            "raw_no_business": 166705,
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": 0,
            "sla_breach": 0,
            "sla_breach_percentage_friendly": 0
        },
        "dailyStats": [],
        "type": "stats"
    },
    "all_group_mailbox_stats": {
        "current_page": 1,
        "data": [
            {
                "name": "US Support",
                "threads": {
                    "total": 16,
                    "internal": 0,
                    "inbound": 16,
                    "outbound": 0,
                    "sent_internally": 6,
                    "await_customer": 4,
                    "await_agent": 5,
                    "closed": 1,
                    "have_replies": 9,
                    "have_initial_replies": null,
                    "handledRate": {
                        "rate": 31.25,
                        "numerator": 5,
                        "denominator": 16
                    },
                    "top_labels": [
                        ""
                    ],
                    "messages_per_conversations_avg": 2.7,
                    "messages_received_per_conversations_avg": 1.4,
                    "messages_sent_per_conversations_avg": 1.3
                },
                "messages": {
                    "count": 25,
                    "initial": 2,
                    "replies": 11,
                    "forward": 12,
                    "follow_up": 0,
                    "received": {
                        "count": 22,
                        "initial": 2,
                        "replies": 8,
                        "forward": 12,
                        "follow_up": 0,
                        "initial_replies": 6,
                        "dailyStats": [],
                        "avg_wait": "N/A",
                        "avg_wait_raw": null,
                        "avg_first_wait": "N/A",
                        "avg_first_wait_raw": null
                    },
                    "sent": {
                        "count": 21,
                        "initial": 0,
                        "replies": 9,
                        "forward": 12,
                        "follow_up": 0,
                        "initial_replies": 8,
                        "dailyStats": []
                    }
                },
                "overallTTR": {
                    "friendly": "40m:53s",
                    "raw": 2453,
                    "friendly_no_business": "1h:10m",
                    "raw_no_business": 4212,
                    "deviation_friendly": "18m:52s",
                    "deviation_raw": 1132,
                    "deviation_friendly_no_business": "34m:27s",
                    "deviation_raw_no_business": 2067,
                    "median_friendly": "18m:53s",
                    "median_raw": 1133,
                    "median_friendly_no_business": "45m:24s",
                    "median_raw_no_business": 2724,
                    "consistency_score": "0.04%",
                    "consistency_score_no_business": "24.12%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": null,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": null,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 9
                },
                "initialTTR": {
                    "friendly": "43m:23s",
                    "raw": 2603,
                    "friendly_no_business": "1h:21m",
                    "raw_no_business": 4865,
                    "deviation_friendly": "10m:55s",
                    "deviation_raw": 655,
                    "deviation_friendly_no_business": "51m:58s",
                    "deviation_raw_no_business": 3118,
                    "median_friendly": "10m:55s",
                    "median_raw": 655,
                    "median_friendly_no_business": "55m:40s",
                    "median_raw_no_business": 3340,
                    "consistency_score": "0%",
                    "consistency_score_no_business": "6.64%",
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": "N/A",
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": "N/A",
                    "excluded_from_sla": 8
                },
                "overallTTF": {
                    "friendly": "2h:5m",
                    "raw": 7534,
                    "friendly_no_business": "4h:51m",
                    "raw_no_business": 17505
                },
                "overallTTC": {
                    "friendly": "14h:18m",
                    "raw": 51505,
                    "friendly_no_business": "46h:18m",
                    "raw_no_business": 166705,
                    "percentileRanks": [],
                    "percentileRanksRaw": [],
                    "within_sla": 0,
                    "within_sla_percentage_friendly": 0,
                    "sla_breach": 0,
                    "sla_breach_percentage_friendly": 0
                },
                "members": {
                    "current_page": 1,
                    "data": [
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 8,
                                "internal": 0,
                                "inbound": 8,
                                "outbound": 0,
                                "sent_internally": 4,
                                "await_customer": 1,
                                "await_agent": 2,
                                "closed": 1,
                                "have_replies": 3,
                                "have_initial_replies": 3,
                                "handledRate": {
                                    "rate": 25,
                                    "numerator": 2,
                                    "denominator": 8
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "IMPORTANT",
                                    "CATEGORY_UPDATES",
                                    "CATEGORY_FORUMS",
                                    "CATEGORY_SOCIAL"
                                ],
                                "messages_per_conversations_avg": 2.3,
                                "messages_received_per_conversations_avg": 1.1,
                                "messages_sent_per_conversations_avg": 1.1
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 9,
                                    "initial": 0,
                                    "replies": 1,
                                    "forward": 8,
                                    "follow_up": 0,
                                    "initial_replies": 0,
                                    "dailyStats": [],
                                    "avg_wait": "6h:10m",
                                    "avg_wait_raw": 22251,
                                    "avg_first_wait": "N/A",
                                    "avg_first_wait_raw": null
                                },
                                "sent": {
                                    "count": 9,
                                    "initial": 0,
                                    "replies": 3,
                                    "forward": 6,
                                    "follow_up": 0,
                                    "initial_replies": 3,
                                    "dailyStats": []
                                }
                            },
                            "overallTTR": {
                                "friendly": "37m:13s",
                                "raw": 2233,
                                "friendly_no_business": "38m:27s",
                                "raw_no_business": 2307,
                                "deviation_friendly": "24s",
                                "deviation_raw": 24,
                                "deviation_friendly_no_business": "24s",
                                "deviation_raw_no_business": 24,
                                "median_friendly": "55m:38s",
                                "median_raw": 3338,
                                "median_friendly_no_business": "55m:40s",
                                "median_raw_no_business": 3340,
                                "consistency_score": "99.28%",
                                "consistency_score_no_business": "99.28%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 3,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "initialTTR": {
                                "friendly": "37m:13s",
                                "raw": 2233,
                                "friendly_no_business": "38m:27s",
                                "raw_no_business": 2307,
                                "deviation_friendly": "24s",
                                "deviation_raw": 24,
                                "deviation_friendly_no_business": "24s",
                                "deviation_raw_no_business": 24,
                                "median_friendly": "55m:38s",
                                "median_raw": 3338,
                                "median_friendly_no_business": "55m:40s",
                                "median_raw_no_business": 3340,
                                "consistency_score": "99.28%",
                                "consistency_score_no_business": "99.28%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 3,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "overallTTF": {
                                "friendly": "1h:49m",
                                "raw": 6578,
                                "friendly_no_business": "1h:49m",
                                "raw_no_business": 6578
                            },
                            "overallTTC": {
                                "friendly": "14h:18m",
                                "raw": 51505,
                                "friendly_no_business": "46h:18m",
                                "raw_no_business": 166705,
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 1,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "goal_status": null,
                                "goal": null
                            }
                        },
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 8,
                                "internal": 0,
                                "inbound": 8,
                                "outbound": 0,
                                "sent_internally": 0,
                                "await_customer": 3,
                                "await_agent": 5,
                                "closed": 0,
                                "have_replies": 6,
                                "have_initial_replies": 6,
                                "handledRate": {
                                    "rate": 37.5,
                                    "numerator": 3,
                                    "denominator": 8
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "CATEGORY_SOCIAL",
                                    "IMPORTANT",
                                    "INBOX"
                                ],
                                "messages_per_conversations_avg": 1,
                                "messages_received_per_conversations_avg": 1,
                                "messages_sent_per_conversations_avg": 0
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 8,
                                    "initial": 2,
                                    "replies": 6,
                                    "forward": 0,
                                    "follow_up": 0,
                                    "initial_replies": 6,
                                    "dailyStats": [],
                                    "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,
                                    "dailyStats": []
                                }
                            },
                            "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": "N/A",
                                "sla_breach": null,
                                "sla_breach_percentage_friendly": "N/A",
                                "excluded_from_sla": null,
                                "goal_status": null,
                                "goal": 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": null,
                                "within_sla_percentage_friendly": "N/A",
                                "sla_breach": null,
                                "sla_breach_percentage_friendly": "N/A",
                                "excluded_from_sla": null,
                                "goal_status": null,
                                "goal": null
                            },
                            "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": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 0
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 0
                                    }
                                ],
                                "within_sla": 0,
                                "within_sla_percentage_friendly": "N/A",
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": "N/A",
                                "goal_status": null,
                                "goal": null
                            }
                        },
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 6,
                                "internal": 0,
                                "inbound": 6,
                                "outbound": 0,
                                "sent_internally": 2,
                                "await_customer": 2,
                                "await_agent": 1,
                                "closed": 1,
                                "have_replies": 3,
                                "have_initial_replies": 2,
                                "handledRate": {
                                    "rate": 50,
                                    "numerator": 3,
                                    "denominator": 6
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "CATEGORY_PERSONAL",
                                    "CATEGORY_PROMOTIONS",
                                    "CATEGORY_SOCIAL",
                                    "IMPORTANT"
                                ],
                                "messages_per_conversations_avg": 2,
                                "messages_received_per_conversations_avg": 0.7,
                                "messages_sent_per_conversations_avg": 1.3
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 4,
                                    "initial": 0,
                                    "replies": 0,
                                    "forward": 4,
                                    "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
                                },
                                "sent": {
                                    "count": 8,
                                    "initial": 0,
                                    "replies": 3,
                                    "forward": 5,
                                    "follow_up": 0,
                                    "initial_replies": 2,
                                    "dailyStats": []
                                }
                            },
                            "overallTTR": {
                                "friendly": "9m:56s",
                                "raw": 596,
                                "friendly_no_business": "1h:36m",
                                "raw_no_business": 5768,
                                "deviation_friendly": "7m:57s",
                                "deviation_raw": 477,
                                "deviation_friendly_no_business": "7m:57s",
                                "deviation_raw_no_business": 477,
                                "median_friendly": "10m:55s",
                                "median_raw": 655,
                                "median_friendly_no_business": "18m:53s",
                                "median_raw_no_business": 1133,
                                "consistency_score": "27.18%",
                                "consistency_score_no_business": "57.88%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 3,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "initialTTR": {
                                "friendly": "5m:28s",
                                "raw": 328,
                                "friendly_no_business": "2h:14m",
                                "raw_no_business": 8086,
                                "deviation_friendly": "5m:28s",
                                "deviation_raw": 328,
                                "deviation_friendly_no_business": "2h:3m",
                                "deviation_raw_no_business": 7431,
                                "median_friendly": "0s",
                                "median_raw": 0,
                                "median_friendly_no_business": "10m:55s",
                                "median_raw_no_business": 655,
                                "consistency_score": "100%",
                                "consistency_score_no_business": "0%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 2,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "overallTTF": {
                                "friendly": "2h:44m",
                                "raw": 9886,
                                "friendly_no_business": "9h:17m",
                                "raw_no_business": 33477
                            },
                            "overallTTC": {
                                "friendly": "14h:18m",
                                "raw": 51505,
                                "friendly_no_business": "46h:18m",
                                "raw_no_business": 166705,
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 1,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "goal_status": null,
                                "goal": null
                            }
                        },
                        {
                            "name": "[email protected]",
                            "threads": {
                                "total": 4,
                                "internal": 0,
                                "inbound": 4,
                                "outbound": 0,
                                "sent_internally": 1,
                                "await_customer": 1,
                                "await_agent": 2,
                                "closed": 0,
                                "have_replies": 3,
                                "have_initial_replies": 3,
                                "handledRate": {
                                    "rate": 25,
                                    "numerator": 1,
                                    "denominator": 4
                                },
                                "top_labels": [
                                    "UNREAD",
                                    "Baby & Jewelry",
                                    "CATEGORY_FORUMS",
                                    "CATEGORY_UPDATES",
                                    "STARRED"
                                ],
                                "messages_per_conversations_avg": 1.3,
                                "messages_received_per_conversations_avg": 0.3,
                                "messages_sent_per_conversations_avg": 1
                            },
                            "messages": {
                                "count": 0,
                                "initial": 0,
                                "replies": 0,
                                "forward": 0,
                                "follow_up": 0,
                                "received": {
                                    "count": 1,
                                    "initial": 0,
                                    "replies": 1,
                                    "forward": 0,
                                    "follow_up": 0,
                                    "initial_replies": 0,
                                    "dailyStats": [],
                                    "avg_wait": "97h:46m",
                                    "avg_wait_raw": 351992,
                                    "avg_first_wait": "N/A",
                                    "avg_first_wait_raw": null
                                },
                                "sent": {
                                    "count": 4,
                                    "initial": 0,
                                    "replies": 3,
                                    "forward": 1,
                                    "follow_up": 0,
                                    "initial_replies": 3,
                                    "dailyStats": []
                                }
                            },
                            "overallTTR": {
                                "friendly": "1h:15m",
                                "raw": 4529,
                                "friendly_no_business": "1h:16m",
                                "raw_no_business": 4562,
                                "deviation_friendly": "45m:22s",
                                "deviation_raw": 2722,
                                "deviation_friendly_no_business": "43m:42s",
                                "deviation_raw_no_business": 2622,
                                "median_friendly": "45m:22s",
                                "median_raw": 2722,
                                "median_friendly_no_business": "45m:24s",
                                "median_raw_no_business": 2724,
                                "consistency_score": "0%",
                                "consistency_score_no_business": "3.74%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 66.67
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "16h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 3,
                                "within_sla_percentage_friendly": 100,
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": 0,
                                "excluded_from_sla": 0,
                                "goal_status": null,
                                "goal": null
                            },
                            "initialTTR": {
                                "friendly": "1h:30m",
                                "raw": 5433,
                                "friendly_no_business": "1h:31m",
                                "raw_no_business": 5483,
                                "deviation_friendly": "1h:30m",
                                "deviation_raw": 5433,
                                "deviation_friendly_no_business": "1h:29m",
                                "deviation_raw_no_business": 5383,
                                "median_friendly": "0s",
                                "median_raw": 0,
                                "median_friendly_no_business": "1m:40s",
                                "median_raw_no_business": 100,
                                "consistency_score": "100%",
                                "consistency_score_no_business": "0%",
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "1h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "2h:0m",
                                        "value": 50
                                    },
                                    {
                                        "count": 0,
                                        "key": "4h:0m",
                                        "value": 100
                                    },
                                    {
                                        "count": 0,
                                        "key": "8h:0m",
                                        "value": 100
                                    }
                                ],
                                "within_sla": 1,
                                "within_sla_percentage_friendly": 50,
                                "sla_breach": 1,
                                "sla_breach_percentage_friendly": 50,
                                "excluded_from_sla": 1,
                                "goal_status": null,
                                "goal": null
                            },
                            "overallTTF": {
                                "friendly": "25m:6s",
                                "raw": 1506,
                                "friendly_no_business": "53m:23s",
                                "raw_no_business": 3203
                            },
                            "overallTTC": {
                                "friendly": "N/A",
                                "raw": null,
                                "friendly_no_business": "N/A",
                                "raw_no_business": null,
                                "percentileRanks": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 0
                                    }
                                ],
                                "percentileRanksRaw": [
                                    {
                                        "count": 0,
                                        "key": "12h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "24h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "48h:0m",
                                        "value": 0
                                    },
                                    {
                                        "count": 0,
                                        "key": "96h:0m",
                                        "value": 0
                                    }
                                ],
                                "within_sla": 0,
                                "within_sla_percentage_friendly": "N/A",
                                "sla_breach": 0,
                                "sla_breach_percentage_friendly": "N/A",
                                "goal_status": null,
                                "goal": null
                            }
                        }
                    ],
                    "first_page_url": "https://portal.timetoreply.com/api/reports/group-mailboxes?model=1&model_type=Group%20Mailbox&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                    "from": 1,
                    "last_page": 1,
                    "last_page_url": "https://portal.timetoreply.com/api/reports/group-mailboxes?model=1&model_type=Group%20Mailbox&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                    "links": [
                        {
                            "url": null,
                            "label": "« Previous",
                            "active": false
                        },
                        {
                            "url": "https://portal.timetoreply.com/api/reports/group-mailboxes?model=1&model_type=Group%20Mailbox&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                            "label": "1",
                            "active": true
                        },
                        {
                            "url": null,
                            "label": "Next »",
                            "active": false
                        }
                    ],
                    "next_page_url": null,
                    "path": "https://portal.timetoreply.com/api/reports/group-mailboxes",
                    "per_page": 25,
                    "prev_page_url": null,
                    "to": 4,
                    "total": 4
                }
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/reports/group-mailboxes?model=1&model_type=Group%20Mailbox&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/reports/group-mailboxes?model=1&model_type=Group%20Mailbox&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/reports/group-mailboxes?model=1&model_type=Group%20Mailbox&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/reports/group-mailboxes",
        "per_page": 2,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "args": {
        "model": {
            "id": 1,
            "name": "US Support",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "model_type": "Group Mailbox",
            "icon": "users"
        },
        "modelCom": {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        }
    }
}
 

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  

The ID or Name of the group mailbox you want statistics for. Use the models endpoint to get a list. Example: 1

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: 1

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

Logs

Conversations

Conversations - Report

requires authentication

Conversation (Thread) Logs data The full list of available columns for the "columns" parameter are:

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": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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": "last_received_at_date_time",
    "direction": "desc",
    "page": "1",
    "columns[0]": "id",
    "columns[1]": "init_agent_reply_time",
};
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();
$url = 'https://portal.timetoreply.com/api/logs/conversations';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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' => 'last_received_at_date_time',
            'direction' => 'desc',
            'page' => '1',
            'columns[0]' => 'id',
            'columns[1]' => 'init_agent_reply_time',
        ],
    ]
);
$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=1&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=last_received_at_date_time&direction=desc&page=1&columns[]=id&columns[]=init_agent_reply_time" \
    --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": 674,
                "init_agent_reply_time": null
            },
            {
                "id": 344,
                "init_agent_reply_time": 1436
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=1",
        "from": 1,
        "last_page": 60,
        "last_page_url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=60",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=59",
                "label": "59",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=60",
                "label": "60",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "https://portal.timetoreply.com/api/logs/conversations?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=id&columns%5B1%5D=init_agent_reply_time&page=2",
        "path": "https://portal.timetoreply.com/api/logs/conversations",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 120
    },
    "stats": {
        "threads": {
            "total": 120,
            "internal": 25,
            "inbound": 75,
            "outbound": 20,
            "sent_internally": 0,
            "await_customer": 0,
            "await_agent": 0,
            "closed": 0,
            "have_replies": 70,
            "have_replies_from_agents": 68,
            "have_no_replies_from_agents": 52,
            "completionRatio": {
                "ratio": 77.33,
                "numerator": 58,
                "denominator": 75
            },
            "handledRate": {
                "rate": 0,
                "numerator": 0,
                "denominator": 120
            },
            "top_labels": "",
            "messages_per_conversations_avg": 1.5,
            "messages_sent_per_conversations_avg": 1.5,
            "messages_received_per_conversations_avg": 0,
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 217,
            "initial": 0,
            "replies": 113,
            "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": 175,
                "initial": 0,
                "replies": 90,
                "forward": 0,
                "follow_up": 0,
                "initial_replies": 58,
                "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": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 90
        },
        "initialTTR": {
            "friendly": "2h:26m",
            "raw": 8788,
            "friendly_no_business": "7h:37m",
            "raw_no_business": 27444,
            "deviation_friendly": "14m:58s",
            "deviation_raw": 898,
            "deviation_friendly_no_business": "14m:7s",
            "deviation_raw_no_business": 847,
            "median_friendly": "23m:7s",
            "median_raw": 1387,
            "median_friendly_no_business": "23m:34s",
            "median_raw_no_business": 1414,
            "consistency_score": "35.25%",
            "consistency_score_no_business": "40.13%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": 0,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": 0,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 58
        },
        "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": [],
        "type": "stats"
    }
}
 

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  

The ID, 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: 1

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

columns   string[]  optional  

Allows you to select which columns you want to return.

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();
$url = 'https://portal.timetoreply.com/api/logs/conversations/get-by-subject-or-email';
$response = $client->get(
    $url,
    [
        '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();
$url = 'https://portal.timetoreply.com/api/logs/conversations/get-by-internet-message-id';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'internet_message_id' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/logs/conversations/get-by-internet-message-id?internet_message_id=1601678270iYOoAwCjDD%40TnlYu0KwPhwXxhcTAeHFJMHlI.DrfT" \
    --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: []
 

{
    "id": 220,
    "init_agent_reply_time": 454,
    "init_agent_action_time": 454,
    "total_agent_reply_time": 1087,
    "last_received_at_date_time": "Oct 3rd 2024 14:47:03",
    "thread_type": "inbound",
    "thread_status": "await-agent",
    "raw_init_agent_reply_time": 454,
    "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": "07m:34s",
    "friendly_raw_initial_reply_time": "07m:34s",
    "friendly_total_reply_time": "18m:07s",
    "microsoft_conversations": [],
    "email_usernames": [
        "[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_domains": [
        "hudson.com",
        "timetoreply.com"
    ],
    "date_times": [
        "2024-10-03 13:47:03",
        "2024-10-03 13:36:30",
        "2024-10-03 13:28:56"
    ],
    "message_classifications": [
        "reply",
        "first"
    ],
    "message_subjects": [
        "RE: monetize cross-platform mindshare",
        "monetize cross-platform mindshare"
    ],
    "messages": [
        {
            "internet_message_id": "[email protected]",
            "date_time": "Oct 3rd 2024 14:47:03",
            "timestamp": 1727963223,
            "subject": "RE: monetize cross-platform mindshare",
            "references": [
                "[email protected]",
                "[email protected]"
            ],
            "replytime": 633,
            "classification": "reply",
            "raw_replytime": 633,
            "friendly_reply_time": "10m:33s",
            "friendly_raw_reply_time": "10m:33s",
            "email_domains": [
                "hudson.com",
                "timetoreply.com"
            ],
            "email_domains_from": [
                "hudson.com"
            ],
            "email_domains_to": [
                "timetoreply.com"
            ],
            "email_domains_reply_to": [],
            "email_domains_senders": [
                "hudson.com"
            ],
            "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": [
                "CATEGORY_SOCIAL",
                "STARRED",
                "INBOX"
            ],
            "is_touch": false,
            "is_nudge": false,
            "touch_time": null,
            "reply_is_relevant": false,
            "is_closing_email": false,
            "is_included_in_stats": true,
            "reply_is_outlier": false,
            "agents_read_status": {
                "[email protected]": true
            },
            "friendly_touch_time": "N/A",
            "is_manually_excluded_from_sla_breach": false
        },
        {
            "internet_message_id": "[email protected]",
            "date_time": "Oct 3rd 2024 14:36:30",
            "timestamp": 1727962590,
            "subject": "RE: monetize cross-platform mindshare",
            "references": [
                "[email protected]"
            ],
            "replytime": 454,
            "classification": "reply",
            "raw_replytime": 454,
            "friendly_reply_time": "07m:34s",
            "friendly_raw_reply_time": "07m:34s",
            "email_domains": [
                "timetoreply.com",
                "hudson.com"
            ],
            "email_domains_from": [
                "timetoreply.com"
            ],
            "email_domains_to": [
                "hudson.com"
            ],
            "email_domains_reply_to": [],
            "email_domains_senders": [
                "timetoreply.com"
            ],
            "email_domains_received": [
                "hudson.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": true,
            "is_newest_message": false,
            "message_type": "outbound",
            "labels": [
                "CATEGORY_FORUMS",
                "CATEGORY_UPDATES",
                "INBOX"
            ],
            "is_touch": true,
            "is_nudge": false,
            "touch_time": null,
            "reply_is_relevant": true,
            "is_closing_email": false,
            "is_included_in_stats": true,
            "reply_is_outlier": false,
            "friendly_touch_time": "N/A",
            "is_manually_excluded_from_sla_breach": false
        },
        {
            "internet_message_id": "[email protected]",
            "date_time": "Oct 3rd 2024 14:28:56",
            "timestamp": 1727962136,
            "subject": "monetize cross-platform mindshare",
            "references": null,
            "replytime": null,
            "classification": "first",
            "raw_replytime": null,
            "friendly_reply_time": "N/A",
            "friendly_raw_reply_time": "N/A",
            "email_domains": [
                "hudson.com",
                "timetoreply.com"
            ],
            "email_domains_from": [
                "hudson.com"
            ],
            "email_domains_to": [
                "timetoreply.com"
            ],
            "email_domains_reply_to": [],
            "email_domains_senders": [
                "hudson.com"
            ],
            "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": [],
            "is_touch": false,
            "is_nudge": false,
            "touch_time": null,
            "reply_is_relevant": false,
            "is_closing_email": false,
            "is_included_in_stats": true,
            "reply_is_outlier": false,
            "agents_read_status": {
                "[email protected]": true
            },
            "friendly_touch_time": "N/A",
            "is_manually_excluded_from_sla_breach": false
        }
    ],
    "labels": [
        "CATEGORY_SOCIAL",
        "STARRED",
        "INBOX",
        "CATEGORY_FORUMS",
        "CATEGORY_UPDATES"
    ],
    "has_contact_success": true,
    "contact_success_time": 1087,
    "contact_reply_time": null,
    "deal": null,
    "subject": "monetize cross-platform mindshare",
    "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",
    "is_manually_excluded_from_sla_breach": false,
    "customer_has_response": false
}
 

Request   

GET api/logs/conversations/get-by-internet-message-id

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

internet_message_id   string   

The internet message id of the message for which you want the entire conversation. Example: [email protected]

Conversations - Close

requires authentication

Endpoint For marking Conversations as closed.

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

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

let body = {
    "ids": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/logs/conversations/mark-closed';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                8,
                6,
                7,
                5,
                3,
                0,
                9,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/logs/conversations/mark-closed" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
}"

Example response (200):

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

{
    "ids": [
        3,
        5,
        6,
        7,
        8
    ]
}
 

Request   

POST api/logs/conversations/mark-closed

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

An array of Conversation/Thread IDs to marked off as closed.

Conversations - Exclude from SLA Breach

requires authentication

Endpoint for manually excluding conversations (first reply times) from SLA Breach.

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

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

let body = {
    "ids": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/logs/conversations/exclude-from-sla-breach';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                8,
                6,
                7,
                5,
                3,
                0,
                9,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/logs/conversations/exclude-from-sla-breach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
}"

Example response (200):

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

{
    "ids": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
}
 

Request   

POST api/logs/conversations/exclude-from-sla-breach

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

An array of Conversation/Thread IDs to excluded from SLA breaches.

Conversations - Remove exclude from SLA Breach

requires authentication

Endpoint for removing the SLA breach exclusions for conversations (first reply times).

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/logs/conversations/remove-exclude-from-sla-breach"
);

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

let body = {
    "ids": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/logs/conversations/remove-exclude-from-sla-breach';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                8,
                6,
                7,
                5,
                3,
                0,
                9,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/logs/conversations/remove-exclude-from-sla-breach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        8,
        6,
        7,
        5,
        3,
        0,
        9
    ]
}"

Example response (200):

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

{
    "ids": []
}
 

Request   

POST api/logs/conversations/remove-exclude-from-sla-breach

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

An array of Conversation/Thread IDs that should no longer be excluded from SLA breaches.

Messages

Messages - Report

requires authentication

Message Logs data The full list of available columns for the "columns" parameter are:

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

const params = {
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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": "date_time",
    "direction": "desc",
    "page": "1",
    "columns[0]": "date_time",
    "columns[1]": "subject",
};
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();
$url = 'https://portal.timetoreply.com/api/logs/messages';
$response = $client->get(
    $url,
    [
        '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' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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' => 'date_time',
            'direction' => 'desc',
            'page' => '1',
            'columns[0]' => 'date_time',
            'columns[1]' => 'subject',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/logs/messages?from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=1&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=date_time&direction=desc&page=1&columns[]=date_time&columns[]=subject" \
    --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: []
 

{
    "messages": {
        "current_page": 1,
        "data": [
            {
                "date_time": "Oct 4th 2024 15:38:22",
                "subject": "FW: whiteboard extensible infomediaries"
            },
            {
                "date_time": "Oct 4th 2024 15:35:51",
                "subject": "FW: target compelling e-services"
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=1",
        "from": 1,
        "last_page": 109,
        "last_page_url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=109",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=108",
                "label": "108",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=109",
                "label": "109",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "https://portal.timetoreply.com/api/logs/messages?model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&columns%5B0%5D=date_time&columns%5B1%5D=subject&page=2",
        "path": "https://portal.timetoreply.com/api/logs/messages",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 217
    },
    "stats": {
        "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": 58,
                "denominator": 0
            },
            "handledRate": {
                "rate": 0,
                "numerator": 0,
                "denominator": 0
            },
            "top_labels": "",
            "messages_per_conversations_avg": "N/A",
            "messages_sent_per_conversations_avg": "N/A",
            "messages_received_per_conversations_avg": "N/A",
            "labels": {
                "total": 0,
                "list": []
            }
        },
        "messages": {
            "count": 217,
            "initial": 0,
            "replies": 0,
            "forward": 0,
            "follow_up": 0,
            "received": {
                "count": 143,
                "initial": 40,
                "replies": 70,
                "forward": 29,
                "follow_up": 4,
                "initial_replies": 30,
                "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": 175,
                "initial": 41,
                "replies": 90,
                "forward": 43,
                "follow_up": 1,
                "initial_replies": 58,
                "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": "3h:3m",
            "raw": 11019,
            "friendly_no_business": "10h:47m",
            "raw_no_business": 38864,
            "deviation_friendly": "16m:56s",
            "deviation_raw": 1016,
            "deviation_friendly_no_business": "14m:38s",
            "deviation_raw_no_business": 878,
            "median_friendly": "24m:3s",
            "median_raw": 1443,
            "median_friendly_no_business": "24m:39s",
            "median_raw_no_business": 1479,
            "consistency_score": "29.59%",
            "consistency_score_no_business": "40.63%",
            "percentileRanks": [],
            "percentileRanksRaw": [],
            "within_sla": null,
            "within_sla_percentage_friendly": "N/A",
            "sla_breach": null,
            "sla_breach_percentage_friendly": "N/A",
            "excluded_from_sla": 90
        },
        "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
        },
        "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": [],
        "type": "stats"
    }
}
 

Request   

GET api/logs/messages

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  

The ID, 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: 1

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 messages by. Defaults to date_time. Example: 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

columns   string[]  optional  

Allows you to select which columns you want to return.

Messages - Exclude from SLA Breach

requires authentication

Endpoint for manually excluding messages (reply times) from SLA Breach.

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/logs/messages/exclude-from-sla-breach"
);

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

let body = {
    "ids": [
        "[email protected]",
        "[email protected]"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/logs/messages/exclude-from-sla-breach';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                '[email protected]',
                '[email protected]',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/logs/messages/exclude-from-sla-breach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        \"[email protected]\",
        \"[email protected]\"
    ]
}"

Example response (200):


{
    "ids": [
        "[email protected]",
        "[email protected]"
    ]
}
 

Request   

POST api/logs/messages/exclude-from-sla-breach

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   string[]   

An array of Internet Message IDs to excluded from SLA breaches.

Messages - Remove exclude from SLA Breach

requires authentication

Endpoint for removing the SLA breach exclusions for messages (reply times).

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/logs/messages/remove-exclude-from-sla-breach"
);

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

let body = {
    "ids": [
        "[email protected]",
        "[email protected]"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/logs/messages/remove-exclude-from-sla-breach';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                '[email protected]',
                '[email protected]',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/logs/messages/remove-exclude-from-sla-breach" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        \"[email protected]\",
        \"[email protected]\"
    ]
}"

Example response (200):


{
    "ids": [
        "[email protected]",
        "[email protected]"
    ]
}
 

Request   

POST api/logs/messages/remove-exclude-from-sla-breach

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   string[]   

An array of Internet Message IDs that should no longer be excluded from SLA breaches.

Stats

Stats - Breakdown

requires authentication

Get the conversations or emails that make up a given statistic.

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

const params = {
    "stat": "threads.total",
    "from": "2020-01-01",
    "to": "2020-01-08",
    "model": "My Company",
    "model_type": "Internal",
    "exclude_cc": "0",
    "model_com": "1",
    "model_type_com": "Contact Group",
    "exclude_cc_com": "0",
    "exclusive": "0",
    "label[0]": "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": "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();
$url = 'https://portal.timetoreply.com/api/logs/stat-breakdown';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'stat' => 'threads.total',
            'from' => '2020-01-01',
            'to' => '2020-01-08',
            'model' => 'My Company',
            'model_type' => 'Internal',
            'exclude_cc' => '0',
            'model_com' => '1',
            'model_type_com' => 'Contact Group',
            'exclude_cc_com' => '0',
            'exclusive' => '0',
            'label[0]' => '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' => '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/stat-breakdown?stat=threads.total&from=2020-01-01&to=2020-01-08&model=My+Company&model_type=Internal&exclude_cc=&model_com=1&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=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: []
 

{
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 674,
                "init_agent_reply_time": null,
                "init_agent_action_time": 10749,
                "total_agent_reply_time": 10749,
                "last_received_at_date_time": "Oct 4th 2024 15:38:22",
                "thread_type": "inbound",
                "thread_status": "internal",
                "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": 0,
                "friendly_initial_reply_time": "Pending",
                "friendly_raw_initial_reply_time": "Pending",
                "friendly_total_reply_time": "02h:59m:09s",
                "microsoft_conversations": [],
                "email_usernames": [
                    "[email protected]",
                    "[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_domains": [
                    "timetoreply.com",
                    "hill.biz"
                ],
                "date_times": [
                    "2024-10-04 14:38:22",
                    "2024-10-04 11:39:13"
                ],
                "message_classifications": [
                    "forward",
                    "first"
                ],
                "message_subjects": [
                    "FW: whiteboard extensible infomediaries",
                    "whiteboard extensible infomediaries"
                ],
                "messages": [
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "Oct 4th 2024 15:38:22",
                        "timestamp": 1728052702,
                        "subject": "FW: whiteboard extensible infomediaries",
                        "references": [
                            "[email protected]"
                        ],
                        "replytime": 10749,
                        "classification": "forward",
                        "raw_replytime": 10749,
                        "friendly_reply_time": "02h:59m:09s",
                        "friendly_raw_reply_time": "02h:59m:09s",
                        "email_domains": [
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "timetoreply.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_senders": [
                            "timetoreply.com"
                        ],
                        "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": "internal",
                        "labels": [],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "reply_is_relevant": true,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A",
                        "is_manually_excluded_from_sla_breach": false
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "Oct 4th 2024 12:39:13",
                        "timestamp": 1728041953,
                        "subject": "whiteboard extensible infomediaries (Excluded from statistics due to applied filters)",
                        "references": null,
                        "replytime": null,
                        "classification": "first",
                        "raw_replytime": null,
                        "friendly_reply_time": "N/A",
                        "friendly_raw_reply_time": "N/A",
                        "email_domains": [
                            "hill.biz",
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "hill.biz"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_senders": [
                            "hill.biz"
                        ],
                        "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": [
                            "CATEGORY_PROMOTIONS",
                            "CATEGORY_PERSONAL"
                        ],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "reply_is_relevant": false,
                        "is_closing_email": false,
                        "is_included_in_stats": false,
                        "reply_is_outlier": false,
                        "friendly_touch_time": "N/A",
                        "is_manually_excluded_from_sla_breach": false
                    }
                ],
                "labels": [
                    "CATEGORY_PROMOTIONS",
                    "CATEGORY_PERSONAL"
                ],
                "has_contact_success": false,
                "contact_success_time": null,
                "contact_reply_time": null,
                "deal": null,
                "subject": "whiteboard extensible 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",
                "is_manually_excluded_from_sla_breach": false,
                "customer_has_response": false
            },
            {
                "id": 344,
                "init_agent_reply_time": 1436,
                "init_agent_action_time": 1436,
                "total_agent_reply_time": 11685,
                "last_received_at_date_time": "Oct 4th 2024 15:35:51",
                "thread_type": "inbound",
                "thread_status": "internal",
                "raw_init_agent_reply_time": 1436,
                "init_agent_reply_message_id": "[email protected]",
                "init_reply_agent_id": 5,
                "time_to_close": null,
                "raw_time_to_close": null,
                "touches": 1,
                "nudges": 0,
                "friendly_initial_reply_time": "23m:56s",
                "friendly_raw_initial_reply_time": "23m:56s",
                "friendly_total_reply_time": "03h:14m:45s",
                "microsoft_conversations": [
                    "Nru9nbuwGl46oalqjj"
                ],
                "email_usernames": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_from": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_reply_to": [
                    "[email protected]"
                ],
                "email_usernames_senders": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_to": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_usernames_received": [
                    "[email protected]",
                    "[email protected]",
                    "[email protected]"
                ],
                "email_domains": [
                    "timetoreply.com",
                    "reichert.com",
                    "goyette.com"
                ],
                "date_times": [
                    "2024-10-04 14:35:51",
                    "2024-10-04 12:16:44",
                    "2024-10-04 12:00:53",
                    "2024-10-04 11:36:57"
                ],
                "message_classifications": [
                    "forward",
                    "reply",
                    "first"
                ],
                "message_subjects": [
                    "FW: target compelling e-services",
                    "RE: target compelling e-services",
                    "target compelling e-services"
                ],
                "messages": [
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "Oct 4th 2024 15:35:51",
                        "timestamp": 1728052551,
                        "subject": "FW: target compelling e-services",
                        "references": [
                            "[email protected]",
                            "[email protected]",
                            "[email protected]"
                        ],
                        "replytime": 9298,
                        "classification": "forward",
                        "raw_replytime": 9298,
                        "friendly_reply_time": "02h:34m:58s",
                        "friendly_raw_reply_time": "02h:34m:58s",
                        "email_domains": [
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "timetoreply.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_senders": [
                            "timetoreply.com"
                        ],
                        "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": [
                            "UNREAD"
                        ],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "reply_is_relevant": true,
                        "is_closing_email": false,
                        "is_included_in_stats": true,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A",
                        "is_manually_excluded_from_sla_breach": false
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "Oct 4th 2024 13:16:44",
                        "timestamp": 1728044204,
                        "subject": "RE: target compelling e-services (Excluded from statistics due to applied filters)",
                        "references": [
                            "[email protected]",
                            "[email protected]"
                        ],
                        "replytime": 951,
                        "classification": "reply",
                        "raw_replytime": 951,
                        "friendly_reply_time": "15m:51s",
                        "friendly_raw_reply_time": "15m:51s",
                        "email_domains": [
                            "reichert.com",
                            "timetoreply.com"
                        ],
                        "email_domains_from": [
                            "reichert.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_senders": [
                            "reichert.com"
                        ],
                        "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": [
                            "STARRED",
                            "CATEGORY_UPDATES",
                            "IMPORTANT"
                        ],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "reply_is_relevant": false,
                        "is_closing_email": false,
                        "is_included_in_stats": false,
                        "reply_is_outlier": false,
                        "agents_read_status": {
                            "[email protected]": true
                        },
                        "friendly_touch_time": "N/A",
                        "is_manually_excluded_from_sla_breach": false
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "Oct 4th 2024 13:00:53",
                        "timestamp": 1728043253,
                        "subject": "RE: target compelling e-services (Excluded from statistics due to applied filters)",
                        "references": [
                            "[email protected]"
                        ],
                        "replytime": 1436,
                        "classification": "reply",
                        "raw_replytime": 1436,
                        "friendly_reply_time": "23m:56s",
                        "friendly_raw_reply_time": "23m:56s",
                        "email_domains": [
                            "timetoreply.com",
                            "reichert.com"
                        ],
                        "email_domains_from": [
                            "timetoreply.com"
                        ],
                        "email_domains_to": [
                            "reichert.com"
                        ],
                        "email_domains_reply_to": [],
                        "email_domains_senders": [
                            "timetoreply.com"
                        ],
                        "email_domains_received": [
                            "reichert.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": true,
                        "is_newest_message": false,
                        "message_type": "outbound",
                        "labels": [
                            "Music, Automotive & Industrial"
                        ],
                        "is_touch": true,
                        "is_nudge": false,
                        "touch_time": null,
                        "reply_is_relevant": true,
                        "is_closing_email": false,
                        "is_included_in_stats": false,
                        "reply_is_outlier": false,
                        "friendly_touch_time": "N/A",
                        "is_manually_excluded_from_sla_breach": false
                    },
                    {
                        "internet_message_id": "[email protected]",
                        "date_time": "Oct 4th 2024 12:36:57",
                        "timestamp": 1728041817,
                        "subject": "target compelling e-services (Excluded from statistics due to applied filters)",
                        "references": null,
                        "replytime": null,
                        "classification": "first",
                        "raw_replytime": null,
                        "friendly_reply_time": "N/A",
                        "friendly_raw_reply_time": "N/A",
                        "email_domains": [
                            "goyette.com",
                            "timetoreply.com",
                            "reichert.com"
                        ],
                        "email_domains_from": [
                            "goyette.com"
                        ],
                        "email_domains_to": [
                            "timetoreply.com"
                        ],
                        "email_domains_reply_to": [
                            "reichert.com"
                        ],
                        "email_domains_senders": [
                            "goyette.com",
                            "reichert.com"
                        ],
                        "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_usernames_reply_to": [
                            "[email protected]"
                        ],
                        "email_usernames_senders": [
                            "[email protected]",
                            "[email protected]"
                        ],
                        "email_usernames_received": [
                            "[email protected]"
                        ],
                        "is_initial_reply": false,
                        "is_newest_message": false,
                        "message_type": "inbound",
                        "labels": [],
                        "is_touch": false,
                        "is_nudge": false,
                        "touch_time": null,
                        "reply_is_relevant": false,
                        "is_closing_email": false,
                        "is_included_in_stats": false,
                        "reply_is_outlier": false,
                        "friendly_touch_time": "N/A",
                        "is_manually_excluded_from_sla_breach": false
                    }
                ],
                "labels": [
                    "UNREAD",
                    "STARRED",
                    "CATEGORY_UPDATES",
                    "IMPORTANT",
                    "Music, Automotive & Industrial"
                ],
                "has_contact_success": false,
                "contact_success_time": null,
                "contact_reply_time": null,
                "deal": null,
                "subject": "target compelling e-services",
                "initial_reply_is_relevant": true,
                "initial_reply_is_included_in_stats": false,
                "initial_reply_is_outlier": false,
                "friendly_time_to_close": "N/A",
                "friendly_raw_time_to_close": "N/A",
                "is_manually_excluded_from_sla_breach": false,
                "customer_has_response": false
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
        "from": 1,
        "last_page": 60,
        "last_page_url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=60",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=59",
                "label": "59",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=60",
                "label": "60",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "https://portal.timetoreply.com/api/logs/stat-breakdown?stat=threads.total&model=My%20Company&model_type=Internal&model_com=1&model_type_com=Contact%20Group&per_page=2&direction=desc&page=2",
        "path": "https://portal.timetoreply.com/api/logs/stat-breakdown",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 120
    },
    "type": "threads",
    "show_column": null,
    "friendly_name": "Total Conversations",
    "explainer": "All conversations."
}
 

Request   

GET api/logs/stat-breakdown

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

stat   string  optional  

The stat to get the breakdown for. Example: threads.total

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  

The ID, 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: 1

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

Entities

All

requires authentication

Searches your company entities

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

const params = {
    "per_page": "2",
    "page": "1",
    "search": "Top Revenue",
    "type": "all",
};
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();
$url = 'https://portal.timetoreply.com/api/entities/search';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'per_page' => '2',
            'page' => '1',
            'search' => 'Top Revenue',
            'type' => 'all',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/search?per_page=2&page=1&search=Top+Revenue&type=all" \
    --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": [
        {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 1,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/search?per_page=2&search=Top%20Revenue&type=all&page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/search?per_page=2&search=Top%20Revenue&type=all&page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/search?per_page=2&search=Top%20Revenue&type=all&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/search",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
 

Mailboxes

Mailboxes - List

requires authentication

List all mailboxes

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

const params = {
    "sort_by": "name",
    "direction": "asc",
    "per_page": "2",
    "page": "1",
    "product_type": "success",
};
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();
$url = 'https://portal.timetoreply.com/api/entities/agents';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'asc',
            'per_page' => '2',
            'page' => '1',
            'product_type' => 'success',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents?sort_by=name&direction=asc&per_page=2&page=1&product_type=success" \
    --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": [
        {
            "id": 1,
            "company_id": 1,
            "company_name": "timetoreply",
            "name": "Nicolette Reinger",
            "email": "[email protected]",
            "is_bulk_linked": false,
            "main_type": "Google",
            "active": true,
            "created_at": "2024-09-27 15:25:15",
            "email_usernames": [
                "[email protected]"
            ],
            "time_zone": {
                "id": 29,
                "php_timezone": "Europe/London",
                "friendly_name": "Greenwich Mean Time =>  Dublin, Edinburgh, Lisbon, London"
            },
            "newest_message_date": "2024-10-01 11:15:38",
            "ingestion_started_date": "2023-10-27 08:41:51",
            "ingestion_completed_date": "2024-05-19 18:51:55",
            "ingestion_duration": "4930h:10m",
            "ingestion_duration_seconds": 17748604,
            "user_permissions": [
                7
            ],
            "search_string": "Nicolette Reinger [email protected]",
            "leave_days": [],
            "work_days": [],
            "business_hours": [],
            "product_type": "success",
            "is_user": false,
            "last_used_addon": "2023-06-01 14:11:56",
            "optimizer_installed": false
        },
        {
            "id": 3,
            "company_id": 1,
            "company_name": "timetoreply",
            "name": "Muriel McKenzie",
            "email": "[email protected]",
            "is_bulk_linked": false,
            "main_type": "Google",
            "active": true,
            "created_at": "2024-09-27 15:25:15",
            "email_usernames": [
                "[email protected]"
            ],
            "time_zone": {
                "id": 29,
                "php_timezone": "Europe/London",
                "friendly_name": "Greenwich Mean Time =>  Dublin, Edinburgh, Lisbon, London"
            },
            "newest_message_date": null,
            "ingestion_started_date": "2024-05-30 07:46:35",
            "ingestion_completed_date": "2024-03-17 09:43:48",
            "ingestion_duration": "In Progress",
            "ingestion_duration_seconds": null,
            "user_permissions": [],
            "search_string": "Muriel McKenzie [email protected]",
            "leave_days": [],
            "work_days": [],
            "business_hours": [],
            "product_type": "success",
            "is_user": true,
            "last_used_addon": "2023-01-23 20:21:12",
            "optimizer_installed": false
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/agents?direction=asc&per_page=2&product_type=success&page=1",
    "from": 1,
    "last_page": 2,
    "last_page_url": "https://portal.timetoreply.com/api/entities/agents?direction=asc&per_page=2&product_type=success&page=2",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/agents?direction=asc&per_page=2&product_type=success&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/agents?direction=asc&per_page=2&product_type=success&page=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/agents?direction=asc&per_page=2&product_type=success&page=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://portal.timetoreply.com/api/entities/agents?direction=asc&per_page=2&product_type=success&page=2",
    "path": "https://portal.timetoreply.com/api/entities/agents",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 3
}
 

Request   

GET api/entities/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the mailboxes by. Example: name

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of mailboxes to show per page. Example: 2

page   number  optional  

The page number. Example: 1

search   string  optional  

Optional search string.

product_type   string  optional  

Optional product type filter. Example: success

Mailboxes - Invite list

requires authentication

List existing mailbox invitations

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/invites"
);

const params = {
    "sort_by": "name",
    "direction": "desc",
    "page": "1",
    "per_page": "15",
};
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();
$url = 'https://portal.timetoreply.com/api/entities/agents/invites';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'desc',
            'page' => '1',
            'per_page' => '15',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents/invites?sort_by=name&direction=desc&page=1&per_page=15" \
    --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": [
        {
            "id": 1,
            "company_id": 1,
            "type_id": 1,
            "name": "Elenora Vandervort",
            "created_at": "2024-03-10 05:34:57",
            "updated_at": "2023-11-12 02:38:05",
            "send_user_invitation": false,
            "attach_to_group_mailbox_id": null,
            "attach_to_team_mailbox_id": null,
            "invited_by": null,
            "product_type": "success",
            "calendar": false,
            "email_usernames": [
                {
                    "id": 17,
                    "username": "e.vandervort_wsNLS",
                    "domain_id": 8,
                    "email_address": "[email protected]",
                    "pivot": {
                        "email_usernameable_type": "invite",
                        "email_usernameable_id": 1,
                        "email_username_id": 17,
                        "label": "none"
                    }
                }
            ],
            "type": {
                "id": 1,
                "name": "Google",
                "logo_url": "https://portal.timetoreply.com/img/logos/small/google-logo.svg"
            }
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/agents/invites?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/agents/invites?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/agents/invites?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/agents/invites",
    "per_page": 2,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

GET api/entities/agents/invites

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the invitations by. Can be either name or type. Example: name

direction   string  optional  

The direction to sort the invitations in. Can be either asc or desc. Example: desc

page   integer  optional  

The page. Example: 1

per_page   integer  optional  

The number of results per page. Example: 15

Mailboxes - Invite

requires authentication

Create a mailbox invitation

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/invite"
);

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

let body = {
    "name": "Peter Rabbit",
    "type": 1,
    "email": "[email protected]",
    "message": "Hey Pete, please accept this invite."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/invite';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Peter Rabbit',
            'type' => 1,
            'email' => '[email protected]',
            'message' => 'Hey Pete, please accept this invite.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/agents/invite" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Peter Rabbit\",
    \"type\": 1,
    \"email\": \"[email protected]\",
    \"message\": \"Hey Pete, please accept this invite.\"
}"

Example response (200):

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

{
    "success": true,
    "authURL": "https://portal.timetoreply.com/authenticate/2?expires=1728228376&signature=9f4c03aa3697c288cb3c1888b7fed433128985a2f6157cbad94edc582898e0c9",
    "id": 2
}
 

Request   

POST api/entities/agents/invite

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the Mailbox user. Example: Peter Rabbit

type   integer   

The type of Mailbox (1 = Gmail, 2 = O365, 5 = Mimecast). Example: 1

email   string   

The email address of the Mailbox. Example: [email protected]

message   string  optional  

A personalised message to send to the mailbox during invitation. Example: Hey Pete, please accept this invite.

Mailboxes - O365 - List

requires authentication

Load potential O365 Mailboxes

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/microsoft/load-bulk-agents"
);

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();
$url = 'https://portal.timetoreply.com/api/entities/agents/microsoft/load-bulk-agents';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents/microsoft/load-bulk-agents" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "users": {
        "name": "Peter Rabbit",
        "id": "12345abcd",
        "mail": "[email protected]",
        "userPrincipalName": "[email protected]"
    },
    "nextPageToken": "abc123"
}
 

Request   

GET api/entities/agents/microsoft/load-bulk-agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Mailboxes - O365 - Search

requires authentication

Search potential O365 Mailboxes

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/microsoft/search-bulk-agents"
);

const params = {
    "search": "peter",
};
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();
$url = 'https://portal.timetoreply.com/api/entities/agents/microsoft/search-bulk-agents';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'search' => 'peter',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents/microsoft/search-bulk-agents?search=peter" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "name": "Peter Rabbit",
    "id": "12345abcd",
    "mail": "[email protected]",
    "userPrincipalName": "[email protected]"
}
 

Request   

GET api/entities/agents/microsoft/search-bulk-agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

search   string   

The search term to use. This will search for mailboxes beginning with the search string. Example: peter

Mailboxes - O365 - Bulk Add

requires authentication

Store a list of O365 Mailboxes

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/microsoft/select-bulk"
);

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

let body = {
    "users": [
        {
            "id": "12345-12345-12345",
            "email": "[email protected]",
            "name": "Peter Rabbit",
            "userPrincipalName": "[email protected]"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/microsoft/select-bulk';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'users' => [
                [
                    'id' => '12345-12345-12345',
                    'email' => '[email protected]',
                    'name' => 'Peter Rabbit',
                    'userPrincipalName' => '[email protected]',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/agents/microsoft/select-bulk" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"users\": [
        {
            \"id\": \"12345-12345-12345\",
            \"email\": \"[email protected]\",
            \"name\": \"Peter Rabbit\",
            \"userPrincipalName\": \"[email protected]\"
        }
    ]
}"

Example response (200):


{
    "success": [
        "email1",
        "email2"
    ],
    "fail": []
}
 

Request   

POST api/entities/agents/microsoft/select-bulk

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

users   object[]   

An array of O365 "user" objects.

id   string   

The O365 user ID. Example: 12345-12345-12345

email   string   

The O365 user Email. Example: [email protected]

name   string   

The O365 user's name. Example: Peter Rabbit

userPrincipalName   string   

The O365 User Principal Name. Example: [email protected]

Mailboxes - Gmail - List

requires authentication

Load potential Gmail mailboxes

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/gmail/load-bulk-agents"
);

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();
$url = 'https://portal.timetoreply.com/api/entities/agents/gmail/load-bulk-agents';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents/gmail/load-bulk-agents" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "users": [
        {
            "name": "Peter Rabbit",
            "email": "[email protected]",
            "id": "12345abcd",
            "userPrincipalName": "[email protected]"
        }
    ],
    "nextPageToken": "next_page_token_string"
}
 

Request   

GET api/entities/agents/gmail/load-bulk-agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Mailboxes - Gmail - Bulk Add

requires authentication

Add multiple mailboxes at once

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/gmail/select-bulk"
);

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

let body = {
    "users": [
        {
            "email": "[email protected]",
            "name": "Peter Rabbit"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/gmail/select-bulk';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'users' => [
                [
                    'email' => '[email protected]',
                    'name' => 'Peter Rabbit',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/agents/gmail/select-bulk" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"users\": [
        {
            \"email\": \"[email protected]\",
            \"name\": \"Peter Rabbit\"
        }
    ]
}"

Example response (200):


{
    "success": [
        "[email protected]"
    ],
    "fail": []
}
 

Request   

POST api/entities/agents/gmail/select-bulk

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

users   object[]  optional  

an array of gmail "user" objects with fields email and name.

email   string   

The email address of the mailbox to add. Example: [email protected]

name   string   

The name of the mailbox to add. Example: Peter Rabbit

Mailboxes - EWS - Update

requires authentication

Update EWS Mailbox

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/1/ews"
);

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

let body = {
    "host": "outlook.office365.com\/EWS\/Exchange.asmx",
    "version": "Exchange2013",
    "username": "[email protected]",
    "password": "secret"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/1/ews';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'host' => 'outlook.office365.com/EWS/Exchange.asmx',
            'version' => 'Exchange2013',
            'username' => '[email protected]',
            'password' => 'secret',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/agents/1/ews" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"host\": \"outlook.office365.com\\/EWS\\/Exchange.asmx\",
    \"version\": \"Exchange2013\",
    \"username\": \"[email protected]\",
    \"password\": \"secret\"
}"

Example response (200):


{
    "status": "Agent EWS credentials updated successfully."
}
 

Request   

PATCH api/entities/agents/{agent_id}/ews

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

agent_id   integer   

The ID of the agent/mailbox to update. Example: 1

Body Parameters

host   string   

The EWS Host. Example: outlook.office365.com/EWS/Exchange.asmx

version   string   

The EWS host version. Example: Exchange2013

username   string   

The EWS username. Example: [email protected]

password   string   

The EWS password. Example: secret

Mailboxes - Delete

requires authentication

Delete a mailbox

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/agents/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Agent deletion complete."
}
 

Request   

DELETE api/entities/agents/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the agent. Example: 1

agent_id   integer   

The ID of the mailbox to delete. Example: 1

Mailboxes - Delete Multiple

requires authentication

Delete multiple mailboxes

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/delete-multiple"
);

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

let body = {
    "ids": [
        1,
        2,
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/delete-multiple';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
                2,
                3,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/agents/delete-multiple" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1,
        2,
        3
    ]
}"

Example response (200):


{
    "status": "Mailbox deletion complete."
}
 

Request   

POST api/entities/agents/delete-multiple

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The IDs of the mailboxes to delete.

Mailboxes - Re-authenticate

requires authentication

Send a re-authentication request to a mailbox.

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/1/re-auth"
);

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();
$url = 'https://portal.timetoreply.com/api/entities/agents/1/re-auth';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents/1/re-auth" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "We've sent the Re-Authentication email to John Doe. Please ask them to check their email and SPAM box"
}
 

Request   

GET api/entities/agents/{agent_id}/re-auth

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

agent_id   integer   

The ID of the mailbox to send a re-authentication request to. Example: 1

Mailboxes - Update

requires authentication

Update a mailbox

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/1/update"
);

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

let body = {
    "name": "Peter Rabbit",
    "timeZone": 1,
    "aliases": [
        "[email protected]"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/1/update';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Peter Rabbit',
            'timeZone' => 1,
            'aliases' => [
                '[email protected]',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/agents/1/update" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Peter Rabbit\",
    \"timeZone\": 1,
    \"aliases\": [
        \"[email protected]\"
    ]
}"

Example response (200):


{
    "status": "Mailbox updated successfully."
}
 

Request   

PATCH api/entities/agents/{id}/update

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the agent. Example: 1

agent_id   integer   

The ID of the mailbox to update. Example: 1

Body Parameters

name   string   

The name of the mailbox. Example: Peter Rabbit

timeZone   integer   

The ID of the TimeZone for the mailbox. Example: 1

aliases   string[]  optional  

An array of email aliases for the mailbox.

Mailboxes - Search all

requires authentication

Searches all mailboxes for a given string including in Gmail, O365 if authenticated using admin credentials.

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/search-all-company-mailboxes"
);

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();
$url = 'https://portal.timetoreply.com/api/entities/agents/search-all-company-mailboxes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/agents/search-all-company-mailboxes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "name": "Peter Rabbit",
    "email": "[email protected]",
    "id": "12345abcd",
    "userPrincipalName": "[email protected]"
}
 

Request   

GET api/entities/agents/search-all-company-mailboxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Mailboxes - Invite As Users

requires authentication

Invite a selection of mailboxes as users

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/invite-as-users"
);

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

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/users/invite-as-users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/users/invite-as-users" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"

Example response (202):

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

[
    1
]
 

Request   

POST api/tools/users/invite-as-users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The IDs of the agents/mailboxes to invite as a user.

Authentication Invites

Authentication Invites - Remind

requires authentication

Remind A Mailbox about an Authentication Invitation

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/remind/1"
);

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

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/remind/1';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/agents/remind/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: []
 

{
    "status": "Please check the inbox (and spam folder) of the mailbox you just added. Click on the link in the email to grant access to timetoreply so that we can start measuring your email reply times."
}
 

Request   

PATCH api/entities/agents/remind/{authentication_invite_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

authentication_invite_id   integer   

The ID of the Authentication invite. Example: 1

Authentication Invites - Delete

requires authentication

Delete an Authentication Invitation

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/agents/invite/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/agents/invite/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/agents/invite/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Authentication invite deleted."
}
 

Request   

DELETE api/entities/agents/invite/{authentication_invite_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

authentication_invite_id   integer   

The ID of the Authentication invite. Example: 1

Contacts

Contacts - List

requires authentication

Get all existing contacts.

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

const params = {
    "sort_by": "name",
    "direction": "asc",
    "per_page": "25",
    "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();
$url = 'https://portal.timetoreply.com/api/entities/contacts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'asc',
            'per_page' => '25',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/contacts?sort_by=name&direction=asc&per_page=25&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: []
 

{
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2290,
                "company_id": 1,
                "name": "[email protected]",
                "type": "email",
                "crm_type": null,
                "search_string": "[email protected]",
                "is_lead": false
            },
            {
                "id": 2176,
                "company_id": 1,
                "name": "[email protected]",
                "type": "email",
                "crm_type": null,
                "search_string": "[email protected]",
                "is_lead": false
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=1",
        "from": 1,
        "last_page": 363,
        "last_page_url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=363",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=362",
                "label": "362",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=363",
                "label": "363",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": "https://portal.timetoreply.com/api/entities/contacts?direction=asc&per_page=2&page=2",
        "path": "https://portal.timetoreply.com/api/entities/contacts",
        "per_page": 2,
        "prev_page_url": null,
        "to": 2,
        "total": 725
    },
    "filters": {
        "search": null,
        "sort_by": "name",
        "sort_direction": "asc",
        "per_page": 2,
        "page": 1
    }
}
 

Request   

GET api/entities/contacts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the customers by. Example: name

direction   string  optional  

Sort asc or desc. Example: asc

per_page   integer  optional  

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

page   integer  optional  

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

search   string  optional  

Optional search string.

Contacts - Store

requires authentication

Store a new contact

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

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

let body = {
    "name": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contacts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/contacts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"[email protected]\"
}"

Example response (200):

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

{
    "id": 2726,
    "name": "[email protected]",
    "email_usernames": [
        "[email protected]"
    ],
    "model_type": "Contact",
    "icon": "user",
    "is_lead": false
}
 

Request   

POST api/entities/contacts

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

The email address or domain of the Contact. Example: [email protected]

Contacts - Update

requires authentication

Update an existing contact

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contacts/1"
);

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

let body = {
    "name": "[email protected]"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contacts/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://portal.timetoreply.com/api/entities/contacts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"[email protected]\"
}"

Example response (200):


{
    "id": 1,
    "name": "[email protected]",
    "email_usernames": [
        "[email protected]"
    ],
    "model_type": "Contact",
    "icon": "user",
    "is_lead": false
}
 

Request   

PUT api/entities/contacts/{id}

PATCH api/entities/contacts/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the contact. Example: 1

contact_id   string   

The ID of the contact. Example: 1

Body Parameters

name   string  optional  

The email address or domain of the Contact. Example: [email protected]

Contacts - Delete

requires authentication

Delete a contact

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contacts/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contacts/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/contacts/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Contact deleted."
}
 

Request   

DELETE api/entities/contacts/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the contact. Example: 1

contact_id   integer   

The ID of the contact to Delete. Example: 1

Contacts - Delete multi

requires authentication

Delete multiple contacts

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contacts/delete-multiple"
);

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

let body = {
    "ids": [
        1,
        2
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contacts/delete-multiple';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
                2,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/contacts/delete-multiple" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1,
        2
    ]
}"

Example response (200):


{
    "status": "Contacts deleted."
}
 

Request   

POST api/entities/contacts/delete-multiple

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

ids   integer[]   

The IDs of the contacts to Delete.

Contacts - Search for possible leads

requires authentication

Searches through your conversations to find possible leads.

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contacts/search-possible-leads"
);

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();
$url = 'https://portal.timetoreply.com/api/entities/contacts/search-possible-leads';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/contacts/search-possible-leads" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


[
    {
        "email": "[email protected]"
    },
    {
        "email": "[email protected]"
    }
]
 

Request   

GET api/entities/contacts/search-possible-leads

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Contacts - Store multiple

requires authentication

Stores multiple email addresses as contacts/leads

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contacts/create-multi"
);

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

let body = {
    "customers": [
        {
            "name": "[email protected]",
            "is_lead": true
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contacts/create-multi';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'customers' => [
                [
                    'name' => '[email protected]',
                    'is_lead' => true,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/contacts/create-multi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"customers\": [
        {
            \"name\": \"[email protected]\",
            \"is_lead\": true
        }
    ]
}"

Example response (200):

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

[
    {
        "company_id": 1,
        "name": "[email protected]",
        "type": "email",
        "is_lead": true,
        "id": 2727
    }
]
 

Request   

POST api/entities/contacts/create-multi

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

customers   object[]   

The array of customers to create.

name   string   

The email or domain of the customer. Example: [email protected]

is_lead   boolean   

Whether the customer is a lead or not. Example: true

Contact Groups

Contact Groups - List

requires authentication

List all Contact Groups

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

const params = {
    "sort_by": "name",
    "direction": "asc",
    "per_page": "15",
    "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();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'asc',
            'per_page' => '15',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/contact-groups?sort_by=name&direction=asc&per_page=15&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "company_id": 1,
            "name": "Top Revenue Customers",
            "crm_type": null,
            "customer_emails": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "user_permissions": [
                7
            ],
            "search_string": "Top Revenue Customers [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] schultz.info corkery.com legros.com lockman.com hauck.com yundt.net gmail.com hermann.com volkman.com kunde.com paucek.info hayes.biz schuster.com reynolds.com hotmail.com tremblay.com wisozk.org roob.com tremblay.org goodwin.com kulas.com timetoreply.com koepp.com anderson.biz runolfsson.com mitchell.com schmeler.net powlowski.biz berge.com kuhlman.org nienow.net robel.info collins.com cummerata.com bartoletti.com jacobson.com bayer.com rohan.biz bashirian.com yahoo.com daniel.com erdman.com stark.org hand.com rippin.com mraz.com swift.com kemmer.com lind.com jaskolski.com lueilwitz.com schneider.com hyatt.com nienow.com stokes.com wiza.com krajcik.biz kautzer.info auer.biz okon.com doyle.com hackett.com grimes.org von.com kohler.info fisher.biz raynor.com bechtelar.com nolan.com kuphal.net wolf.com adams.com kirlin.com gerhold.com cassin.info mills.com willms.info swift.org pouros.com oreilly.com sipes.com murphy.org wehner.biz auer.com romaguera.com schimmel.com pagac.com keeling.com sipes.org kuhic.com spinka.com jast.com langworth.com pfeffer.com dickens.biz moore.com friesen.biz von.org schiller.com cremin.com conn.net conn.biz pollich.biz gorczany.biz kerluke.net will.com bednar.org daugherty.com blick.com kulas.org becker.com lang.org williamson.com kshlerin.net nikolaus.com beier.biz schmeler.com bashirian.biz leannon.com hahn.org"
        },
        {
            "id": 2,
            "company_id": 1,
            "name": "Hubspot Customer Group",
            "crm_type": "hubspot",
            "customer_emails": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "user_permissions": [],
            "search_string": "Hubspot Customer Group [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] schultz.info corkery.com legros.com lockman.com hauck.com yundt.net gmail.com hermann.com volkman.com kunde.com paucek.info hayes.biz schuster.com reynolds.com hotmail.com tremblay.com wisozk.org roob.com tremblay.org goodwin.com kulas.com timetoreply.com koepp.com anderson.biz runolfsson.com mitchell.com schmeler.net powlowski.biz berge.com kuhlman.org nienow.net robel.info collins.com cummerata.com bartoletti.com jacobson.com bayer.com rohan.biz bashirian.com yahoo.com daniel.com erdman.com stark.org hand.com rippin.com mraz.com swift.com kemmer.com lind.com jaskolski.com lueilwitz.com schneider.com hyatt.com nienow.com stokes.com wiza.com krajcik.biz kautzer.info auer.biz okon.com doyle.com hackett.com grimes.org von.com kohler.info fisher.biz raynor.com bechtelar.com nolan.com kuphal.net wolf.com adams.com kirlin.com gerhold.com cassin.info mills.com willms.info swift.org pouros.com oreilly.com sipes.com murphy.org wehner.biz auer.com romaguera.com schimmel.com pagac.com keeling.com sipes.org kuhic.com spinka.com jast.com langworth.com pfeffer.com dickens.biz moore.com friesen.biz von.org schiller.com cremin.com conn.net conn.biz pollich.biz gorczany.biz kerluke.net will.com bednar.org daugherty.com blick.com kulas.org becker.com lang.org williamson.com kshlerin.net nikolaus.com beier.biz schmeler.com bashirian.biz leannon.com hahn.org"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=1",
    "from": 1,
    "last_page": 4,
    "last_page_url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=4",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://portal.timetoreply.com/api/entities/contact-groups?direction=asc&per_page=2&page=2",
    "path": "https://portal.timetoreply.com/api/entities/contact-groups",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 7
}
 

Request   

GET api/entities/contact-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the mailboxes by. Example: name

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of contact groups to show per page. Example: 15

page   number  optional  

The page number. Example: 1

search   string  optional  

Optional search string.

Contact Groups - Store

requires authentication

Store a Contact Group

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

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

let body = {
    "name": "Most important contacts",
    "emails": [
        "[email protected]"
    ],
    "domains": [
        "example.com"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Most important contacts',
            'emails' => [
                '[email protected]',
            ],
            'domains' => [
                'example.com',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/contact-groups" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Most important contacts\",
    \"emails\": [
        \"[email protected]\"
    ],
    \"domains\": [
        \"example.com\"
    ]
}"

Example response (200):

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

{
    "id": 48,
    "name": "Most important contacts",
    "members": {
        "emails": [
            "[email protected]"
        ],
        "domains": [
            "example.com"
        ]
    }
}
 

Request   

POST api/entities/contact-groups

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the Contact Group. Example: Most important contacts

emails   string[]  optional  

An array of contact email addresses.

domains   string[]  optional  

An array of contact domains.

upload   file  optional  

A CSV of contact domains and/or emails.

Contact Groups - Show

requires authentication

Show a single Contact Group

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

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();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/contact-groups/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: []
 

{
    "id": 1,
    "name": "Top Revenue Customers",
    "email_usernames": [
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]"
    ],
    "customer_domains": [
        "schultz.info",
        "corkery.com",
        "legros.com",
        "lockman.com",
        "hauck.com",
        "yundt.net",
        "gmail.com",
        "hermann.com",
        "volkman.com",
        "kunde.com",
        "paucek.info",
        "hayes.biz",
        "schuster.com",
        "reynolds.com",
        "hotmail.com",
        "tremblay.com",
        "wisozk.org",
        "roob.com",
        "tremblay.org",
        "goodwin.com",
        "kulas.com",
        "timetoreply.com",
        "koepp.com",
        "anderson.biz",
        "runolfsson.com",
        "mitchell.com",
        "schmeler.net",
        "powlowski.biz",
        "berge.com",
        "kuhlman.org",
        "nienow.net",
        "robel.info",
        "collins.com",
        "cummerata.com",
        "bartoletti.com",
        "jacobson.com",
        "bayer.com",
        "rohan.biz",
        "bashirian.com",
        "yahoo.com",
        "daniel.com",
        "erdman.com",
        "stark.org",
        "hand.com",
        "rippin.com",
        "mraz.com",
        "swift.com",
        "kemmer.com",
        "lind.com",
        "jaskolski.com",
        "lueilwitz.com",
        "schneider.com",
        "hyatt.com",
        "nienow.com",
        "stokes.com",
        "wiza.com",
        "krajcik.biz",
        "kautzer.info",
        "auer.biz",
        "okon.com",
        "doyle.com",
        "hackett.com",
        "grimes.org",
        "von.com",
        "kohler.info",
        "fisher.biz",
        "raynor.com",
        "bechtelar.com",
        "nolan.com",
        "kuphal.net",
        "wolf.com",
        "adams.com",
        "kirlin.com",
        "gerhold.com",
        "cassin.info",
        "mills.com",
        "willms.info",
        "swift.org",
        "pouros.com",
        "oreilly.com",
        "sipes.com",
        "murphy.org",
        "wehner.biz",
        "auer.com",
        "romaguera.com",
        "schimmel.com",
        "pagac.com",
        "keeling.com",
        "sipes.org",
        "kuhic.com",
        "spinka.com",
        "jast.com",
        "langworth.com",
        "pfeffer.com",
        "dickens.biz",
        "moore.com",
        "friesen.biz",
        "von.org",
        "schiller.com",
        "cremin.com",
        "conn.net",
        "conn.biz",
        "pollich.biz",
        "gorczany.biz",
        "kerluke.net",
        "will.com",
        "bednar.org",
        "daugherty.com",
        "blick.com",
        "kulas.org",
        "becker.com",
        "lang.org",
        "williamson.com",
        "kshlerin.net",
        "nikolaus.com",
        "beier.biz",
        "schmeler.com",
        "bashirian.biz",
        "leannon.com",
        "hahn.org"
    ],
    "model_type": "Contact Group",
    "icon": "user-friends"
}
 

Request   

GET api/entities/contact-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the contact group. Example: 1

contact_group_id   integer   

The ID of the contact group. Example: 1

Contact Groups - Update

requires authentication

Update a Contact Group

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

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

let body = {
    "name": "Most important contacts updated",
    "emails": [
        "[email protected]"
    ],
    "domains": [
        "example.com"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Most important contacts updated',
            'emails' => [
                '[email protected]',
            ],
            'domains' => [
                'example.com',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://portal.timetoreply.com/api/entities/contact-groups/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Most important contacts updated\",
    \"emails\": [
        \"[email protected]\"
    ],
    \"domains\": [
        \"example.com\"
    ]
}"

Example response (200):


[
    {
        "id": 1,
        "name": "Most important contacts updated",
        "members": {
            "emails": [
                "[email protected]"
            ],
            "domains": [
                "example.com"
            ]
        }
    }
]
 

Request   

PUT api/entities/contact-groups/{id}

PATCH api/entities/contact-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the contact group. Example: 1

contact_group_id   integer   

The ID of the Contact Group to update. Example: 1

Body Parameters

name   string   

The name of the Contact Group. Example: Most important contacts updated

emails   string[]  optional  

An array of contact email addresses.

domains   string[]  optional  

An array of contact domains.

upload   file  optional  

A CSV of contact domains and/or emails.

Contact Groups - Delete

requires authentication

Delete a Contact Group

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

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/contact-groups/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Contact group deleted."
}
 

Request   

DELETE api/entities/contact-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the contact group. Example: 1

contact_group_id   integer   

The ID of the contact group. Example: 1

Contact Groups - Add Email

requires authentication

Add An Email To A Contact Group

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contact-groups/1/pushEmail"
);

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

let body = {
    "email": "[email protected]"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1/pushEmail';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/contact-groups/1/pushEmail" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"

Example response (200):

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

{
    "id": 1,
    "name": "Top Revenue Customers",
    "members": {
        "emails": [
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]"
        ],
        "domains": [
            "schultz.info",
            "corkery.com",
            "legros.com",
            "lockman.com",
            "hauck.com",
            "yundt.net",
            "gmail.com",
            "hermann.com",
            "volkman.com",
            "kunde.com",
            "paucek.info",
            "hayes.biz",
            "schuster.com",
            "reynolds.com",
            "hotmail.com",
            "tremblay.com",
            "wisozk.org",
            "roob.com",
            "tremblay.org",
            "goodwin.com",
            "kulas.com",
            "timetoreply.com",
            "koepp.com",
            "anderson.biz",
            "runolfsson.com",
            "mitchell.com",
            "schmeler.net",
            "powlowski.biz",
            "berge.com",
            "kuhlman.org",
            "nienow.net",
            "robel.info",
            "collins.com",
            "cummerata.com",
            "bartoletti.com",
            "jacobson.com",
            "bayer.com",
            "rohan.biz",
            "bashirian.com",
            "yahoo.com",
            "daniel.com",
            "erdman.com",
            "stark.org",
            "hand.com",
            "rippin.com",
            "mraz.com",
            "swift.com",
            "kemmer.com",
            "lind.com",
            "jaskolski.com",
            "lueilwitz.com",
            "schneider.com",
            "hyatt.com",
            "nienow.com",
            "stokes.com",
            "wiza.com",
            "krajcik.biz",
            "kautzer.info",
            "auer.biz",
            "okon.com",
            "doyle.com",
            "hackett.com",
            "grimes.org",
            "von.com",
            "kohler.info",
            "fisher.biz",
            "raynor.com",
            "bechtelar.com",
            "nolan.com",
            "kuphal.net",
            "wolf.com",
            "adams.com",
            "kirlin.com",
            "gerhold.com",
            "cassin.info",
            "mills.com",
            "willms.info",
            "swift.org",
            "pouros.com",
            "oreilly.com",
            "sipes.com",
            "murphy.org",
            "wehner.biz",
            "auer.com",
            "romaguera.com",
            "schimmel.com",
            "pagac.com",
            "keeling.com",
            "sipes.org",
            "kuhic.com",
            "spinka.com",
            "jast.com",
            "langworth.com",
            "pfeffer.com",
            "dickens.biz",
            "moore.com",
            "friesen.biz",
            "von.org",
            "schiller.com",
            "cremin.com",
            "conn.net",
            "conn.biz",
            "pollich.biz",
            "gorczany.biz",
            "kerluke.net",
            "will.com",
            "bednar.org",
            "daugherty.com",
            "blick.com",
            "kulas.org",
            "becker.com",
            "lang.org",
            "williamson.com",
            "kshlerin.net",
            "nikolaus.com",
            "beier.biz",
            "schmeler.com",
            "bashirian.biz",
            "leannon.com",
            "hahn.org"
        ]
    }
}
 

Request   

PATCH api/entities/contact-groups/{contact_group_id}/pushEmail

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contact_group_id   integer   

The ID of the contact group. Example: 1

Body Parameters

email   string   

The email you would like to add. Example: [email protected]

Contact Groups - Delete Email

requires authentication

Remove An Email From A Contact Group

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contact-groups/1/removeEmail"
);

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

let body = {
    "email": "[email protected]"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1/removeEmail';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/contact-groups/1/removeEmail" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"

Example response (200):


[
    {
        "id": 1,
        "name": "Most important contacts",
        "members": {
            "emails": [
                "[email protected]"
            ],
            "domains": [
                "example.com"
            ]
        }
    }
]
 

Request   

PATCH api/entities/contact-groups/{contact_group_id}/removeEmail

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contact_group_id   integer   

The ID of the contact group. Example: 1

Body Parameters

email   string   

The email you would like to remove. Example: [email protected]

Contact Groups - Remove Members

requires authentication

Remove An Email From A Contact Group

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contact-groups/1/removeMembers"
);

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

let body = {
    "membersToRemove": [
        "[email protected]",
        "example.net"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1/removeMembers';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'membersToRemove' => [
                '[email protected]',
                'example.net',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/contact-groups/1/removeMembers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"membersToRemove\": [
        \"[email protected]\",
        \"example.net\"
    ]
}"

Example response (200):


[
    {
        "id": 1,
        "name": "Most important contacts",
        "members": {
            "emails": [
                "[email protected]"
            ],
            "domains": [
                "example.com"
            ]
        }
    }
]
 

Request   

PATCH api/entities/contact-groups/{contact_group_id}/removeMembers

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contact_group_id   integer   

The ID of the contact group. Example: 1

Body Parameters

membersToRemove   string[]   

The emails/domains you would like to remove.

Contact Groups - Add Domain

requires authentication

Add A Domain To A Contact Group

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contact-groups/1/pushDomain"
);

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

let body = {
    "domain": "example.com"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1/pushDomain';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'domain' => 'example.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/contact-groups/1/pushDomain" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"domain\": \"example.com\"
}"

Example response (200):

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

{
    "id": 1,
    "name": "Top Revenue Customers",
    "members": {
        "emails": [
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]",
            "[email protected]"
        ],
        "domains": [
            "schultz.info",
            "corkery.com",
            "legros.com",
            "lockman.com",
            "hauck.com",
            "yundt.net",
            "gmail.com",
            "hermann.com",
            "volkman.com",
            "kunde.com",
            "paucek.info",
            "hayes.biz",
            "schuster.com",
            "reynolds.com",
            "hotmail.com",
            "tremblay.com",
            "wisozk.org",
            "roob.com",
            "tremblay.org",
            "goodwin.com",
            "kulas.com",
            "timetoreply.com",
            "koepp.com",
            "anderson.biz",
            "runolfsson.com",
            "mitchell.com",
            "schmeler.net",
            "powlowski.biz",
            "berge.com",
            "kuhlman.org",
            "nienow.net",
            "robel.info",
            "collins.com",
            "cummerata.com",
            "bartoletti.com",
            "jacobson.com",
            "bayer.com",
            "rohan.biz",
            "bashirian.com",
            "yahoo.com",
            "daniel.com",
            "erdman.com",
            "stark.org",
            "hand.com",
            "rippin.com",
            "mraz.com",
            "swift.com",
            "kemmer.com",
            "lind.com",
            "jaskolski.com",
            "lueilwitz.com",
            "schneider.com",
            "hyatt.com",
            "nienow.com",
            "stokes.com",
            "wiza.com",
            "krajcik.biz",
            "kautzer.info",
            "auer.biz",
            "okon.com",
            "doyle.com",
            "hackett.com",
            "grimes.org",
            "von.com",
            "kohler.info",
            "fisher.biz",
            "raynor.com",
            "bechtelar.com",
            "nolan.com",
            "kuphal.net",
            "wolf.com",
            "adams.com",
            "kirlin.com",
            "gerhold.com",
            "cassin.info",
            "mills.com",
            "willms.info",
            "swift.org",
            "pouros.com",
            "oreilly.com",
            "sipes.com",
            "murphy.org",
            "wehner.biz",
            "auer.com",
            "romaguera.com",
            "schimmel.com",
            "pagac.com",
            "keeling.com",
            "sipes.org",
            "kuhic.com",
            "spinka.com",
            "jast.com",
            "langworth.com",
            "pfeffer.com",
            "dickens.biz",
            "moore.com",
            "friesen.biz",
            "von.org",
            "schiller.com",
            "cremin.com",
            "conn.net",
            "conn.biz",
            "pollich.biz",
            "gorczany.biz",
            "kerluke.net",
            "will.com",
            "bednar.org",
            "daugherty.com",
            "blick.com",
            "kulas.org",
            "becker.com",
            "lang.org",
            "williamson.com",
            "kshlerin.net",
            "nikolaus.com",
            "beier.biz",
            "schmeler.com",
            "bashirian.biz",
            "leannon.com",
            "hahn.org",
            "example.com"
        ]
    }
}
 

Request   

PATCH api/entities/contact-groups/{contact_group_id}/pushDomain

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contact_group_id   integer   

The ID of the contact group. Example: 1

Body Parameters

domain   string   

The domain you would like to add. Example: example.com

Contact Groups - Delete Domain

requires authentication

Remove A Domain From A Contact Group

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/contact-groups/1/removeDomain"
);

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

let body = {
    "domain": "example.com"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/contact-groups/1/removeDomain';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'domain' => 'example.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/entities/contact-groups/1/removeDomain" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"domain\": \"example.com\"
}"

Example response (200):


[
    {
        "id": 1,
        "name": "Most important contacts",
        "members": {
            "emails": [
                "[email protected]"
            ],
            "domains": [
                "example.net"
            ]
        }
    }
]
 

Request   

PATCH api/entities/contact-groups/{contact_group_id}/removeDomain

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

contact_group_id   integer   

The ID of the contact group. Example: 1

Body Parameters

domain   string   

The domain you would like to remove. Example: example.com

Group Mailboxes

Group Mailboxes - List

requires authentication

Show all Group Mailboxes

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

const params = {
    "per_page": "25",
    "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();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'per_page' => '25',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/group-mailboxes?per_page=25&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "company_id": 1,
            "name": "US Support",
            "first_reply_time_goal": 0,
            "overall_reply_time_goal": 0,
            "time_to_close_goal": 0,
            "created_at": "2024-10-04 15:25:17",
            "updated_at": "2024-10-04 15:25:17",
            "product_type": "success",
            "agents_count": 3,
            "model_type": "Group Mailbox",
            "group_mailbox_address": "[email protected]",
            "email_usernames": [
                {
                    "id": 13,
                    "username": "us-support",
                    "domain_id": 8,
                    "email_address": "[email protected]",
                    "pivot": {
                        "email_usernameable_type": "group_mailbox",
                        "email_usernameable_id": 1,
                        "email_username_id": 13,
                        "label": "none"
                    }
                }
            ]
        },
        {
            "id": 2,
            "company_id": 1,
            "name": "EU Support",
            "first_reply_time_goal": 0,
            "overall_reply_time_goal": 0,
            "time_to_close_goal": 0,
            "created_at": "2024-10-04 15:25:17",
            "updated_at": "2024-10-04 15:25:17",
            "product_type": "success",
            "agents_count": 3,
            "model_type": "Group Mailbox",
            "group_mailbox_address": "[email protected]",
            "email_usernames": [
                {
                    "id": 14,
                    "username": "eu-support",
                    "domain_id": 8,
                    "email_address": "[email protected]",
                    "pivot": {
                        "email_usernameable_type": "group_mailbox",
                        "email_usernameable_id": 2,
                        "email_username_id": 14,
                        "label": "none"
                    }
                }
            ]
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/group-mailboxes?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/group-mailboxes",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
 

Request   

GET api/entities/group-mailboxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

per_page   integer  optional  

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

page   integer  optional  

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

Group Mailboxes - Store

requires authentication

Store a Group Mailbox

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

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

let body = {
    "name": "Sales Mailbox",
    "groupMailboxAddress": "[email protected]",
    "aliases": [
        "[email protected]"
    ],
    "first_reply_time_goal": 60,
    "overall_reply_time_goal": 120,
    "time_to_close_goal": 180
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Sales Mailbox',
            'groupMailboxAddress' => '[email protected]',
            'aliases' => [
                '[email protected]',
            ],
            'first_reply_time_goal' => 60,
            'overall_reply_time_goal' => 120,
            'time_to_close_goal' => 180,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/group-mailboxes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Sales Mailbox\",
    \"groupMailboxAddress\": \"[email protected]\",
    \"aliases\": [
        \"[email protected]\"
    ],
    \"first_reply_time_goal\": 60,
    \"overall_reply_time_goal\": 120,
    \"time_to_close_goal\": 180
}"

Example response (200):

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

{
    "id": 45,
    "company_id": 1,
    "name": "Sales Mailbox",
    "first_reply_time_goal": 3600,
    "overall_reply_time_goal": 7200,
    "time_to_close_goal": 10800,
    "created_at": "2024-10-04 15:26:27",
    "updated_at": "2024-10-04 15:26:27",
    "product_type": "success",
    "members": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes?per_page=2&page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes?per_page=2&page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/group-mailboxes?per_page=2&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/entities/group-mailboxes",
        "per_page": 2,
        "prev_page_url": null,
        "to": null,
        "total": 0
    },
    "model_type": "Group Mailbox",
    "group_mailbox_address": "[email protected]",
    "email_usernames": [
        "[email protected]",
        "[email protected]"
    ],
    "pending_invites": []
}
 

Request   

POST api/entities/group-mailboxes

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the Group Mailbox. Example: Sales Mailbox

groupMailboxAddress   string   

The email address of the Group Mailbox. Example: [email protected]

aliases   string[]  optional  

An email alias for the Group Mailbox.

first_reply_time_goal   integer  optional  

The first reply time goal in minutes. Example: 60

overall_reply_time_goal   integer  optional  

The overall reply time goal in minutes. Example: 120

time_to_close_goal   integer  optional  

The Time to close goal in minutes. Example: 180

Group Mailboxes - Show

requires authentication

Show a single Group Mailbox

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

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();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/group-mailboxes/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: []
 

{
    "id": 1,
    "name": "US Support",
    "email_usernames": [
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "[email protected]"
    ],
    "model_type": "Group Mailbox",
    "icon": "users"
}
 

Request   

GET api/entities/group-mailboxes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the group mailbox. Example: 1

group_mailbox_id   integer   

The ID of the Group Mailbox. Example: 1

Group Mailboxes - Update

requires authentication

Update a Group Mailbox

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

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

let body = {
    "name": "Sales Mailbox",
    "groupMailboxAddress": "[email protected]",
    "aliases": [
        "[email protected]"
    ],
    "first_reply_time_goal": 60,
    "overall_reply_time_goal": 120,
    "time_to_close_goal": 180
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Sales Mailbox',
            'groupMailboxAddress' => '[email protected]',
            'aliases' => [
                '[email protected]',
            ],
            'first_reply_time_goal' => 60,
            'overall_reply_time_goal' => 120,
            'time_to_close_goal' => 180,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://portal.timetoreply.com/api/entities/group-mailboxes/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Sales Mailbox\",
    \"groupMailboxAddress\": \"[email protected]\",
    \"aliases\": [
        \"[email protected]\"
    ],
    \"first_reply_time_goal\": 60,
    \"overall_reply_time_goal\": 120,
    \"time_to_close_goal\": 180
}"

Example response (200):


{
    "id": 1,
    "company_id": 1,
    "name": "Sales Mailbox",
    "first_reply_time_goal": 1800,
    "overall_reply_time_goal": 3600,
    "time_to_close_goal": 7200,
    "created_at": "2024-01-01 00:00:00",
    "updated_at": "2024-01-01 00:00:00",
    "product_type": "success",
    "members": {
        "current_page": 1,
        "data": [
            {
                "email": "[email protected]",
                "type": 1,
                "existing": true
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/entities/group-mailboxes/1",
        "per_page": 25,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "model_type": "Group Mailbox",
    "group_mailbox_address": "[email protected]",
    "email_usernames": [
        "[email protected]"
    ],
    "pending_invites": []
}
 

Request   

PUT api/entities/group-mailboxes/{id}

PATCH api/entities/group-mailboxes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the group mailbox. Example: 1

group_mailbox_id   integer   

The ID of the Group Mailbox to update. Example: 1

Body Parameters

name   string   

The name of the Group Mailbox. Example: Sales Mailbox

groupMailboxAddress   string   

The email address of the Group Mailbox. Example: [email protected]

aliases   string[]  optional  

An array of email alias' for the Group Mailbox.

first_reply_time_goal   integer  optional  

The first reply time goal in minutes. Example: 60

overall_reply_time_goal   integer  optional  

The overall reply time goal in minutes. Example: 120

time_to_close_goal   integer  optional  

The Time to close goal in minutes. Example: 180

Group Mailboxes - Delete

requires authentication

Delete a Group Mailbox

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

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/group-mailboxes/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Group Mailbox deleted."
}
 

Request   

DELETE api/entities/group-mailboxes/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the group mailbox. Example: 1

group_mailbox_id   integer   

The ID of the Group Mailbox. Example: 1

Group Mailbox Members - List

requires authentication

Show members of a Group Mailbox

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

const params = {
    "sort_by": "name",
    "direction": "asc",
    "per_page": "2",
    "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();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'asc',
            'per_page' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?sort_by=name&direction=asc&per_page=2&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?direction=asc&per_page=2&page=1",
    "from": 1,
    "last_page": 2,
    "last_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?direction=asc&per_page=2&page=2",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?direction=asc&per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?direction=asc&per_page=2&page=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?direction=asc&per_page=2&page=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?direction=asc&per_page=2&page=2",
    "path": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 3
}
 

Request   

GET api/entities/group-mailboxes/{group_mailbox_id}/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

group_mailbox_id   integer   

The ID of the Group Mailbox to get Members of. Example: 1

Query Parameters

sort_by   string  optional  

The field to sort the mailboxes by. Example: name

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of mailboxes to show per page. Example: 2

page   number  optional  

The page number. Example: 1

Group Mailbox Members - Store

requires authentication

Add a member to a Group Mailbox

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

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

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"

Example response (200):

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

{
    "current_page": 1,
    "data": [
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?per_page=2&page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?per_page=2&page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents",
    "per_page": 25,
    "prev_page_url": null,
    "to": 3,
    "total": 3,
    "failed": []
}
 

Request   

POST api/entities/group-mailboxes/{group_mailbox_id}/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

group_mailbox_id   integer   

The ID of the Group Mailbox. Example: 1

Body Parameters

ids   integer[]   

An array of Mailbox IDs to add as a Group Mailbox Member.

Group Mailbox Members - Delete

requires authentication

Remove a member from a Group Mailbox

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

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

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"

Example response (200):

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

{
    "current_page": 1,
    "data": [
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?per_page=2&page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?per_page=2&page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents?per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/group-mailboxes/1/agents",
    "per_page": 25,
    "prev_page_url": null,
    "to": 2,
    "total": 2,
    "failed": []
}
 

Request   

DELETE api/entities/group-mailboxes/{group_mailbox_id}/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

group_mailbox_id   integer   

The ID of the Group Mailbox. Example: 1

Body Parameters

ids   integer[]   

An array of Mailbox IDs to remove as a Group Mailbox Member.

Teams

Teams - List

requires authentication

Show all teams

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

const params = {
    "per_page": "25",
    "page": "1",
    "sort_by": "name",
    "direction": "asc",
    "search": "ACME",
    "include_emails": "0",
};
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();
$url = 'https://portal.timetoreply.com/api/entities/teams';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'per_page' => '25',
            'page' => '1',
            'sort_by' => 'name',
            'direction' => 'asc',
            'search' => 'ACME',
            'include_emails' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/teams?per_page=25&page=1&sort_by=name&direction=asc&search=ACME&include_emails=" \
    --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": [],
    "first_page_url": "https://portal.timetoreply.com/api/entities/teams?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/teams?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/teams?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/teams",
    "per_page": 2,
    "prev_page_url": null,
    "to": null,
    "total": 0
}
 

Request   

GET api/entities/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

per_page   integer  optional  

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

page   integer  optional  

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

sort_by   string  optional  

Field to sort by. Example: name

direction   string  optional  

Sort direction. Example: asc

search   string  optional  

Search term to filter by. Example: ACME

include_emails   boolean  optional  

Include email addresses of members in the response. Example: false

Teams - Store

requires authentication

Store a new Team

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

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

let body = {
    "name": "ACME Support Team One",
    "first_reply_time_goal": 30,
    "overall_reply_time_goal": 60,
    "time_to_close_goal": 120
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/teams';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'ACME Support Team One',
            'first_reply_time_goal' => 30,
            'overall_reply_time_goal' => 60,
            'time_to_close_goal' => 120,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/teams" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ACME Support Team One\",
    \"first_reply_time_goal\": 30,
    \"overall_reply_time_goal\": 60,
    \"time_to_close_goal\": 120
}"

Example response (200):

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

{
    "id": 45,
    "company_id": 1,
    "name": "ACME Support Team One",
    "first_reply_time_goal": 1800,
    "overall_reply_time_goal": 3600,
    "time_to_close_goal": 7200,
    "created_at": "2024-10-04 15:26:28",
    "updated_at": "2024-10-04 15:26:28",
    "product_type": "success",
    "members": {
        "current_page": 1,
        "data": [],
        "first_page_url": "https://portal.timetoreply.com/api/entities/teams?per_page=2&page=1",
        "from": null,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/entities/teams?per_page=2&page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/teams?per_page=2&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/entities/teams",
        "per_page": 25,
        "prev_page_url": null,
        "to": null,
        "total": 0,
        "failed": []
    },
    "model_type": "Team",
    "pending_invites": []
}
 

Request   

POST api/entities/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

The name of the Team. Example: ACME Support Team One

first_reply_time_goal   integer  optional  

The first reply time goal in minutes. Example: 30

overall_reply_time_goal   integer  optional  

The overall reply time goal in minutes. Example: 60

time_to_close_goal   integer  optional  

The Time to close goal in minutes. Example: 120

Teams - Show

requires authentication

Show a single Team

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

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();
$url = 'https://portal.timetoreply.com/api/entities/teams/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/teams/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: []
 

{
    "id": 1,
    "name": "US Support Team",
    "email_usernames": [
        "[email protected]",
        "[email protected]",
        "[email protected]"
    ],
    "model_type": "Team",
    "icon": "handshake"
}
 

Request   

GET api/entities/teams/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the team. Example: 1

team_id   integer   

The ID of the Team. Example: 1

Teams - Update

requires authentication

Update a Team

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

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

let body = {
    "name": "ACME Support Team Two",
    "first_reply_time_goal": 30,
    "overall_reply_time_goal": 60,
    "time_to_close_goal": 120
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/teams/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'ACME Support Team Two',
            'first_reply_time_goal' => 30,
            'overall_reply_time_goal' => 60,
            'time_to_close_goal' => 120,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://portal.timetoreply.com/api/entities/teams/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ACME Support Team Two\",
    \"first_reply_time_goal\": 30,
    \"overall_reply_time_goal\": 60,
    \"time_to_close_goal\": 120
}"

Example response (200):


{
    "id": 1,
    "company_id": 1,
    "name": "ACME Support Team Two",
    "first_reply_time_goal": 1800,
    "overall_reply_time_goal": 3600,
    "time_to_close_goal": 7200,
    "created_at": "2024-01-01 00:00:00",
    "updated_at": "2024-01-01 00:00:00",
    "product_type": "success",
    "members": {
        "current_page": 1,
        "data": [
            {
                "email": "[email protected]",
                "type": 1,
                "existing": true
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/entities/teams/1?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/entities/teams/1?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/entities/teams/1?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/entities/teams/1",
        "per_page": 25,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "model_type": "Team",
    "pending_invites": []
}
 

Request   

PUT api/entities/teams/{id}

PATCH api/entities/teams/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the team. Example: 1

team_id   integer   

The ID of the Team. Example: 1

Body Parameters

name   string   

The name of the Team. Example: ACME Support Team Two

first_reply_time_goal   integer  optional  

The first reply time goal in minutes. Example: 30

overall_reply_time_goal   integer  optional  

The overall reply time goal in minutes. Example: 60

time_to_close_goal   integer  optional  

The Time to close goal in minutes. Example: 120

Teams - Delete

requires authentication

Delete a Team

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

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/teams/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/teams/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Team deleted."
}
 

Request   

DELETE api/entities/teams/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the team. Example: 1

team_id   integer   

The ID of the Team. Example: 1

Team Members - List

requires authentication

Show members of a Team

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

const params = {
    "sort_by": "name",
    "direction": "asc",
    "per_page": "2",
    "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();
$url = 'https://portal.timetoreply.com/api/entities/teams/1/agents';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'asc',
            'per_page' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/teams/1/agents?sort_by=name&direction=asc&per_page=2&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?direction=asc&per_page=2&page=1",
    "from": 1,
    "last_page": 2,
    "last_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?direction=asc&per_page=2&page=2",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/teams/1/agents?direction=asc&per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/teams/1/agents?direction=asc&per_page=2&page=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/teams/1/agents?direction=asc&per_page=2&page=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?direction=asc&per_page=2&page=2",
    "path": "https://portal.timetoreply.com/api/entities/teams/1/agents",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 3,
    "failed": []
}
 

Request   

GET api/entities/teams/{team_id}/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

team_id   integer   

The ID of the Team to get Members of. Example: 1

Query Parameters

sort_by   string  optional  

The field to sort the mailboxes by. Example: name

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of mailboxes to show per page. Example: 2

page   number  optional  

The page number. Example: 1

Team Members - Store

requires authentication

Add a member to a Team

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

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

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/teams/1/agents';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/entities/teams/1/agents" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"

Example response (200):

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

{
    "current_page": 1,
    "data": [
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?per_page=2&page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?per_page=2&page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/teams/1/agents?per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/teams/1/agents",
    "per_page": 25,
    "prev_page_url": null,
    "to": 3,
    "total": 3,
    "failed": []
}
 

Request   

POST api/entities/teams/{team_id}/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

team_id   integer   

The ID of the Team. Example: 1

Body Parameters

ids   integer[]   

An array of Mailbox IDs to add as a Team Member.

Team Members - Delete

requires authentication

Remove a member from a Team

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

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

let body = {
    "ids": [
        1
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/entities/teams/1/agents';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ids' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/entities/teams/1/agents" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        1
    ]
}"

Example response (200):

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

{
    "current_page": 1,
    "data": [
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        },
        {
            "email": "[email protected]",
            "type": 1,
            "existing": true,
            "link_status": "Linked"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?per_page=2&page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/entities/teams/1/agents?per_page=2&page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/entities/teams/1/agents?per_page=2&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/entities/teams/1/agents",
    "per_page": 25,
    "prev_page_url": null,
    "to": 2,
    "total": 2,
    "failed": []
}
 

Request   

DELETE api/entities/teams/{team_id}/agents

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

team_id   integer   

The ID of the Team. Example: 1

Body Parameters

ids   integer[]   

An array of Mailbox IDs to remove as a Team Member.

Labels

requires authentication

Search for labels based on the given search string

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/entities/labels/search"
);

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();
$url = 'https://portal.timetoreply.com/api/entities/labels/search';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/entities/labels/search" \
    --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: []
 

[]
 

Tools

Filters

Filters - List

requires authentication

List all current filters and entities

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/all-thread-filter-data"
);

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();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/all-thread-filter-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/settings/message-filters/all-thread-filter-data" \
    --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: []
 

{
    "advanced_filters_count": {
        "active": 0,
        "total": 1
    },
    "domain_and_email_filters": {
        "domains": 1,
        "emails": 1
    },
    "agents": [
        {
            "id": 5,
            "name": "Mac Stoltenberg",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Mailbox",
            "icon": "user-plus"
        },
        {
            "id": 3,
            "name": "Muriel McKenzie",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Mailbox",
            "icon": "user-plus"
        },
        {
            "id": 1,
            "name": "Nicolette Reinger",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Mailbox",
            "icon": "user-plus"
        }
    ],
    "teams": [
        {
            "id": 2,
            "name": "EU Support Team",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "model_type": "Team",
            "icon": "handshake"
        },
        {
            "id": 1,
            "name": "US Support Team",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "model_type": "Team",
            "icon": "handshake"
        }
    ],
    "group_mailboxes": [
        {
            "id": 2,
            "name": "EU Support",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "model_type": "Group Mailbox",
            "icon": "users"
        },
        {
            "id": 1,
            "name": "US Support",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "model_type": "Group Mailbox",
            "icon": "users"
        }
    ],
    "customer_groups": [
        {
            "id": 3,
            "name": "Active Campaign Customer Group",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 5,
            "name": "Constant Contact Customer Group",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 2,
            "name": "Hubspot Customer Group",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 4,
            "name": "Maropost Customer Group",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 6,
            "name": "Salesforce Customer Group",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 1,
            "name": "Top Revenue Customers",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        },
        {
            "id": 7,
            "name": "Zoho Customer Group",
            "email_usernames": [
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]",
                "[email protected]"
            ],
            "customer_domains": [
                "schultz.info",
                "corkery.com",
                "legros.com",
                "lockman.com",
                "hauck.com",
                "yundt.net",
                "gmail.com",
                "hermann.com",
                "volkman.com",
                "kunde.com",
                "paucek.info",
                "hayes.biz",
                "schuster.com",
                "reynolds.com",
                "hotmail.com",
                "tremblay.com",
                "wisozk.org",
                "roob.com",
                "tremblay.org",
                "goodwin.com",
                "kulas.com",
                "timetoreply.com",
                "koepp.com",
                "anderson.biz",
                "runolfsson.com",
                "mitchell.com",
                "schmeler.net",
                "powlowski.biz",
                "berge.com",
                "kuhlman.org",
                "nienow.net",
                "robel.info",
                "collins.com",
                "cummerata.com",
                "bartoletti.com",
                "jacobson.com",
                "bayer.com",
                "rohan.biz",
                "bashirian.com",
                "yahoo.com",
                "daniel.com",
                "erdman.com",
                "stark.org",
                "hand.com",
                "rippin.com",
                "mraz.com",
                "swift.com",
                "kemmer.com",
                "lind.com",
                "jaskolski.com",
                "lueilwitz.com",
                "schneider.com",
                "hyatt.com",
                "nienow.com",
                "stokes.com",
                "wiza.com",
                "krajcik.biz",
                "kautzer.info",
                "auer.biz",
                "okon.com",
                "doyle.com",
                "hackett.com",
                "grimes.org",
                "von.com",
                "kohler.info",
                "fisher.biz",
                "raynor.com",
                "bechtelar.com",
                "nolan.com",
                "kuphal.net",
                "wolf.com",
                "adams.com",
                "kirlin.com",
                "gerhold.com",
                "cassin.info",
                "mills.com",
                "willms.info",
                "swift.org",
                "pouros.com",
                "oreilly.com",
                "sipes.com",
                "murphy.org",
                "wehner.biz",
                "auer.com",
                "romaguera.com",
                "schimmel.com",
                "pagac.com",
                "keeling.com",
                "sipes.org",
                "kuhic.com",
                "spinka.com",
                "jast.com",
                "langworth.com",
                "pfeffer.com",
                "dickens.biz",
                "moore.com",
                "friesen.biz",
                "von.org",
                "schiller.com",
                "cremin.com",
                "conn.net",
                "conn.biz",
                "pollich.biz",
                "gorczany.biz",
                "kerluke.net",
                "will.com",
                "bednar.org",
                "daugherty.com",
                "blick.com",
                "kulas.org",
                "becker.com",
                "lang.org",
                "williamson.com",
                "kshlerin.net",
                "nikolaus.com",
                "beier.biz",
                "schmeler.com",
                "bashirian.biz",
                "leannon.com",
                "hahn.org"
            ],
            "model_type": "Contact Group",
            "icon": "user-friends"
        }
    ],
    "customers": [
        {
            "id": 2290,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2176,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2563,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2690,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2550,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2650,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2331,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2623,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2523,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2182,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2291,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2608,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2594,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2527,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2320,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2609,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2366,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2050,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2275,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2190,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2356,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2701,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2513,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2672,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2111,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2279,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2614,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2396,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2060,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2101,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2359,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2423,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2247,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2344,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2638,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2460,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2155,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2346,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2165,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2386,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2226,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2037,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2038,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2522,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2579,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2695,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2315,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2095,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2195,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2262,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2097,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2378,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2248,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2500,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2670,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2580,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2711,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2546,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2534,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2441,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2332,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2587,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2011,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2336,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2265,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2497,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2703,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2555,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2148,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2134,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2628,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2338,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2512,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2668,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2590,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2558,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2313,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2140,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2448,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2149,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2198,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2559,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2059,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2640,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2436,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2280,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2296,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2029,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2525,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2169,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2511,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2682,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2651,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2485,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2062,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2076,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2244,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2137,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2297,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2405,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2663,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2109,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2168,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2324,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2624,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2061,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2350,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2487,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2445,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2694,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2092,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2450,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2185,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2557,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2217,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2535,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2655,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2084,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2390,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2368,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2020,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2327,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2611,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2578,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2288,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2188,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2254,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2419,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2709,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2552,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2481,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2307,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2362,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2316,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2631,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2,
            "name": "customer.com",
            "email_usernames": [
                "customer.com"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2342,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2639,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2308,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2191,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2065,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2349,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2225,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2488,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2424,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2593,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2298,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2086,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2014,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2052,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2237,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2043,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2222,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2530,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2056,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2215,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2282,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2186,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2542,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2018,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2545,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2239,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2406,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2129,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2066,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2053,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2071,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2112,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2283,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2064,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2606,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2536,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2228,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2526,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2528,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2339,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2637,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2412,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2665,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2132,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2261,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2613,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2440,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2015,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2240,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2397,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2017,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2583,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2387,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2496,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2693,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2234,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2598,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2723,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2503,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2680,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": true
        },
        {
            "id": 2107,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2273,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2199,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        },
        {
            "id": 2415,
            "name": "[email protected]",
            "email_usernames": [
                "[email protected]"
            ],
            "model_type": "Contact",
            "icon": "user",
            "is_lead": false
        }
    ],
    "lead_sources": [
        {
            "id": 1,
            "name": "US Sales Box",
            "email_usernames": [],
            "model_type": "Lead Source",
            "icon": "square-list"
        },
        {
            "id": 2,
            "name": "Web Enquiry Form",
            "email_usernames": [],
            "model_type": "Lead Source",
            "icon": "square-list"
        }
    ],
    "goals": {
        "first_reply_time_goal": 7200,
        "first_reply_time_goal_bands": [],
        "overall_reply_time_goal": 14400,
        "overall_reply_time_goal_bands": [],
        "time_to_close_goal": 86400,
        "time_to_close_goal_bands": []
    }
}
 

Request   

GET api/tools/settings/message-filters/all-thread-filter-data

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Domain Filters - List

requires authentication

List all Domain Filters

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains"
);

const params = {
    "sort_by": "domain",
    "direction": "asc",
    "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();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'domain',
            'direction' => 'asc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/settings/message-filters/domains?sort_by=domain&direction=asc&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: []
 

{
    "domains": {
        "current_page": 1,
        "data": [
            "spam.com"
        ],
        "first_page_url": "https://portal.timetoreply.com/api/tools/settings/message-filters/domains?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/tools/settings/message-filters/domains?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/tools/settings/message-filters/domains?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/tools/settings/message-filters/domains",
        "per_page": 2,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "whitelisting": false
}
 

Request   

GET api/tools/settings/message-filters/domains

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

Field Name to sort domains by. Can only be domain. Example: domain

direction   string  optional  

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

page   integer  optional  

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

Domain Filters - Store

requires authentication

Block domains

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/block"
);

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

let body = {
    "domains": [
        "spam.com"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/domains/block';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'domains' => [
                'spam.com',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/block" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"domains\": [
        \"spam.com\"
    ]
}"

Example response (200):

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

[
    {
        "id": 11,
        "domain": "spam.com"
    }
]
 

Request   

POST api/tools/settings/message-filters/domains/block

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

domains   string[]   

An array of domains to block.

Domain Filters - Delete

requires authentication

Unblock domains

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/unblock"
);

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

let body = {
    "domains": [
        "spam.com"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/domains/unblock';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'domains' => [
                'spam.com',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/unblock" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"domains\": [
        \"spam.com\"
    ]
}"

Example response (200):

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

{
    "status": "Domains unblocked successfully"
}
 

Request   

POST api/tools/settings/message-filters/domains/unblock

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

domains   string[]   

An array of domains to unblock.

Domain Filters - Delete All

requires authentication

Unblock All domains

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/unblockAll"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/domains/unblockAll';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/unblockAll" \
    --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: []
 

{
    "status": "Domains unblocked successfully"
}
 

Request   

POST api/tools/settings/message-filters/domains/unblockAll

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Domain Filters - Whitelisting

requires authentication

Toggle on/off Domain Whitelisting

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/whitelisting/toggle"
);

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

let body = {
    "whitelisting": true
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/domains/whitelisting/toggle';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'whitelisting' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/domains/whitelisting/toggle" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"whitelisting\": true
}"

Example response (200):

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

{
    "status": "Domain whitelisting enabled"
}
 

Request   

PATCH api/tools/settings/message-filters/domains/whitelisting/toggle

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

whitelisting   boolean  optional  

Whether toggle Domain Whitelist on or off. Example: true

Max Reply Time - Get

requires authentication

Get the current Max Reply Time settings

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/max-reply-time"
);

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();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/max-reply-time';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/settings/message-filters/max-reply-time" \
    --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: []
 

{
    "max_reply_time_enabled": true,
    "max_reply_time_hrs": 40
}
 

Request   

GET api/tools/settings/message-filters/max-reply-time

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Max Reply Time - Set

requires authentication

Set the current Max Reply Time settings

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/max-reply-time"
);

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

let body = {
    "max_reply_time_enabled": true,
    "max_reply_time_hrs": 40
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/max-reply-time';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'max_reply_time_enabled' => true,
            'max_reply_time_hrs' => 40,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/max-reply-time" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"max_reply_time_enabled\": true,
    \"max_reply_time_hrs\": 40
}"

Example response (200):


{
    "max_reply_time_enabled": true,
    "max_reply_time_hrs": 40
}
 

Request   

PATCH api/tools/settings/message-filters/max-reply-time

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

max_reply_time_enabled   boolean   

Whether the max reply time is enabled. Example: true

max_reply_time_hrs   integer   

The number of hours to set the max reply time to. Example: 40

Email Filters - List

requires authentication

Get email address filters

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames"
);

const params = {
    "sort_by": "email_address",
    "direction": "asc",
    "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();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/usernames';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'email_address',
            'direction' => 'asc',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames?sort_by=email_address&direction=asc&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: []
 

{
    "current_page": 1,
    "data": [
        "[email protected]"
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames",
    "per_page": 2,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

GET api/tools/settings/message-filters/usernames

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

Field Name to sort email addresses by. Can only be email_address. Example: email_address

direction   string  optional  

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

page   integer  optional  

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

Email Filters - Store

requires authentication

Block email addresses

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames/block"
);

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

let body = {
    "usernames": [
        "[email protected]"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/usernames/block';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'usernames' => [
                '[email protected]',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames/block" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"usernames\": [
        \"[email protected]\"
    ]
}"

Example response (200):

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

[
    {
        "id": 22,
        "username": "spam",
        "domain_id": 126,
        "email_address": "[email protected]"
    }
]
 

Request   

POST api/tools/settings/message-filters/usernames/block

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

usernames   string[]   

An array of email addresses to block.

Email Filters - Delete

requires authentication

Unblock email addresses

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames/unblock"
);

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

let body = {
    "usernames": [
        "[email protected]"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/usernames/unblock';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'usernames' => [
                '[email protected]',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/usernames/unblock" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"usernames\": [
        \"[email protected]\"
    ]
}"

Example response (200):

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

{
    "status": "Email addresses unblocked successfully"
}
 

Request   

POST api/tools/settings/message-filters/usernames/unblock

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

usernames   string[]   

An array of email addresses to unblock.

Advanced Filters - List

requires authentication

List all Advanced filters

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced"
);

const params = {
    "per_page": "15",
    "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();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/advanced';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'per_page' => '15',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced?per_page=15&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "company_id": 1,
            "name": "example message filter group",
            "active": false,
            "message_filters_count": 1,
            "message_filters": [
                {
                    "id": 1,
                    "message_filter_group_id": 1,
                    "field": "Subject",
                    "operator": "does not equal",
                    "type": "and",
                    "value": "example message filter"
                }
            ]
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced",
    "per_page": 2,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

GET api/tools/settings/message-filters/advanced

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

per_page   number  optional  

The number of mailboxes to show per page. Example: 15

page   number  optional  

The page number. Example: 1

Advanced Filters - Store

requires authentication

Add a new Advanced Filter

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced"
);

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

let body = {
    "filterName": "From Does Not Contain no-reply example",
    "filters": [
        {
            "field": "From",
            "operator": "does not contain",
            "type": "and",
            "value": "no-reply"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/advanced';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'filterName' => 'From Does Not Contain no-reply example',
            'filters' => [
                [
                    'field' => 'From',
                    'operator' => 'does not contain',
                    'type' => 'and',
                    'value' => 'no-reply',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"filterName\": \"From Does Not Contain no-reply example\",
    \"filters\": [
        {
            \"field\": \"From\",
            \"operator\": \"does not contain\",
            \"type\": \"and\",
            \"value\": \"no-reply\"
        }
    ]
}"

Example response (200):

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

{
    "id": 2,
    "company_id": 1,
    "name": "From Does Not Contain no-reply example",
    "active": true
}
 

Request   

POST api/tools/settings/message-filters/advanced

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

filterName   string   

The name of the Advanced Filter. Example: From Does Not Contain no-reply example

filters   object[]  optional  

An array of Filters objects.

field   string   

The field to filter on. Can be From, To, Cc, Subject or Label. Example: From

operator   string   

The operator for the filter. Can be does not begin with, does not end with, does not equal, does not contain, begins with, ends with, equals or contains. Example: does not contain

type   string   

The boolean logic type of the advanced filter. Can be and or or. Example: and

value   string   

The value of the filter. Example: no-reply

Advanced Filters - Update

requires authentication

Update an Advanced Filter

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1"
);

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

let body = {
    "filterName": "From Does Not Contain no-reply filter",
    "filters": [
        {
            "field": "From",
            "operator": "does not contain",
            "type": "and",
            "value": "no-reply"
        }
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'filterName' => 'From Does Not Contain no-reply filter',
            'filters' => [
                [
                    'field' => 'From',
                    'operator' => 'does not contain',
                    'type' => 'and',
                    'value' => 'no-reply',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"filterName\": \"From Does Not Contain no-reply filter\",
    \"filters\": [
        {
            \"field\": \"From\",
            \"operator\": \"does not contain\",
            \"type\": \"and\",
            \"value\": \"no-reply\"
        }
    ]
}"

Example response (200):


{
    "id": 1,
    "company_id": 1,
    "name": "From Does Not Contain no-reply filter",
    "active": true,
    "message_filters": [
        {
            "id": 1,
            "message_filter_group_id": 1,
            "field": "From",
            "operator": "does not contain",
            "type": "and",
            "value": "no-reply"
        }
    ]
}
 

Request   

PATCH api/tools/settings/message-filters/advanced/{message_filter_group_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_filter_group_id   integer   

The ID of the Advanced Filter to update. Example: 1

Body Parameters

filterName   string   

The name of the Advanced Filter. Example: From Does Not Contain no-reply filter

filters   object[]  optional  

An array of Filters objects.

field   string   

The field to filter on. Can be From, To, Cc, Subject or Label. Example: From

operator   string   

The operator for the filter. Can be does not begin with, does not end with, does not equal, does not contain, begins with, ends with, equals or contains. Example: does not contain

type   string   

The boolean logic type of the advanced filter. Can be and or or. Example: and

value   string   

The value of the filter. Example: no-reply

Advanced Filters - Delete

requires authentication

Delete an Advanced Filter

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Advanced filter deleted."
}
 

Request   

DELETE api/tools/settings/message-filters/advanced/{message_filter_group_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_filter_group_id   integer   

The ID of the Advanced Filter to delete. Example: 1

Advanced Filters - Toggle

requires authentication

Toggle on/off an Advanced Filter

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1/toggle"
);

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

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1/toggle';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/tools/settings/message-filters/advanced/1/toggle" \
    --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: []
 

{
    "id": 1,
    "company_id": 1,
    "name": "example message filter group",
    "active": true
}
 

Request   

PATCH api/tools/settings/message-filters/advanced/{message_filter_group_id}/toggle

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

message_filter_group_id   integer   

The ID of the Advanced Filter to toggle. Example: 1

Goals

Reply Time Goals - List

requires authentication

Get current reply time goals (shown in seconds)

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/reply-time-goals"
);

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();
$url = 'https://portal.timetoreply.com/api/tools/settings/reply-time-goals';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/settings/reply-time-goals" \
    --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: []
 

{
    "first_reply_time_goal": 7200,
    "first_reply_time_goal_bands": [],
    "overall_reply_time_goal": 14400,
    "overall_reply_time_goal_bands": [],
    "time_to_close_goal": 86400,
    "time_to_close_goal_bands": []
}
 

Request   

GET api/tools/settings/reply-time-goals

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Reply Time Goals - Update

requires authentication

Update Reply Time Goals

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/reply-time-goals"
);

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

let body = {
    "first_reply_time_goal": 3600,
    "overall_reply_time_goal": 3600,
    "time_to_close_goal": 3600,
    "first_reply_time_goal_bands": [
        1800,
        7200
    ],
    "overall_reply_time_goal_bands": [
        1800,
        7200
    ],
    "time_to_close_goal_bands": [
        1800,
        7200
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/reply-time-goals';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'first_reply_time_goal' => 3600,
            'overall_reply_time_goal' => 3600,
            'time_to_close_goal' => 3600,
            'first_reply_time_goal_bands' => [
                1800,
                7200,
            ],
            'overall_reply_time_goal_bands' => [
                1800,
                7200,
            ],
            'time_to_close_goal_bands' => [
                1800,
                7200,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/tools/settings/reply-time-goals" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_reply_time_goal\": 3600,
    \"overall_reply_time_goal\": 3600,
    \"time_to_close_goal\": 3600,
    \"first_reply_time_goal_bands\": [
        1800,
        7200
    ],
    \"overall_reply_time_goal_bands\": [
        1800,
        7200
    ],
    \"time_to_close_goal_bands\": [
        1800,
        7200
    ]
}"

Example response (200):


{
    "first_reply_time_goal": 3600,
    "first_reply_time_goal_bands": [
        1800,
        7200
    ],
    "overall_reply_time_goal": 3600,
    "overall_reply_time_goal_bands": [
        1800,
        7200
    ],
    "time_to_close_goal": 3600,
    "time_to_close_goal_bands": [
        1800,
        7200
    ]
}
 

Request   

PATCH api/tools/settings/reply-time-goals

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_reply_time_goal   integer   

First reply time goal (in seconds). Example: 3600

overall_reply_time_goal   integer   

Overall reply time goal (in seconds). Example: 3600

time_to_close_goal   integer   

Time to close goal (in seconds). Example: 3600

first_reply_time_goal_bands   integer[]  optional  

First reply time goal Bands (in seconds).

overall_reply_time_goal_bands   integer[]  optional  

Overall reply time goal bands (in seconds).

time_to_close_goal_bands   integer[]  optional  

Time to close goal bands (in seconds).

Profile

Profile - Update

requires authentication

Add more details to your profile

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/settings/profile"
);

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

let body = {
    "team": "Customer Service",
    "team_role": "Manager",
    "company_size": "B"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/settings/profile';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'team' => 'Customer Service',
            'team_role' => 'Manager',
            'company_size' => 'B',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/settings/profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"team\": \"Customer Service\",
    \"team_role\": \"Manager\",
    \"company_size\": \"B\"
}"

Example response (200):

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

{
    "status": "Thanks for telling us more about you."
}
 

Request   

POST api/tools/settings/profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

team   string   

Which team do you belong to? Can be any of 'Customer Service', 'Support', 'Sales', 'Key Account Management', 'Back Office', 'Other'. Example: Customer Service

team_role   string   

What is your role in that team? Can be any of 'VP/Director', 'Manager', 'Team Member'. Example: Manager

company_size   string   

What is the size of your company. This is based on the linkedin list of company sizes. Example: B

Profile - Get

requires authentication

Your account basic data

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

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();
$url = 'https://portal.timetoreply.com/api/me';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/me" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "id": "1",
    "name": "Peter Rabbit",
    "email": "[email protected]"
}
 

Request   

GET api/me

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Settings

Internal Domains - List

requires authentication

List all internal domains

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/internal-domains"
);

const params = {
    "sort_by": "domain",
    "direction": "asc",
    "per_page": "2",
    "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();
$url = 'https://portal.timetoreply.com/api/tools/company/internal-domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'domain',
            'direction' => 'asc',
            'per_page' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/company/internal-domains?sort_by=domain&direction=asc&per_page=2&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "id": 8,
            "domain": "timetoreply.com",
            "add_method": "automatic"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/company/internal-domains?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/company/internal-domains?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/company/internal-domains?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/company/internal-domains",
    "per_page": 2,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

GET api/tools/company/internal-domains

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the Domains by. Example: domain

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of Domains to show per page. Example: 2

page   number  optional  

The page number. Example: 1

Internal Domains - Store

requires authentication

Add a new internal domain

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/internal-domains"
);

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

let body = {
    "domain": "example.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/internal-domains';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'domain' => 'example.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/internal-domains" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"domain\": \"example.com\"
}"

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "domain": "yourdomain.com",
            "add_method": "automatic"
        },
        {
            "id": 2,
            "domain": "example.com",
            "add_method": "manual"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/company/internal-domains?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/company/internal-domains?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/company/internal-domains?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/company/internal-domains",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
 

Request   

POST api/tools/company/internal-domains

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

domain   string   

The domain to add as an internal domain. Example: example.com

Internal Domains - Delete

requires authentication

Remove an internal domain

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/internal-domains/12"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/internal-domains/12';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/company/internal-domains/12" \
    --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": [
        {
            "id": 8,
            "domain": "timetoreply.com",
            "add_method": "automatic"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/company/internal-domains/12?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/company/internal-domains/12?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/company/internal-domains/12?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/company/internal-domains/12",
    "per_page": 15,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

DELETE api/tools/company/internal-domains/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the internal domain. Example: 12

internal_domain_id   integer   

The ID of the internal domain to remove. Example: 1

Conversation Threading Style - Set

requires authentication

Set the current Conversation Threading Style

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/conversation-threading-style"
);

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

let body = {
    "style": "responding_to"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/conversation-threading-style';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'style' => 'responding_to',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/conversation-threading-style" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"style\": \"responding_to\"
}"

Example response (200):

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

{
    "status": "Preference updated successfully"
}
 

Request   

POST api/tools/company/conversation-threading-style

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

style   string   

The style to set. Example: responding_to

Closing Email Addresses - List

requires authentication

List all "closing" email addresses

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/close-conversation-emails"
);

const params = {
    "sort_by": "domain",
    "direction": "asc",
    "per_page": "2",
    "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();
$url = 'https://portal.timetoreply.com/api/tools/company/close-conversation-emails';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'domain',
            'direction' => 'asc',
            'per_page' => '2',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?sort_by=domain&direction=asc&per_page=2&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: []
 

{
    "current_page": 1,
    "data": [
        {
            "id": 10,
            "username": "closed",
            "email_address": "[email protected]"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails",
    "per_page": 2,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

GET api/tools/company/close-conversation-emails

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the Email Addresses by. Example: domain

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of Email Addresses to show per page. Example: 2

page   number  optional  

The page number. Example: 1

Closing Email Addresses - Store

requires authentication

Add a new "closing" email address

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/close-conversation-emails"
);

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

let body = {
    "email": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/close-conversation-emails';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/close-conversation-emails" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"

Example response (200):


[
    {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "username": "closed",
                "email_address": "[email protected]"
            }
        ],
        "first_page_url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?page=1",
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails",
        "per_page": 15,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
]
 

Request   

POST api/tools/company/close-conversation-emails

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

The email address to add as a new "closing" address. Example: [email protected]

Closing Email Addresses - Delete

requires authentication

Remove a "closing" email address

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/close-conversation-emails/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/close-conversation-emails/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/company/close-conversation-emails/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: []
 

{
    "current_page": 1,
    "data": [
        {
            "id": 10,
            "username": "closed",
            "email_address": "[email protected]"
        }
    ],
    "first_page_url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails/1?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails/1?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails/1?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/company/close-conversation-emails/1",
    "per_page": 15,
    "prev_page_url": null,
    "to": 1,
    "total": 1
}
 

Request   

DELETE api/tools/company/close-conversation-emails/{email_username_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

email_username_id   integer   

The ID of the "closing" email address to remove. Example: 1

Business Hours

Business Hours - List

requires authentication

Get all existing business hours for either a company or a mailbox

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/business-hours"
);

const params = {
    "forModel": "company",
};
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();
$url = 'https://portal.timetoreply.com/api/tools/company/business-hours';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'forModel' => 'company',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/company/business-hours?forModel=company" \
    --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: []
 

[
    {
        "id": 1,
        "day": "mon",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 2,
        "day": "tue",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 3,
        "day": "wed",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 4,
        "day": "thu",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 5,
        "day": "fri",
        "start": "09:00:00",
        "end": "17:00:00"
    }
]
 

Request   

GET api/tools/company/business-hours

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

forModel   string  optional  

The model type, can be 'company' or 'agent'. Example: company

modelId   integer  optional  

The id of the agent when using agent in forModel.

Business Hours - Store

requires authentication

Add a new set of business hours

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/business-hours"
);

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

let body = {
    "day": "monfri",
    "from": "09:00:00",
    "to": "17:00:00",
    "forModel": "company"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/business-hours';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'day' => 'monfri',
            'from' => '09:00:00',
            'to' => '17:00:00',
            'forModel' => 'company',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/business-hours" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"day\": \"monfri\",
    \"from\": \"09:00:00\",
    \"to\": \"17:00:00\",
    \"forModel\": \"company\"
}"

Example response (201):

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

[
    {
        "id": 1,
        "day": "mon",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 2,
        "day": "tue",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 3,
        "day": "wed",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 4,
        "day": "thu",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 5,
        "day": "fri",
        "start": "09:00:00",
        "end": "17:00:00"
    }
]
 

Request   

POST api/tools/company/business-hours

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

day   string   

Must be either all, monfri, satsun, sunthu, mon, tue, wed, thu, fri, sat or sun. Example: monfri

from   string  optional  

The start time of the business hours in the format "HH:mm:ss". Example: 09:00:00

to   string  optional  

The end time of the business hours in the format "HH:mm:ss". Example: 17:00:00

forModel   string   

The model type, can be 'company' or 'agent'. Example: company

modelId   integer  optional  

The id of the agent when using agent in forModel.

Business Hours - Delete

requires authentication

Delete a set of Business Hours

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/business-hours/1"
);

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

let body = {
    "forModel": "company"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/business-hours/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'forModel' => 'company',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/company/business-hours/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"forModel\": \"company\"
}"

Example response (200):


[
    {
        "id": 1,
        "day": "mon",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 2,
        "day": "tue",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 3,
        "day": "wed",
        "start": "09:00:00",
        "end": "17:00:00"
    },
    {
        "id": 4,
        "day": "thu",
        "start": "09:00:00",
        "end": "17:00:00"
    }
]
 

Request   

DELETE api/tools/company/business-hours/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the business hour. Example: 1

business_hour_id   integer   

The ID of the set of business hours to delete. Example: 1

Body Parameters

forModel   string   

The model type, can be 'company' or 'agent'. Example: company

modelId   integer  optional  

The id of the agent when using agent in forModel.

Calendar Sync

Calendar Sync Settings - Index

requires authentication

Get all calendar sync settings

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings"
);

const params = {
    "sort_by": "operator",
    "direction": "asc",
    "page": "1",
    "per_page": "10",
    "search": "Google",
};
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();
$url = 'https://portal.timetoreply.com/api/tools/company/calendar-sync-settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'operator',
            'direction' => 'asc',
            'page' => '1',
            'per_page' => '10',
            'search' => 'Google',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings?sort_by=operator&direction=asc&page=1&per_page=10&search=Google" \
    --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": [],
    "first_page_url": "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings?page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings",
    "per_page": 2,
    "prev_page_url": null,
    "to": null,
    "total": 0
}
 

Request   

GET api/tools/company/calendar-sync-settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

in:operator,value The field to sort by. Example: operator

direction   string  optional  

in:asc,desc The direction to sort. Example: asc

page   integer  optional  

The page number. Example: 1

per_page   integer  optional  

max:100 The number of items per page. Example: 10

search   string  optional  

Search by value. Example: Google

Calendar Sync Settings - Store

requires authentication

Save a new calendar sync setting

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings"
);

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

let body = {
    "operator": "contains",
    "value": "Out of Office"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/calendar-sync-settings';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'operator' => 'contains',
            'value' => 'Out of Office',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"operator\": \"contains\",
    \"value\": \"Out of Office\"
}"

Example response (200):

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

{
    "company_id": 1,
    "operator": "contains",
    "value": "Out of Office",
    "updated_at": "2024-10-04 15:26:35",
    "created_at": "2024-10-04 15:26:35",
    "id": 2
}
 

Request   

POST api/tools/company/calendar-sync-settings

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

operator   string   

The operator to use for the value. Example: contains

value   string   

The value to use for the operator. Example: Out of Office

Calendar Sync Settings - Update

requires authentication

Update an existing calendar sync setting

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings/1"
);

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

let body = {
    "operator": "contains",
    "value": "Out of Office"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/calendar-sync-settings/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'operator' => 'contains',
            'value' => 'Out of Office',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PUT \
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"operator\": \"contains\",
    \"value\": \"Out of Office\"
}"

Example response (200):


{
    "id": 1,
    "company_id": 1,
    "operator": "contains",
    "value": "Out of Office",
    "created_at": "2024-01-01 00:00:00",
    "updated_at": "2024-01-01 00:00:00"
}
 

Request   

PUT api/tools/company/calendar-sync-settings/{id}

PATCH api/tools/company/calendar-sync-settings/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the calendar sync setting. Example: 1

Body Parameters

operator   string   

The operator to use for the value. Example: contains

value   string   

The value to use for the operator. Example: Out of Office

Calendar Sync Settings - Delete

requires authentication

Delete a calendar sync setting

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/calendar-sync-settings/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/company/calendar-sync-settings/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: []
 

{
    "status": "Calendar sync setting deleted."
}
 

Request   

DELETE api/tools/company/calendar-sync-settings/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the calendar sync setting. Example: 1

calandar_sync_setting_id   integer   

the ID of the Calander Sync Setting. Example: 1

Leave Days

Leave Days - Store Range

requires authentication

Store a range of leave days

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/leave-days/range"
);

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

let body = {
    "from": "2020-01-01",
    "to": "2020-01-31",
    "type": "leave",
    "forModel": "company"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/leave-days/range';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'from' => '2020-01-01',
            'to' => '2020-01-31',
            'type' => 'leave',
            'forModel' => 'company',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/leave-days/range" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"from\": \"2020-01-01\",
    \"to\": \"2020-01-31\",
    \"type\": \"leave\",
    \"forModel\": \"company\"
}"

Example response (200):

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

[
    {
        "id": 1,
        "type": "leave",
        "date": "2020-01-01"
    },
    {
        "id": 2,
        "type": "leave",
        "date": "2020-01-02"
    },
    {
        "id": 3,
        "type": "leave",
        "date": "2020-01-03"
    },
    {
        "id": 4,
        "type": "leave",
        "date": "2020-01-04"
    },
    {
        "id": 5,
        "type": "leave",
        "date": "2020-01-05"
    },
    {
        "date": "2020-01-06",
        "type": "leave",
        "id": 6
    },
    {
        "date": "2020-01-07",
        "type": "leave",
        "id": 7
    },
    {
        "date": "2020-01-08",
        "type": "leave",
        "id": 8
    },
    {
        "date": "2020-01-09",
        "type": "leave",
        "id": 9
    },
    {
        "date": "2020-01-10",
        "type": "leave",
        "id": 10
    },
    {
        "date": "2020-01-11",
        "type": "leave",
        "id": 11
    },
    {
        "date": "2020-01-12",
        "type": "leave",
        "id": 12
    },
    {
        "date": "2020-01-13",
        "type": "leave",
        "id": 13
    },
    {
        "date": "2020-01-14",
        "type": "leave",
        "id": 14
    },
    {
        "date": "2020-01-15",
        "type": "leave",
        "id": 15
    },
    {
        "date": "2020-01-16",
        "type": "leave",
        "id": 16
    },
    {
        "date": "2020-01-17",
        "type": "leave",
        "id": 17
    },
    {
        "date": "2020-01-18",
        "type": "leave",
        "id": 18
    },
    {
        "date": "2020-01-19",
        "type": "leave",
        "id": 19
    },
    {
        "date": "2020-01-20",
        "type": "leave",
        "id": 20
    },
    {
        "date": "2020-01-21",
        "type": "leave",
        "id": 21
    },
    {
        "date": "2020-01-22",
        "type": "leave",
        "id": 22
    },
    {
        "date": "2020-01-23",
        "type": "leave",
        "id": 23
    },
    {
        "date": "2020-01-24",
        "type": "leave",
        "id": 24
    },
    {
        "date": "2020-01-25",
        "type": "leave",
        "id": 25
    },
    {
        "date": "2020-01-26",
        "type": "leave",
        "id": 26
    },
    {
        "date": "2020-01-27",
        "type": "leave",
        "id": 27
    },
    {
        "date": "2020-01-28",
        "type": "leave",
        "id": 28
    },
    {
        "date": "2020-01-29",
        "type": "leave",
        "id": 29
    },
    {
        "date": "2020-01-30",
        "type": "leave",
        "id": 30
    },
    {
        "date": "2020-01-31",
        "type": "leave",
        "id": 31
    }
]
 

Request   

POST api/tools/company/leave-days/range

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

from   string   

The from date for the range of leave days in the format "YYYY-MM-DD". Example: 2020-01-01

to   string   

The to date for the range of leave days in the format "YYYY-MM-DD". Example: 2020-01-31

type   string   

The type of leave day. Can be either leave or working. Example: leave

forModel   string   

The model type, can be 'company' or 'agent'. Example: company

modelId   integer  optional  

The ID of the mailbox/agent to add the leave day to if using agent as model type.

Leave Days - Store

requires authentication

Store a Leave Day

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/leave-days"
);

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

let body = {
    "year": "2020",
    "month": "Jan",
    "day": "01",
    "forModel": "company"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/leave-days';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'year' => '2020',
            'month' => 'Jan',
            'day' => '01',
            'forModel' => 'company',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/company/leave-days" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"year\": \"2020\",
    \"month\": \"Jan\",
    \"day\": \"01\",
    \"forModel\": \"company\"
}"

Example response (200):

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

{
    "id": 1,
    "type": "leave",
    "date": "2020-01-01"
}
 

Request   

POST api/tools/company/leave-days

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

year   string   

The Year for the leave day in the format "YYYY". Example: 2020

month   string   

The month for the leave day in the format "Mon". Example: Jan

day   string   

The day for the leave day in the format "DD". Example: 01

forModel   string   

The model type, can be 'company' or 'agent'. Example: company

modelId   integer  optional  

The ID of the mailbox/agent to add the leave day to if using agent as model type.

Leave Days - Delete

requires authentication

Delete a leave day

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/company/leave-days/1"
);

const params = {
    "forModel": "company",
};
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: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/company/leave-days/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'forModel' => 'company',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/company/leave-days/1?forModel=company" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Leave day removed."
}
 

Request   

DELETE api/tools/company/leave-days/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the leave day. Example: 1

leave_day_id   integer   

The ID of the Leave Day to delete. Example: 1

Query Parameters

forModel   string   

The model type, can be 'company' or 'agent'. Example: company

modelId   integer  optional  

The ID of the mailbox/agent to remove the leave day from if using agent as model type.

Users

Users - Invite

requires authentication

Invite a new user

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/invite-user"
);

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

let body = {
    "name": "Peter Rabbit",
    "email": "[email protected]",
    "role": "Restricted Manager",
    "agentPermissions": [
        1
    ],
    "teamPermissions": [
        1
    ],
    "groupPermissions": [
        1
    ],
    "customerGroupPermissions": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/users/invite-user';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'name' => 'Peter Rabbit',
            'email' => '[email protected]',
            'role' => 'Restricted Manager',
            'agentPermissions' => [
                1,
            ],
            'teamPermissions' => [
                1,
            ],
            'groupPermissions' => [
                1,
            ],
            'customerGroupPermissions' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/users/invite-user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"Peter Rabbit\",
    \"email\": \"[email protected]\",
    \"role\": \"Restricted Manager\",
    \"agentPermissions\": [
        1
    ],
    \"teamPermissions\": [
        1
    ],
    \"groupPermissions\": [
        1
    ],
    \"customerGroupPermissions\": [
        1
    ]
}"

Example response (200):

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

{
    "status": "Invitation sent successfully"
}
 

Request   

POST api/tools/users/invite-user

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

The name of the User you want to invite. Example: Peter Rabbit

email   string  optional  

The email of the User you want to invite. Example: [email protected]

role   string  optional  

The name of the Role to give to the user. Example: Restricted Manager

agentPermissions   integer[]  optional  

The IDs of the agents to grant this user permissions for. Only used for Restricted Manager Role.

teamPermissions   integer[]  optional  

The IDs of the Teams to grant this user permissions for. Only used for Restricted Manager Role.

groupPermissions   integer[]  optional  

The IDs of the Groups Mailbox to grant this user permissions for. Only used for Restricted Manager Role.

customerGroupPermissions   integer[]  optional  

The IDs of the Contact Groups to grant this user permissions for. Only used for Restricted Manager Role.

Users - Resend Invite

requires authentication

Resend Invitation to a new user

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/invite-user/1"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/users/invite-user/1';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request POST \
    "https://portal.timetoreply.com/api/tools/users/invite-user/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: []
 

{
    "status": "Invitation deleted successfully"
}
 

Request   

POST api/tools/users/invite-user/{user_invite_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_invite_id   string  optional  

The ID of the userInvite you want to send the reminder to. Example: 1

Users - Delete Invite

requires authentication

Delete Invitation to a new user

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/invite-user/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/users/invite-user/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/users/invite-user/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "Invitation deleted successfully"
}
 

Request   

DELETE api/tools/users/invite-user/{user_invite_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_invite_id   string  optional  

The ID of the userInvite you want to delete. Example: 1

Roles - List

requires authentication

List all possible roles

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/roles"
);

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();
$url = 'https://portal.timetoreply.com/api/tools/users/roles';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/users/roles" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


[
    {
        "id": 2,
        "name": "company_admin",
        "description": "Company Administrator"
    },
    {
        "id": 3,
        "name": "manager",
        "description": "Company Manager"
    },
    {
        "id": 4,
        "name": "restricted_manager",
        "description": "Restricted Manager"
    },
    {
        "id": 5,
        "name": "agent",
        "description": "Company Agent"
    }
]
 

Request   

GET api/tools/users/roles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Users - Show

requires authentication

Get a user, their role and their permissions

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/1"
);

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();
$url = 'https://portal.timetoreply.com/api/tools/users/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "id": 1,
    "firstname": "Peter",
    "lastname": "Rabbit",
    "email": "[email protected]",
    "phone": null,
    "country_code": null,
    "active": true,
    "company_id": 1,
    "created_at": "2020-01-01 00:00:00",
    "updated_at": "2020-01-01 00:00:00",
    "last_login_at": null,
    "last_login_ip": null,
    "provider": null,
    "provider_id": null,
    "complete_name": "Peter Rabbit",
    "php_time_zone": "UTC",
    "company": "TimeToReply",
    "timezone": "UTC",
    "role": "Company Administrator",
    "agentPermissions": [],
    "groupPermissions": [],
    "teamPermissions": [],
    "customerGroupPermissions": []
}
 

Request   

GET api/tools/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the user. Example: 1

user_id   integer   

The ID of the user to get. Example: 7

Users - Update

requires authentication

Update a user

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/1"
);

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

let body = {
    "role": "Restricted Manager",
    "agentPermissions": [
        1
    ],
    "teamPermissions": [
        1
    ],
    "groupPermissions": [
        1
    ],
    "customerGroupPermissions": [
        1
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/users/1';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'role' => 'Restricted Manager',
            'agentPermissions' => [
                1,
            ],
            'teamPermissions' => [
                1,
            ],
            'groupPermissions' => [
                1,
            ],
            'customerGroupPermissions' => [
                1,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request PATCH \
    "https://portal.timetoreply.com/api/tools/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role\": \"Restricted Manager\",
    \"agentPermissions\": [
        1
    ],
    \"teamPermissions\": [
        1
    ],
    \"groupPermissions\": [
        1
    ],
    \"customerGroupPermissions\": [
        1
    ]
}"

Example response (200):


{
    "id": 1,
    "firstname": "Peter",
    "lastname": "Rabbit",
    "email": "[email protected]",
    "phone": null,
    "country_code": null,
    "active": true,
    "company_id": 1,
    "created_at": "2020-01-01 00:00:00",
    "updated_at": "2020-01-01 00:00:00",
    "last_login_at": null,
    "last_login_ip": null,
    "provider": null,
    "provider_id": null,
    "complete_name": "Peter Rabbit",
    "php_time_zone": "UTC",
    "company": "TimeToReply",
    "timezone": "UTC",
    "role": "Company Administrator",
    "agentPermissions": [],
    "groupPermissions": [],
    "teamPermissions": [],
    "customerGroupPermissions": []
}
 

Request   

PATCH api/tools/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the user. Example: 1

user_id   integer   

The ID of the user to update. Example: 7

Body Parameters

role   string  optional  

The name of the Role to give to the user. Example: Restricted Manager

agentPermissions   integer[]  optional  

The IDs of the agents to grant this user permissions for. Only used for Restricted Manager Role.

teamPermissions   integer[]  optional  

The IDs of the Teams to grant this user permissions for. Only used for Restricted Manager Role.

groupPermissions   integer[]  optional  

The IDs of the Groups Mailbox to grant this user permissions for. Only used for Restricted Manager Role.

customerGroupPermissions   integer[]  optional  

The IDs of the Contact Groups to grant this user permissions for. Only used for Restricted Manager Role.

Users - Delete

requires authentication

Removes a user from your company (their user account will still exist, but it can no longer access your company data)

Example request:
const url = new URL(
    "https://portal.timetoreply.com/api/tools/users/1"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://portal.timetoreply.com/api/tools/users/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request DELETE \
    "https://portal.timetoreply.com/api/tools/users/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "status": "User removed from company successfully."
}
 

Request   

DELETE api/tools/users/{user_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   integer   

The ID of the user to delete. Example: 1

Users - List

requires authentication

List users

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

const params = {
    "sort_by": "name",
    "direction": "asc",
    "per_page": "2",
    "page": "1",
    "search": "peter",
};
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();
$url = 'https://portal.timetoreply.com/api/tools/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort_by' => 'name',
            'direction' => 'asc',
            'per_page' => '2',
            'page' => '1',
            'search' => 'peter',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl --request GET \
    --get "https://portal.timetoreply.com/api/tools/users?sort_by=name&direction=asc&per_page=2&page=1&search=peter" \
    --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": [],
    "first_page_url": "https://portal.timetoreply.com/api/tools/users?direction=asc&per_page=2&search=peter&page=1",
    "from": null,
    "last_page": 1,
    "last_page_url": "https://portal.timetoreply.com/api/tools/users?direction=asc&per_page=2&search=peter&page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://portal.timetoreply.com/api/tools/users?direction=asc&per_page=2&search=peter&page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://portal.timetoreply.com/api/tools/users",
    "per_page": 2,
    "prev_page_url": null,
    "to": null,
    "total": 0
}
 

Request   

GET api/tools/users

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort_by   string  optional  

The field to sort the users by. Example: name

direction   string  optional  

Sort asc or desc. Example: asc

per_page   number  optional  

The number of mailboxes to show per page. Example: 2

page   number  optional  

The page number. Example: 1

search   string  optional  

Optional search string. Example: peter