Skip to content

View a report template

Request to view a report template:

GET /api/v2/reports/<report-id>.json

Example of response:

{
    "report": {
        "report_id": "4992166a-d24b-435c-bb3f-d1dd7a083eb8",
        "report_type": "call_summary",
        "name": "Call summary",
        "description": null,
        "tenant_id": null,
        "owner_user_id": null,
        "period": "last_30d",
        "period_begin": null,
        "period_end": null,
        "timezone": "America/Los_Angeles",
        "build_timeout": null,
        "keep_history_days": 30,
        "use_cache": true,
        "user_can_change_filters": true,
        "row_limit": null,
        "filters": [],
        "created_at": "2021-04-07T14:49:05.928302-07:00",
        "page_size": "letter",
        "landscape_orientation": false,
        "email_report": false,
        "email_report_settings": {
            "send_to_emails": []
        },
        "summary_settings": [
            {
                "name": "count_calls",
                "header": "Calls - Total"
            },
            {
                "name": "minutes_total",
                "header": "Minutes - Total"
            },
            {
                "name": "user_recording_license",
                "header": "License - Recording"
            },
            {
                "name": "n_rows",
                "header": "# of rows"
            }
        ],
        "chart_settings": {
            "chart_style": "bar",
            "dimensions": [
                {
                    "name": "group",
                    "header": "Group"
                }
            ],
            "metrics": [
                {
                    "name": "count_calls",
                    "header": "Calls - Total"
                },
                {
                    "name": "minutes_total",
                    "header": "Minutes - Total"
                }
            ]
        },
        "column_settings": [
            {
                "name": "group",
                "header": "Group",
                "text_align": "left"
            },
            {
                "name": "user",
                "header": "User",
                "text_align": "right"
            },
            {
                "name": "count_calls",
                "header": "Calls - Total",
                "text_align": "right"
            },
            {
                "name": "minutes_total",
                "header": "Minutes - Total",
                "text_align": "right"
            },
            {
                "name": "user_name",
                "header": "User - Name",
                "text_align": "right"
            },
            {
                "name": "user_recording_license",
                "header": "License - Recording",
                "text_align": "right"
            }
        ],
        "sort_settings": [
            {
                "name": "group",
                "header": "group",
                "sort": "ASC"
            },
            {
                "name": "user",
                "header": "user",
                "sort": "ASC"
            },
            {
                "name": "user_name",
                "header": "user_name",
                "sort": "ASC"
            }
        ],
        "scheduler_type": null,
        "scheduler_minute": null,
        "scheduler_hour": null,
        "scheduler_day_of_month": null,
        "scheduler_month_of_year": null,
        "scheduler_day_of_week": null,
        "modified_time": "2024-07-17T10:48:01.028081-07:00",
        "_version_": 1
    }
}