Status Page API
Learn about the Status Page API endpoints and how to programmatically access status data
Use the public Status Page API to render status information in your own application. These public reads do not require an AppGram API key. Use the project UUID and status-page slug, not the organization slug.
Read the overview
GET https://api.appgram.dev/api/v1/status-pages/public/PROJECT_ID/status/overviewThe JSON response uses the normal success and data envelope. A shortened fictional example follows; returned records can contain additional timestamps and fields.
{
"success": true,
"data": {
"status_page": {
"id": "example-status-page",
"project_id": "PROJECT_ID",
"name": "Example service status",
"slug": "status"
},
"current_status": "degraded_performance",
"status_breakdown": {
"operational": 1,
"degraded_performance": 1
},
"active_updates": [
{
"id": "example-update",
"title": "Slower API responses",
"status_type": "degraded_performance",
"state": "active",
"is_public": true,
"affected_services": [
"Public API"
],
"description": "We are investigating slower API responses.",
"resolved_at": null
}
],
"services": [
{
"id": "example-api",
"name": "Public API",
"group_name": "Core platform",
"is_active": true
}
],
"services_status": {
"Public API": "degraded_performance"
}
}
}Important fields
status_page: page identity, project, slug and description.current_status: overall raw status type.active_updatesandrecent_updates: incident/maintenance records; use IDs to deduplicate combined lists.services: public components and their grouping/order.services_status: status for the returned service keys/names. Follow the keys actually supplied.status_breakdownandstatus_type_labels: available counts and custom display labels.
Raw types include operational, maintenance, degraded_performance, partial_outage, major_outage and incident. Update lifecycle is active or resolved. Public UI labels are presentation choices; do not substitute them for the raw API values.
Read uptime history
GET https://api.appgram.dev/api/v1/status-pages/public/PROJECT_ID/status/uptime?days=90The data contains the reporting window, an overall row and per-service services rows. Daily entries distinguish measured uptime from no_data, which is not 100% availability. A null measured percentage should remain unknown in your UI.
Handle refresh and errors
Check the HTTP response and success value before using data. Render loading, error and stale states explicitly. Cache and refresh at a reasonable interval for your application; avoid overlapping duplicate requests or interpreting a failed request as an operational service. Fetch the latest overview after a relevant change and confirm the selected project/page.
Was this article helpful?