Dashboard API
Product: NEXTMEGABYTE (Greenitco ITAM) · Module: API Documentation · Audience: Developer, Administrator
This page lists the NEXTMEGABYTE REST API endpoints for dashboard. All URLs are relative to your portal, for example https://your-domain.com/api/.... Authenticate first with the Login API and send the standard headers described in the API Overview. Example values are shortened and anonymized.
Get admin dashboard
GET /api/v2/jx-admin-dashboard
Returns dashboard counts and charts for administrators.
Headers: standard authenticated headers (apptoken, token, Content-Type: application/x-www-form-urlencoded). See API Overview.
Example response (values shortened and anonymized)
{
"dashboard": {
"total_assets": {
"tot": 941
},
"asset_ready_to_deploy": {
"tot": 705
},
"total_licenses": {
"tot": 209241
},
"assets_in_inventory": {
"tot": 240
},
"total_accessory": {
"tot": 1713
},
"avail_accessory": {
"tot": 1426
},
"total_open_tickets": {
"tot": 9
},
"total_resolved_tickets_by_today": {
"tot": 0
},
"total_tickets_onhold": {
"tot": 0
},
"total_tickets_waiting_for_first_response": {
"tot": 0
},
"total_not_assigned_tickets": {
"tot": 8
},
"last_checkout_checkin_records": {
"records": [
{
"...": "..."
},
"..."
]
},
"service_request_info": {
"my_approvals": 0
},
"board_info": [
{
"tot_items": 7,
"tot_active": "<string>",
"tot_per_iss": "<string>",
"tot_par_out": "<string>",
"tot_major": "<string>",
"overall_per": 14
}
],
"ticket_info": [
{
"tot": 32,
"tot_resolved": "<string>",
"tot_closed": "<string>",
"tot_not_resolved": "<string>",
"tot_critical": "<string>",
"tot_high": "<string>",
"tot_medium": "<string>",
"tot_low": "<string>",
"overall_per": 25,
"sla_breached": 13
}
],
"my_tickets": {
"tot": 7
},
"assigned_tickets": {
"tot": 1
},
"recently_updated_tickets": {
"tickets": [
{
"...": "..."
},
"..."
]
},
"handler_feed_back_count": [
{
"last7days_sum": "<string>",
"this_year_sum": "<string>",
"yesterday_sum": "<string>",
"today_sum": "<string>",
"this_month_sum": "<string>",
"last3months_sum": "<string>",
"last7days": 4,
"last7daysCount": 4,
"this_year": 4,
"this_yearCount": 5,
"yesterday": 0,
"yesterdayCount": 0,
"today": 0,
"todayCount": 0,
"this_month": 4,
"this_monthCount": 5,
"last3months": 4,
"last3monthsCount": 5
}
],
"isAssetsEnable": "<string>",
"...": "5 more fields"
}
}
Get dashboard
GET /api/v2/get-dashboard
Returns the dashboard for the signed-in user's role (tickets, service requests, devices).
Headers: standard authenticated headers (apptoken, token, Content-Type: application/x-www-form-urlencoded). See API Overview.
Top-level response fields: status, msg, overall_dashboard, dashboard, miscelleneous, user_app_version
Example response (values shortened and anonymized)
{
"status": "success",
"msg": "Database fetched successfully.",
"overall_dashboard": {
"total_open_tickets": 17,
"total_reopen_tickets": 0,
"total_resolved_tickets_by_today": 0,
"total_tickets_onhold": 0,
"total_tickets_waiting_for_first_response": 0,
"total_not_assigned_tickets": 16,
"service_request_info": {
"my_approvals": 0
},
"ticket_info": {
"total_tickets": 40,
"total_resolved": 7,
"total_unassigned": 16,
"total_waiting_for_response": 17,
"total_closed": 8,
"total_not_resolved": 25,
"total_critical": 22,
"total_high": 2,
"total_medium": 2,
"total_low": 14,
"overall_progress_percentage": 17,
"sla_breached": 13,
"assigned_tickets": 1
},
"recently_updated_tickets": [
{
"id": 127,
"subject": "<string>",
"assigned_to": null,
"status": "Open",
"status_id": 1,
"priority": "Critical",
"spam": null,
"creator_name": "<string>",
"updated_at_format": "14 Oct 2024 09:02 PM",
"color_code": "rose"
},
"..."
],
"handler_feed_back_count": {
"last7days_sum": "<string>",
"this_year_sum": "<string>",
"yesterday_sum": "<string>",
"today_sum": "<string>",
"this_month_sum": "<string>",
"last3months_sum": "<string>",
"last7days": 4,
"last_7_days_ticket_Count": 4,
"this_year": 4,
"this_year_ticket_count": 5,
"yesterday": 0,
"yesterday_ticket_count": 0,
"today": 0,
"today_ticket_count": 0,
"this_month": 0,
"this_month_ticket_count": 0,
"last3months": 0,
"last_3_month_ticket_count": 0
},
"service_request_count": {
"tot": 33,
"waiting_for_the_approval": 30,
"approval": 3,
"reject": 0
},
"ticket_waiting_for_rating": [],
"total_assets": 944,
"asset_ready_to_deploy": 705,
"total_licenses": 209241,
"assets_in_inventory": 240,
"total_accessory": 1715,
"available_accessory": 1428
},
"dashboard": {
"total_checkout_devices": 0,
"total_checkout_accessories": 0,
"total_checkout_license": 0,
"total_checkout_components": 0,
"last_checkout_checkin_records": [
{
"id": 5532,
"action_type": "<string>",
"asset_type": "<string>",
"asset_tag": "<string>",
"con_tag": null,
"accessory_name": null,
"lic_tag": null,
"lic_name": null,
"lic_batch_no": "<string>",
"acc_tag": null,
"checkin_checkout_date": "<string>"
},
"..."
],
"ticket_info": {
"total_tickets": 11,
"total_resolved": 1,
"total_open": 8,
"total_reopen": 0,
"total_closed": 1,
"total_not_resolved": 10,
"total_critical": 9,
"total_high": 1,
"total_medium": 0,
"total_low": 1,
"overall_progress_percentage": 9
},
"service_request_info": {
"my_approvals": 0
},
"recently_updated_tickets": [
{
"id": 126,
"subject": "<string>",
"status": "Open",
"status_id": 1,
"priority": "Critical",
"creator_name": "<string>",
"updated_at_format": "14 Oct 2024 08:55 PM"
},
"..."
],
"user_ticket_rating_info": {
"rating_given": null,
"overall_rating": null,
"highest_rating": null,
"lowest_rating": null
},
"tech_ticket_rating_info": {
"rating_given": null,
"overall_rating": null,
"highest_rating": null,
"lowest_rating": null
},
"ticket_waiting_for_rating": []
},
"miscelleneous": {
"board_info": {
"tot_items": 7,
"tot_active": 1,
"tot_per_iss": 2,
"tot_par_out": 2,
"tot_major": 2,
"overall_per": 14
},
"isAssetsEnable": "<string>",
"isTicketEnable": "<string>",
"isStatusBoardEnable": "<string>",
"isKDEnable": "<string>",
"androidVersion": 25,
"iosVersion": 20
},
"user_app_version": "<string>"
}
Get user dashboard
GET /api/v2/jx-dashboard
Returns dashboard data for normal users.
Headers: standard authenticated headers (apptoken, token, Content-Type: application/x-www-form-urlencoded). See API Overview.
Example response (values shortened and anonymized)
{
"dashboard": {
"total_checkout_devices": {
"tot": 0
},
"total_checkout_accessories": {
"tot": 0
},
"total_checkout_license": {
"tot": 0
},
"total_checkout_components": {
"tot": 0
},
"last_checkout_checkin_records": {
"records": [
{
"...": "..."
},
"..."
]
},
"board_info": [
{
"tot_items": 7,
"tot_active": "<string>",
"tot_per_iss": "<string>",
"tot_par_out": "<string>",
"tot_major": "<string>",
"overall_per": 14
}
],
"ticket_info": [
{
"tot": 7,
"tot_resolved": "<string>",
"tot_not_resolved": "<string>",
"tot_critical": "<string>",
"tot_high": "<string>",
"tot_medium": "<string>",
"tot_low": "<string>",
"overall_per": 0
}
],
"service_request_info": {
"my_approvals": 0
},
"recently_updated_tickets": {
"tickets": [
{
"...": "..."
},
"..."
]
},
"user_ticket_rating_info": [
{
"rating_given": null,
"overall_rating": null,
"highest_rating": null,
"lowest_rating": null
}
],
"tech_ticket_rating_info": [
{
"rating_given": null,
"overall_rating": null,
"highest_rating": null,
"lowest_rating": null
}
],
"isAssetsEnable": "<string>",
"isTicketEnable": "<string>",
"isStatusBoardEnable": "<string>",
"isKDEnable": "<string>",
"androidVersion": 25,
"iosVersion": 20
}
}