appgram / docs
Dashboard

API REFERENCE

Analytics

Read comprehensive, form, and survey analytics.

v1.0

Analytics

Get comprehensive analytics across all sources

Returns unified analytics with friction scores, health metrics, and insights from all data sources

GET/api/v1/analytics/comprehensive

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Query parameters

end_datestringquery
include_insightsstringquery
include_scoresstringquery
include_timeseriesstringquery
periodstringquery
project_idstringquery
sourcesstringquery
start_datestringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/analytics/comprehensive
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/analytics/comprehensive' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "correlations": [
      {
        "correlation": 0,
        "description": "string",
        "metric_1": "string",
        "metric_2": "string",
        "source_1": "string",
        "source_2": "string"
      }
    ],
    "date_range": {
      "end_date": "string",
      "start_date": "string"
    },
    "engagement_score": {
      "components": {
        "feedback_volume": 0,
        "help_center_usage": 0,
        "survey_participation": 0,
        "voting_activity": 0
      },
      "score": 0,
      "trend": "string"
    },
    "forms": {
      "by_form": [
        {}
      ],
      "summary": {
        "active_forms": 0,
        "avg_submissions_per_form": 0,
        "response_rate": 0,
        "total_forms": 0,
        "total_submissions": 0
      },
      "timeseries": [
        {}
      ]
    },
    "friction_score": {
      "components": {
        "documentation_gaps": 0,
        "feature_gaps": 0,
        "onboarding_friction": 0,
        "stability_issues": 0,
        "support_friction": 0
      },
      "grade": "string",
      "score": 0,
      "trend": "string",
      "trend_change": 0
    },
    "generated_at": "string",
    "health_score": {
      "components": {
        "feature_velocity": 0,
        "response_time": 0,
        "uptime": 0,
        "user_satisfaction": 0
      },
      "grade": "string",
      "score": 0
    },
    "help_center": {
      "summary": {
        "published_articles": 0,
        "total_articles": 0,
        "total_flows": 0,
        "total_searches": 0,
        "total_views": 0
      },
      "timeseries": [
        {}
      ],
      "top_articles": [
        {}
      ],
      "top_searches": [
        {}
      ]
    },
    "insights": [
      {
        "action": "string",
        "description": "string",
        "metric": "string",
        "severity": "string",
        "sources": [],
        "threshold": 0,
        "title": "string",
        "type": "string",
        "value": 0
      }
    ],
    "releases": {
      "summary": {
        "draft_releases": 0,
        "published_releases": 0,
        "total_releases": 0,
        "total_views": 0
      },
      "timeseries": [
        {}
      ],
      "top_releases": [
        {}
      ]
    },
    "roadmaps": {
      "by_column": [
        {}
      ],
      "summary": {
        "completion_rate": 0,
        "items_with_target_date": 0,
        "total_items": 0,
        "total_roadmaps": 0,
        "total_views": 0
      },
      "timeseries": [
        {}
      ]
    },
    "sources": [
      "string"
    ],
    "status": {
      "by_service": {},
      "by_type": {},
      "summary": {
        "active_incidents": 0,
        "avg_resolution_time_ms": 0,
        "current_status": "string",
        "resolved_incidents": 0,
        "total_incidents": 0,
        "uptime_percentage": 0
      },
      "timeseries": [
        {}
      ]
    },
    "support": {
      "avg_resolution_time_ms": 0,
      "avg_response_time_ms": 0,
      "summary": {
        "open_tickets": 0,
        "resolution_rate": 0,
        "resolved_tickets": 0,
        "total_tickets": 0,
        "unassigned": 0,
        "waiting_on_customer": 0
      },
      "tickets_by_category": {},
      "tickets_by_priority": {},
      "tickets_by_status": {},
      "timeseries": [
        {}
      ]
    },
    "surveys": {
      "by_survey": [
        {}
      ],
      "summary": {
        "active_surveys": 0,
        "avg_completion_rate": 0,
        "avg_response_rate": 0,
        "avg_satisfaction": 0,
        "total_responses": 0,
        "total_surveys": 0
      },
      "timeseries": [
        {}
      ]
    },
    "timeseries": {
      "end_date": "string",
      "forms": [
        {}
      ],
      "help_center": [
        {}
      ],
      "period": "string",
      "releases": [
        {}
      ],
      "start_date": "string",
      "status": [
        {}
      ],
      "support": [
        {}
      ],
      "surveys": [
        {}
      ],
      "wishes": [
        {}
      ]
    },
    "wishes": {
      "by_category": {},
      "by_status": {},
      "summary": {
        "active_wishes": 0,
        "completion_rate": 0,
        "total_votes": 0,
        "total_wishes": 0
      },
      "timeseries": [
        {}
      ],
      "top_voted": [
        {}
      ]
    }
  },
  "success": true
}

Analytics

Get contact form analytics

Returns analytics for contact forms including submission rates and timeseries

Required API key scope: analytics:view.

GET/api/v1/analytics/forms

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Query parameters

end_datestringquery
periodstringquery
project_idstringquery
start_datestringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/analytics/forms
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/analytics/forms' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "by_form": [
      {
        "id": "string",
        "name": "string",
        "submission_count": 0
      }
    ],
    "summary": {
      "active_forms": 0,
      "avg_submissions_per_form": 0,
      "response_rate": 0,
      "total_forms": 0,
      "total_submissions": 0
    },
    "timeseries": [
      {
        "date": "string",
        "submissions": 0
      }
    ]
  },
  "success": true
}

Analytics

Get survey analytics

Returns analytics for surveys including response rates and timeseries

Required API key scope: analytics:view.

GET/api/v1/analytics/surveys

Authorizations

x-api-key (header)required

Request examples show the credential location. Use a server-side key with the permissions required by this operation.

Query parameters

end_datestringquery
periodstringquery
project_idstringquery
start_datestringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/analytics/surveys
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/analytics/surveys' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "data": {
    "by_survey": [
      {
        "id": "string",
        "response_count": 0,
        "response_rate": 0,
        "title": "string"
      }
    ],
    "summary": {
      "active_surveys": 0,
      "avg_completion_rate": 0,
      "avg_response_rate": 0,
      "avg_satisfaction": 0,
      "total_responses": 0,
      "total_surveys": 0
    },
    "timeseries": [
      {
        "date": "string",
        "responses": 0
      }
    ]
  },
  "success": true
}
—