link

# Report

# Report List

The request for the list of all currently configured reports for current user. This list does not contain the reports which not supported in current API version. For more information about the API version see here. The returned list only includes reports for which the current user is licensed to run.

# Request

# Endpoint

https://host/CCS/API/v1/admin/report
URL Specs Description
protocol HTTPS is only supported protocol for API as it uses Basic authentication.
host Your service instance host.
method GET

# Headers

Key Sample Value Description
Content-Type application/json Content type of the request body.
Cookie JSESSIONID=<session_id>; JSessionID for the authentication request. Its optional, if x-api-key is provided.
x-api-key <api_key> API Key for the authentication request. Its optional, if cookie with JSessionID provided.

Note: Either Cookie or x-api-key header is required for authentication.

# Path Parameters:

There are no path parameters.

# Query Parameters:

There are no query parameters.

# Request Body

There is no request body.

# Response

The response contain the list of report items that represents configured reports for corresponding user.

# Success

With 200 HTTP Status Code:

[
    {
        "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7faa",
        "Type": 21,
        "Description": "ACD Agent List",
        "IsLicensed": true
    },
    {
        "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7fba",
        "Type": 0,
        "Description": "Active Contact List",
        "IsLicensed": true
    },
    {
        "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7fb8",
        "Type": 100,
        "Description": "Desktop Wallboard",
        "IsLicensed": true
    }
]

# Error

For more information on error codes, see Error Codes.

# Field Descriptions:

For more information on field descriptions, see Properties.

# Code Snippets

See the following code snippets to help you start with the integration: For more information check the playground here.

    # Report Execution And Data Retrieval

    The request for report execution and data retrieval. If the report is not running, it will be firstly executed. In case of running report the request returns data immediately. The execution can take couple of seconds and during this initialisation period the request will return only the status of execution.

    # Request

    # Endpoint

    https://host/CCS/API/v1/admin/report/{ID}/exec
    
    URL Specs Description
    protocol HTTPS is only supported protocol for API as it uses Basic authentication.
    host Your service instance host.
    method GET

    # Headers

    Key Sample Value Description
    Content-Type application/json Content type of the request body.
    Cookie JSESSIONID=<session_id>; JSessionID for the authentication request. Its optional, if x-api-key is provided.
    x-api-key <api_key> API Key for the authentication request. Its optional, if cookie with JSessionID provided.

    Note: Either Cookie or x-api-key header is required for authentication.

    Placeholder Description
    ID The report identifier retrieved from Report List request. The identifier is a UUID which contains some special characters and therefore the identifier must be URL encoded when it is specified as part of the URL.

    # Parameters:

    Parameter Description
    rowID The row ID of the first row to be included in the response. Useful for pagination to define the first row of the current page.
    The rowsPerPage parameter must also be specified for this parameter to be used.
    This parameter can only be used with "Historic Call List" and "ACD Acitivity Log" report types.
    rowsPerPage The number of rows to be included in the response. Useful for pagination to define the numbers of rows to show in the current page.
    The rowID parameter must also be specified for this parameter to be used.
    This parameter can only be used with "Historic Call List" and "ACD Acitivity Log" report types.

    # Request Body

    There is no request body.

    # Response

    # Success

    With 200 HTTP Status Code:

    {
        "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7faa",
        "Type": 21,
        "Description": "ACD Agent List",
        "Duration": "REALTIME",
        "ExecutionStatus": "WAITING"
    }
    

    # Error

    For more information on error codes, see Error Codes.

    # Field Descriptions:

    For more information on field descriptions, see Properties.

    # Code Snippets

    See the following code snippets to help you start with the integration: For more information check the playground here.

      # Report Execution From Template

      The request for executing a report from template. The execution will return the report ID and its execution status.

      # Request

      # Endpoint

      https://host/CCS/API/v1/report/template/{templateID}/telsys/{telsysID}/partition/{partitionID}
      
      URL Specs Description
      protocol HTTPS is only supported protocol for API as it uses Basic authentication.
      host Your service instance host.
      method GET

      # Headers

      Key Sample Value Description
      Content-Type application/json Content type of the request body.
      Cookie JSESSIONID=<session_id>; JSessionID for the authentication request. Its optional, if x-api-key is provided.
      x-api-key <api_key> API Key for the authentication request. Its optional, if cookie with JSessionID provided.

      Note: Either Cookie or x-api-key header is required for authentication.

      Placeholder Description
      templateID The template identifier retrieved from Report List request. The identifier is a UUID which contains some special characters and therefore the identifier must be URL encoded when it is specified as part of the URL.
      telsysID The telephony server identifier which should be used for generating the report.
      partitionID The partition ID on telephony server which should be used for generating the report.

      # Parameters:

      There are no query parameters.

      # Body

      There is no request body.

      # Response

      # Example Of Template Execution Response With 200 HTTP Status Code:

      {
          "ID": "e967f4c207accc67:72524d4f:18863ca33e2:-7faf",
          "Type": 50,
          "Description": "TempReport Half Hour Interval Abandoned Calls_1",
          "Duration": "X_DAYS_PREVIOUS",
          "ExecutionStatus": "WAITING"
      }
      

      # Error

      For more information on error codes, see Error Codes.

      # Field Descriptions:

      For more information on field descriptions, see Properties.

      # Code Snippets

      See the following code snippets to help you start with the integration: For more information check the playground here.

        # Report Execution And Data Retrieval Template

        The request for report execution and data retrieval. If the report is not running, it will be firstly executed. In case of running report the request returns data immediately. The execution can take couple of seconds and during this initialisation period the request will return only the status of execution.

        # Request

        # Endpoint

        https://host/CCS/API/v1/report/report/{ID}
        
        URL Specs Description
        protocol HTTPS is only supported protocol for API as it uses Basic authentication.
        host Your service instance host.
        method GET

        # Headers

        Key Sample Value Description
        Content-Type application/json Content type of the request body.
        Cookie JSESSIONID=<session_id>; JSessionID for the authentication request. Its optional, if x-api-key is provided.
        x-api-key <api_key> API Key for the authentication request. Its optional, if cookie with JSessionID provided.

        Note: Either Cookie or x-api-key header is required for authentication.

        Placeholder Description
        ID The report identifier retrieved from Report List request. The identifier is a UUID which contains some special characters and therefore the identifier must be URL encoded when it is specified as part of the URL.

        # Parameters:

        There are no query parameters.

        # Body

        There is no request body.

        # Response

        # Example Of Report Initialisation Response With 200 HTTP Status Code:

        {
            "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7faa",
            "Type": 21,
            "Description": "ACD Agent List",
            "Duration": "REALTIME",
            "ExecutionStatus": "WAITING"
        }
        

        # Error

        For more information on error codes, see Error Codes.

        # Field Descriptions:

        For more information on field descriptions, see Properties.

        # Code Snippets

        See the following code snippets to help you start with the integration: For more information check the playground here.

          # Report Close

          The request for closing an open report. The execution will return an empty response when finished.

          # Request

          # Endpoint

          https://host/CCS/API/v1/report/{ID}
          
          URL Specs Description
          protocol HTTPS is only supported protocol for API as it uses Basic authentication.
          host Your service instance host.
          method GET

          # Headers

          Key Sample Value Description
          Content-Type application/json Content type of the request body.
          Cookie JSESSIONID=<session_id>; JSessionID for the authentication request. Its optional, if x-api-key is provided.
          x-api-key <api_key> API Key for the authentication request. Its optional, if cookie with JSessionID provided.

          Note: Either Cookie or x-api-key header is required for authentication.

          Placeholder Description
          ID The report identifier retrieved from Report List request. The identifier is a UUID which contains some special characters and therefore the identifier must be URL encoded when it is specified as part of the URL.

          # Parameters:

          There are no query parameters.

          # Body

          There is no request body.

          # Response

          Empty response with 200 HTTP status code.

          # Error

          For more information on error codes, see Error Codes.

          # Field Descriptions:

          For more information on field descriptions, see Properties.

          # Code Snippets

          See the following code snippets to help you start with the integration: For more information check the playground here.

            # Error Codes

            For more generic error codes please refer : here.

            Error Code Error Message Description
            16000 INSIGHTS_HUB_REPORT_EMPTY_RESPONSE The Insights Hub report returned an empty response.
            16000 INSIGHTS_HUB_REPORT_EMPTY_RESPONSE The Insights Hub report returned an empty response.
            16001 INSIGHTS_HUB_REPORT_REPORT_LAUNCH_FAILED The Insights Hub report launch failed.
            16002 INSIGHTS_HUB_REPORT_REPORT_READ_FAILED The Insights Hub report read failed.
            16003 INSIGHTS_HUB_REPORT_TOO_MANY_REPORTS The maximum number of concurrent InsightsHub reports has been reached.
            16004 INSIGHTS_HUB_REPORT_FAILED The Insights Hub report failed.
            16005 INSIGHTS_HUB_REPORT_RESPONSE_INVALID The Insights Hub report returned an invalid response.
            16006 INSIGHTS_HUB_REPORT_TOO_SOON The Insights Hub report is being requested too soon after a previous request. Please wait and try again later.
            16007 INSIGHTS_HUB_REPORT_NO_SUCH_REPORT The specified Insights Hub report does not exist.
            Error Code Error Message Description
            11500 A valid billing report type must be specified within the request. Specify a valid BillingReportType (note that these values are case sensitive).
            Valid billing report types include: Summary, CDRs.

            # Properties

            # Report List

            # ID

            • type: string

            The identifier of the report. This identifier could be used to retrieve the report data in Report Execution And Data Retrieval request.


            # Type

            • type: number

            The type of the report. See following table with supported report types:

            Value Description
            0 Active Call List
            1 Historic Call List
            5 Unreturned Lost Calls
            20 Extension List
            21 ACD Agent List
            22 Hunt Group List
            23 Trunk Interface List
            40 Calls By Tel No
            41 Calls By DDI
            50 Calls By ½ Hour Interval
            51 Calls By ½ Hour & Day
            52 Calls By Day
            53 Calls By Week
            54 Calls By Month
            60 Calls By Account Code
            70 ACD Activity Log
            80 ACD Not-Available Code List
            100 Desktop Wallboard
            101 External Content

            # Description

            • type: string

            The description of the report.


            # IsLicensed

            • type: boolean

            Whether the authenticated user has permissions (is licensed) to run the report and get the report data.


            # Report Execution And Data Retrieval

            # ID

            • type: string

            The report identifier.


            # Type

            • type: number

            The report type. See the table of supported types above.


            # Description

            • type: string

            The report description configured in portal.


            # Duration

            • type: string

            The period of the report for which the stats were aggregated. See the table of possible values:

            Value Description
            REALTIME The report is run as a real-time report for the current day.
            DAY_CURRENT The report is run as a historically (non real-time) report for the current day.
            DAY_PREVIOUS The report is run as a historically (non real-time) report for the previous day.
            WEEK_CURRENT The report is run as a historically (non real-time) report for the current week (Mon-Sun).
            WEEK_PREVIOUS The report is run as a historically (non real-time) report for the previous week (Mon-Sun).
            MONTH_CURRENT The report is run as a historically (non real-time) report for the current calendar month.
            MONTH_PREVIOUS The report is run as a historically (non real-time) report for the previous calendar month.
            CUSTOM A custom historic date/time range.

            # ExecutionStatus

            • type: string

            The executions status of the corresponding report. See the table of possible values:

            Value Description
            CLOSED Report is closed (i.e. is no longer being aggregated in-memory or has actually been deleted). Please note that this execution status must not be confused with a 404 "Not Found" response where the report's identifier is invalid or it has previously been deleted from the Application User's account.
            CLOSING Report is closing (i.e. is being disposed of, or actually being deleted). Please note that this execution status must not be confused with a 404 "Not Found" response where the report's identifier is invalid or it has previously been deleted from the Application User's account.
            WAITING Report is queuing (waiting) for execution. Client application should keep requesting the report content data until the status is ACTIVE.
            INITIALISING Report is currently executing (i.e. statistic are being initialised from the server-side database and/or repository). Client application should keep requesting the report content data until the status is "ACTIVE.
            ACTIVE Report is active & ready to serve data to the client-side (i.e. finished initialisation/execution).
            UNLICENSED The current user isn't licensed to run the report (or the selected telephone system(s) and/or partitions that the report is configured to run across don't allow the particular report type).
            ERROR Report stopped initialisation/execution due to an error.

            # Example Of Report Initialisation Response With 200 HTTP Status Code:

            {
                "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7faf",
                "Type": 20,
                "Description": "Extension List",
                "Duration": "REALTIME",
                "ExecutionStatus": "ACTIVE",
                "ServerTimeZone": "CET",
                "UserTimeZone": "CET",
                "Header": {
                    "SortedBy": [],
                    "FieldDefinitions": [
                        {
                            "ID": 1500,
                            "DataType": "TEXT",
                            "Description": "Device ID"
                        },
                        {
                            "ID": 1550,
                            "DataType": "TEXT_TRUNCATABLE",
                            "Description": "Device Name"
                        },
                        {
                            "ID": 2100,
                            "DataType": "INTEGER_OR_LONG",
                            "Description": "Active Calls"
                        }
                    ]
                },
                "Body": {
                    "Rows": [
                        {
                            "ID": "46995813da8f9fc2:550c082c:16ee9a23ed7:-5604",
                            "Description": "Jack Burns",
                            "Statistics": [
                                {
                                    "ID": 1500,
                                    "Value": "100"
                                },
                                {
                                    "ID": 1550,
                                    "Value": "Jack Burns"
                                },
                                {
                                    "ID": 2100,
                                    "Value": "0"
                                }
                            ]
                        },
                        {
                            "ID": "46995813da8f9fc2:550c082c:16ee9a23ed7:-5603",
                            "Description": "Ruby Wagner",
                            "Statistics": [
                                {
                                    "ID": 1500,
                                    "Value": "101"
                                },
                                {
                                    "ID": 1550,
                                    "Value": "Ruby Wagner"
                                },
                                {
                                    "ID": 2100,
                                    "Value": "0"
                                }
                            ]
                        }
                    ]
                },
                "Footer": {
                    "ID": "46995813da8f9fc2:550c082c:16ee9a23ed7:-5605",
                    "Description": "All Extensions",
                    "Statistics": [
                        {
                            "ID": 1500,
                            "Value": ""
                        },
                        {
                            "ID": 1550,
                            "Value": ""
                        },
                        {
                            "ID": 2100,
                            "Value": ""
                        }
                    ]
                }
            }
            

            Fully initialised report data response contains all fields that were described above for the example of response where the report is not running yet. The next fields are generated only in the case that report is active (running / initialised).

            The report content is composed of 3 main objects: The report header, report body and report footer.

            The header object holds "metadata" information about the generated statistics in the body and footer.

            # See the detailed description of the FieldDefinitions array items fields:

            # ID

            • type: number

            The identifier of the statistic. This identifier should be used to pair the statistic definition with the statistic details in the row object in the in the report body.


            # DataType

            • type: string

            The type of the statistic. See the table with possible values:

            Value Statistic Value Example
            INTEGER_OR_LONG "4"
            FLOATORDOUBLE "4.3"
            PERCENTAGE "13.3%"
            DURATION "00:01:56"
            TIME "13:58:40" or "01:58:40 PM"
            DATE "Dec 09,2019 (Mon)"
            DATETIME "Dec 09,2019 13:58:40" or "Dec 09,2019 01:58:40 PM"
            TEXT "Text"
            TEXT_TRUNCATABLE "The really long text that could be truncated"
            ICON "Busy/A, ACD Ans"
            CURRENCY "$22,700.00"

            # Description

            • type: string

            The description of the statistic.


            # The report body consists of report rows array items where each item contains following fields:

            # ID

            • type: string

            The identifier of the report row.


            # Description

            • type: string

            The row specific description.


            # Each report row has statistics array where each item contains following fields:

            # ID

            • type: string

            The identifier of the statistic


            # Value

            • type: string

            The formatted stringified value of corresponding statistic.


            # Report Execution From Template

            # ID

            • type: string

            The report identifier.


            # Type

            • type: number

            The report type. See the table of supported types above.


            # Description

            • type: string

            The report description configured in portal.


            # Duration

            • type: string

            The period of the report for which the stats were aggregated. See the table of possible values:

            Value Description
            REALTIME The report is run as a real-time report for the current day.
            DAY_CURRENT The report is run as a historically (non real-time) report for the current day.
            DAY_PREVIOUS The report is run as a historically (non real-time) report for the previous day.
            WEEK_CURRENT The report is run as a historically (non real-time) report for the current week (Mon-Sun).
            WEEK_PREVIOUS The report is run as a historically (non real-time) report for the previous week (Mon-Sun).
            MONTH_CURRENT The report is run as a historically (non real-time) report for the current calendar month.
            MONTH_PREVIOUS The report is run as a historically (non real-time) report for the previous calendar month.
            CUSTOM A custom historic date/time range.

            # ExecutionStatus

            • type: string

            The executions status of the corresponding report. See the table of possible values:

            Value Description
            CLOSED Report is closed (i.e. is no longer being aggregated in-memory or has actually been deleted). Please note that this execution status must not be confused with a 404 "Not Found" response where the report's identifier is invalid or it has previously been deleted from the Application User's account.
            CLOSING Report is closing (i.e. is being disposed of, or actually being deleted). Please note that this execution status must not be confused with a 404 "Not Found" response where the report's identifier is invalid or it has previously been deleted from the Application User's account.
            WAITING Report is queuing (waiting) for execution. Client application should keep requesting the report content data until the status is ACTIVE.
            INITIALISING Report is currently executing (i.e. statistic are being initialised from the server-side database and/or repository). Client application should keep requesting the report content data until the status is "ACTIVE.
            ACTIVE Report is active & ready to serve data to the client-side (i.e. finished initialisation/execution).
            UNLICENSED The current user isn't licensed to run the report (or the selected telephone system(s) and/or partitions that the report is configured to run across don't allow the particular report type).
            ERROR Report stopped initialisation/execution due to an error.

            # Report Execution and Data Retrieval Template

            # ID

            • type: string

            The report identifier.


            # Type

            • type: number

            The report type. See the table of supported types above.


            # Description

            • type: string

            The report description configured in portal.


            # Duration

            • type: string

            The period of the report for which the stats were aggregated. See the table of possible values:

            Value Description
            REALTIME The report is run as a real-time report for the current day.
            DAY_CURRENT The report is run as a historically (non real-time) report for the current day.
            DAY_PREVIOUS The report is run as a historically (non real-time) report for the previous day.
            WEEK_CURRENT The report is run as a historically (non real-time) report for the current week (Mon-Sun).
            WEEK_PREVIOUS The report is run as a historically (non real-time) report for the previous week (Mon-Sun).
            MONTH_CURRENT The report is run as a historically (non real-time) report for the current calendar month.
            MONTH_PREVIOUS The report is run as a historically (non real-time) report for the previous calendar month.
            CUSTOM A custom historic date/time range.

            # ExecutionStatus

            • type: string

            The executions status of the corresponding report. See the table of possible values:

            Value Description
            CLOSED Report is closed (i.e. is no longer being aggregated in-memory or has actually been deleted). Please note that this execution status must not be confused with a 404 "Not Found" response where the report's identifier is invalid or it has previously been deleted from the Application User's account.
            CLOSING Report is closing (i.e. is being disposed of, or actually being deleted). Please note that this execution status must not be confused with a 404 "Not Found" response where the report's identifier is invalid or it has previously been deleted from the Application User's account.
            WAITING Report is queuing (waiting) for execution. Client application should keep requesting the report content data until the status is ACTIVE.
            INITIALISING Report is currently executing (i.e. statistic are being initialised from the server-side database and/or repository). Client application should keep requesting the report content data until the status is "ACTIVE.
            ACTIVE Report is active & ready to serve data to the client-side (i.e. finished initialisation/execution).
            UNLICENSED The current user isn't licensed to run the report (or the selected telephone system(s) and/or partitions that the report is configured to run across don't allow the particular report type).
            ERROR Report stopped initialisation/execution due to an error.

            # Example Of Report Initialisation Response With 200 HTTP Status Code:

            {
                "ID": "037aa2f4d69de9b2:7b46ab7e:16da5f5af94:-7faf",
                "Type": 20,
                "Description": "Extension List",
                "Duration": "REALTIME",
                "ExecutionStatus": "ACTIVE",
                "ServerTimeZone": "CET",
                "UserTimeZone": "CET",
                "Header": {
                    "SortedBy": [],
                    "FieldDefinitions": [
                        {
                            "ID": 1500,
                            "DataType": "TEXT",
                            "Description": "Device ID"
                        },
                        {
                            "ID": 1550,
                            "DataType": "TEXT_TRUNCATABLE",
                            "Description": "Device Name"
                        },
                        {
                            "ID": 2100,
                            "DataType": "INTEGER_OR_LONG",
                            "Description": "Active Calls"
                        }
                    ]
                },
                "Body": {
                    "Rows": [
                        {
                            "ID": "46995813da8f9fc2:550c082c:16ee9a23ed7:-5604",
                            "Description": "Jack Burns",
                            "Statistics": [
                                {
                                    "ID": 1500,
                                    "Value": "100"
                                },
                                {
                                    "ID": 1550,
                                    "Value": "Jack Burns"
                                },
                                {
                                    "ID": 2100,
                                    "Value": "0"
                                }
                            ]
                        },
                        {
                            "ID": "46995813da8f9fc2:550c082c:16ee9a23ed7:-5603",
                            "Description": "Ruby Wagner",
                            "Statistics": [
                                {
                                    "ID": 1500,
                                    "Value": "101"
                                },
                                {
                                    "ID": 1550,
                                    "Value": "Ruby Wagner"
                                },
                                {
                                    "ID": 2100,
                                    "Value": "0"
                                }
                            ]
                        }
                    ]
                },
                "Footer": {
                    "ID": "46995813da8f9fc2:550c082c:16ee9a23ed7:-5605",
                    "Description": "All Extensions",
                    "Statistics": [
                        {
                            "ID": 1500,
                            "Value": ""
                        },
                        {
                            "ID": 1550,
                            "Value": ""
                        },
                        {
                            "ID": 2100,
                            "Value": ""
                        }
                    ]
                }
            }
            

            Fully initialised report data response contains all fields that were described above for the example of response where the report is not running yet. The next fields are generated only in the case that report is active (running / initialised).

            The report content is composed of 3 main objects: The report header, report body and report footer.

            The header object holds "metadata" information about the generated statistics in the body and footer.

            # See the detailed description of the FieldDefinitions array items fields:

            # ID

            • type: number

            The identifier of the statistic. This identifier should be used to pair the statistic definition with the statistic details in the row object in the in the report body.


            # DataType

            • type: string

            The type of the statistic. See the table with possible values:

            Value Statistic Value Example
            INTEGER_OR_LONG "4"
            FLOATORDOUBLE "4.3"
            PERCENTAGE "13.3%"
            DURATION "00:01:56"
            TIME "13:58:40" or "01:58:40 PM"
            DATE "Dec 09,2019 (Mon)"
            DATETIME "Dec 09,2019 13:58:40" or "Dec 09,2019 01:58:40 PM"
            TEXT "Text"
            TEXT_TRUNCATABLE "The really long text that could be truncated"
            ICON "Busy/A, ACD Ans"
            CURRENCY "$22,700.00"

            # Description

            • type: string

            The description of the statistic.


            # The report body consists of report rows array items where each item contains following fields:

            # ID

            • type: string

            The identifier of the report row.


            # Description

            • type: string

            The row specific description.


            # Each report row has statistics array where each item contains following fields:

            # ID

            • type: string

            The identifier of the statistic


            # Value

            • type: string

            The formatted stringified value of corresponding statistic.