appgram / docs
Dashboard

API REFERENCE

Monitors and status

Manage monitors and maintenance, and read public status.

v1.0
17 endpointsAuthentication →

Monitors

List monitors

Required API key scope: status:view.

GET/api/v1/monitors

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

status_page_idstringquery

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

GET /api/v1/monitors
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors' \
  --header 'x-api-key: <api-key>'
Response · 200
[
  {
    "auto_create_incident": true,
    "check_interval_seconds": 0,
    "check_regions": [
      "string"
    ],
    "consecutive_failures": 0,
    "consecutive_successes": 0,
    "created_at": "1970-01-01T00:00:00.000Z",
    "current_response_time_ms": 0,
    "current_status": "degraded",
    "degraded_response_time_ms": 0,
    "description": "string",
    "expected_response_contains": "string",
    "expected_status_codes": [
      0
    ],
    "failure_threshold": 0,
    "http_body": "string",
    "http_headers": {},
    "http_method": "string",
    "id": "string",
    "incident_severity": "string",
    "is_active": true,
    "last_check_at": "1970-01-01T00:00:00.000Z",
    "last_down_at": "1970-01-01T00:00:00.000Z",
    "last_status_change_at": "1970-01-01T00:00:00.000Z",
    "last_up_at": "1970-01-01T00:00:00.000Z",
    "monitor_type": "dns",
    "name": "string",
    "notify_on_failure": true,
    "notify_on_recovery": true,
    "recovery_threshold": 0,
    "service_id": "string",
    "ssl_expiry_warning_days": 0,
    "status_page_id": "string",
    "timeout_seconds": 0,
    "updated_at": "1970-01-01T00:00:00.000Z",
    "url": "string",
    "verify_ssl": true
  }
]

Monitors

Create a monitor

Required API key scope: status:manage.

POST/api/v1/monitors

Authorizations

x-api-key (header)required

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

Body

application/json
auto_create_incidentboolean
check_interval_secondsinteger
check_regionsarray
degraded_response_time_msinteger
descriptionstring
expected_response_containsstring
expected_status_codesarray
failure_thresholdinteger
http_bodystring
http_headersobject
http_methodstring
incident_severitystring
monitor_typestringrequired
namestringrequired
notify_on_failureboolean
notify_on_recoveryboolean
recovery_thresholdinteger
service_idstring
ssl_expiry_warning_daysinteger
status_page_idstringrequired
timeout_secondsinteger
urlstringrequired
verify_sslboolean

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

POST /api/v1/monitors
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "auto_create_incident": true,
  "check_interval_seconds": 0,
  "check_regions": [
    "string"
  ],
  "degraded_response_time_ms": 0,
  "description": "string",
  "expected_response_contains": "string",
  "expected_status_codes": [
    0
  ],
  "failure_threshold": 0,
  "http_body": "string",
  "http_headers": {},
  "http_method": "string",
  "incident_severity": "string",
  "monitor_type": "string",
  "name": "string",
  "notify_on_failure": true,
  "notify_on_recovery": true,
  "recovery_threshold": 0,
  "service_id": "string",
  "ssl_expiry_warning_days": 0,
  "status_page_id": "string",
  "timeout_seconds": 0,
  "url": "string",
  "verify_ssl": true
}'
Response · 201
{
  "auto_create_incident": true,
  "check_interval_seconds": 0,
  "check_regions": [
    "string"
  ],
  "consecutive_failures": 0,
  "consecutive_successes": 0,
  "created_at": "1970-01-01T00:00:00.000Z",
  "current_response_time_ms": 0,
  "current_status": "degraded",
  "degraded_response_time_ms": 0,
  "description": "string",
  "expected_response_contains": "string",
  "expected_status_codes": [
    0
  ],
  "failure_threshold": 0,
  "http_body": "string",
  "http_headers": {},
  "http_method": "string",
  "id": "string",
  "incident_severity": "string",
  "is_active": true,
  "last_check_at": "1970-01-01T00:00:00.000Z",
  "last_down_at": "1970-01-01T00:00:00.000Z",
  "last_status_change_at": "1970-01-01T00:00:00.000Z",
  "last_up_at": "1970-01-01T00:00:00.000Z",
  "monitor_type": "dns",
  "name": "string",
  "notify_on_failure": true,
  "notify_on_recovery": true,
  "recovery_threshold": 0,
  "service_id": "string",
  "ssl_expiry_warning_days": 0,
  "status_page_id": "string",
  "timeout_seconds": 0,
  "updated_at": "1970-01-01T00:00:00.000Z",
  "url": "string",
  "verify_ssl": true
}

Monitors

Create maintenance window

Required API key scope: status:manage.

POST/api/v1/monitors/maintenance

Authorizations

x-api-key (header)required

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

Body

application/json
descriptionstring
ends_atstringrequired
is_recurringboolean
monitor_idstring
namestringrequired
recurrence_rulestring
starts_atstringrequired
status_page_idstring

Responses

201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/monitors/maintenance
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors/maintenance' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "string",
  "ends_at": "1970-01-01T00:00:00.000Z",
  "is_recurring": true,
  "monitor_id": "string",
  "name": "string",
  "recurrence_rule": "string",
  "starts_at": "1970-01-01T00:00:00.000Z",
  "status_page_id": "string"
}'
Response · 201
{
  "created_at": "1970-01-01T00:00:00.000Z",
  "created_by_user_id": "string",
  "description": "string",
  "ends_at": "1970-01-01T00:00:00.000Z",
  "id": "string",
  "is_active": true,
  "is_recurring": true,
  "monitor_id": "string",
  "name": "string",
  "recurrence_rule": "string",
  "starts_at": "1970-01-01T00:00:00.000Z",
  "status_page_id": "string",
  "updated_at": "1970-01-01T00:00:00.000Z"
}

Monitors

Get public monitor status

GET/api/v1/monitors/public/{status_page_id}/status

Authorizations

None

No management API key is required. Supply the project context and any customer credential listed in this operation.

Path parameters

status_page_idstringpathrequired

Responses

200

OK

500

Internal Server Error

GET /api/v1/monitors/public/{status_page_id}/status
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/status'
Response · 200
[
  {
    "id": "string",
    "last_check_at": "1970-01-01T00:00:00.000Z",
    "name": "string",
    "response_time_ms": 0,
    "status": "degraded",
    "uptime_percent": 0
  }
]

Monitors

Get public monitor uptime

GET/api/v1/monitors/public/{status_page_id}/uptime

Authorizations

None

No management API key is required. Supply the project context and any customer credential listed in this operation.

Path parameters

status_page_idstringpathrequired

Responses

200

OK

500

Internal Server Error

GET /api/v1/monitors/public/{status_page_id}/uptime
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/public/{status_page_id}/uptime'
Response · 200
{}

Monitors

Get a monitor

Required API key scope: status:view.

GET/api/v1/monitors/{id}

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

GET /api/v1/monitors/{id}
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "auto_create_incident": true,
  "check_interval_seconds": 0,
  "check_regions": [
    "string"
  ],
  "consecutive_failures": 0,
  "consecutive_successes": 0,
  "created_at": "1970-01-01T00:00:00.000Z",
  "current_response_time_ms": 0,
  "current_status": "degraded",
  "degraded_response_time_ms": 0,
  "description": "string",
  "expected_response_contains": "string",
  "expected_status_codes": [
    0
  ],
  "failure_threshold": 0,
  "http_body": "string",
  "http_headers": {},
  "http_method": "string",
  "id": "string",
  "incident_severity": "string",
  "is_active": true,
  "last_check_at": "1970-01-01T00:00:00.000Z",
  "last_down_at": "1970-01-01T00:00:00.000Z",
  "last_status_change_at": "1970-01-01T00:00:00.000Z",
  "last_up_at": "1970-01-01T00:00:00.000Z",
  "monitor_type": "dns",
  "name": "string",
  "notify_on_failure": true,
  "notify_on_recovery": true,
  "recovery_threshold": 0,
  "service_id": "string",
  "ssl_expiry_warning_days": 0,
  "status_page_id": "string",
  "timeout_seconds": 0,
  "updated_at": "1970-01-01T00:00:00.000Z",
  "url": "string",
  "verify_ssl": true
}

Monitors

Delete a monitor

Required API key scope: status:manage.

DELETE/api/v1/monitors/{id}

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

DELETE /api/v1/monitors/{id}
curl --request DELETE \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "message": "string",
  "success": true
}

Monitors

Update a monitor

Required API key scope: status:manage.

PATCH/api/v1/monitors/{id}

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Body

application/json
auto_create_incidentboolean
check_interval_secondsinteger
check_regionsarray
degraded_response_time_msinteger
descriptionstring
expected_response_containsstring
expected_status_codesarray
failure_thresholdinteger
http_bodystring
http_headersobject
http_methodstring
incident_severitystring
monitor_typestring
namestring
notify_on_failureboolean
notify_on_recoveryboolean
recovery_thresholdinteger
service_idstring
ssl_expiry_warning_daysinteger
timeout_secondsinteger
urlstring
verify_sslboolean

Responses

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

PATCH /api/v1/monitors/{id}
curl --request PATCH \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "auto_create_incident": true,
  "check_interval_seconds": 0,
  "check_regions": [
    "string"
  ],
  "degraded_response_time_ms": 0,
  "description": "string",
  "expected_response_contains": "string",
  "expected_status_codes": [
    0
  ],
  "failure_threshold": 0,
  "http_body": "string",
  "http_headers": {},
  "http_method": "string",
  "incident_severity": "string",
  "monitor_type": "string",
  "name": "string",
  "notify_on_failure": true,
  "notify_on_recovery": true,
  "recovery_threshold": 0,
  "service_id": "string",
  "ssl_expiry_warning_days": 0,
  "timeout_seconds": 0,
  "url": "string",
  "verify_ssl": true
}'
Response · 200
{
  "auto_create_incident": true,
  "check_interval_seconds": 0,
  "check_regions": [
    "string"
  ],
  "consecutive_failures": 0,
  "consecutive_successes": 0,
  "created_at": "1970-01-01T00:00:00.000Z",
  "current_response_time_ms": 0,
  "current_status": "degraded",
  "degraded_response_time_ms": 0,
  "description": "string",
  "expected_response_contains": "string",
  "expected_status_codes": [
    0
  ],
  "failure_threshold": 0,
  "http_body": "string",
  "http_headers": {},
  "http_method": "string",
  "id": "string",
  "incident_severity": "string",
  "is_active": true,
  "last_check_at": "1970-01-01T00:00:00.000Z",
  "last_down_at": "1970-01-01T00:00:00.000Z",
  "last_status_change_at": "1970-01-01T00:00:00.000Z",
  "last_up_at": "1970-01-01T00:00:00.000Z",
  "monitor_type": "dns",
  "name": "string",
  "notify_on_failure": true,
  "notify_on_recovery": true,
  "recovery_threshold": 0,
  "service_id": "string",
  "ssl_expiry_warning_days": 0,
  "status_page_id": "string",
  "timeout_seconds": 0,
  "updated_at": "1970-01-01T00:00:00.000Z",
  "url": "string",
  "verify_ssl": true
}

Monitors

Acknowledge an alert

Required API key scope: status:manage.

POST/api/v1/monitors/{id}/alert/acknowledge

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Body

application/json
notestring

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/monitors/{id}/alert/acknowledge
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/alert/acknowledge' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "note": "string"
}'
Response · 200
{
  "message": "string"
}

Monitors

Resolve an alert

Required API key scope: status:manage.

POST/api/v1/monitors/{id}/alert/resolve

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Body

application/json
notestring
reasonstring

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/monitors/{id}/alert/resolve
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/alert/resolve' \
  --header 'x-api-key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "note": "string",
  "reason": "string"
}'
Response · 200
{
  "message": "string"
}

Monitors

Check monitor now

Required API key scope: status:manage.

POST/api/v1/monitors/{id}/check-now

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

503

Service Unavailable

POST /api/v1/monitors/{id}/check-now
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/check-now' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "checked_at": "1970-01-01T00:00:00.000Z",
  "checked_from": "string",
  "dns_resolution_time_ms": 0,
  "dns_resolved_ips": [
    "string"
  ],
  "error_message": "string",
  "monitor_id": "string",
  "response_body": "string",
  "response_time_ms": 0,
  "ssl_days_until_expiry": 0,
  "ssl_expires_at": "1970-01-01T00:00:00.000Z",
  "ssl_issuer": "string",
  "status": "degraded",
  "status_code": 0
}

Monitors

List monitor checks

Required API key scope: status:view.

GET/api/v1/monitors/{id}/checks

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Query parameters

pagestringquery
per_pagestringquery

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/monitors/{id}/checks
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/checks' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "checks": [
    {
      "checked_at": "1970-01-01T00:00:00.000Z",
      "checked_from": "string",
      "dns_resolution_time_ms": 0,
      "dns_resolved_ips": [
        "string"
      ],
      "error_message": "string",
      "monitor_id": "string",
      "response_body": "string",
      "response_time_ms": 0,
      "ssl_days_until_expiry": 0,
      "ssl_expires_at": "1970-01-01T00:00:00.000Z",
      "ssl_issuer": "string",
      "status": "degraded",
      "status_code": 0
    }
  ],
  "pagination": {
    "has_next": true,
    "has_prev": true,
    "page": 0,
    "per_page": 0
  }
}

Monitors

Get check history

Required API key scope: status:view.

GET/api/v1/monitors/{id}/history

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Query parameters

limitstringquery

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/monitors/{id}/history
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/history' \
  --header 'x-api-key: <api-key>'
Response · 200
[
  {
    "checked_at": "1970-01-01T00:00:00.000Z",
    "checked_from": "string",
    "dns_resolution_time_ms": 0,
    "dns_resolved_ips": [
      "string"
    ],
    "error_message": "string",
    "monitor_id": "string",
    "response_body": "string",
    "response_time_ms": 0,
    "ssl_days_until_expiry": 0,
    "ssl_expires_at": "1970-01-01T00:00:00.000Z",
    "ssl_issuer": "string",
    "status": "degraded",
    "status_code": 0
  }
]

Monitors

Pause a monitor

Required API key scope: status:manage.

POST/api/v1/monitors/{id}/pause

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/monitors/{id}/pause
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/pause' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "message": "string"
}

Monitors

Get response time data

Required API key scope: status:view.

GET/api/v1/monitors/{id}/response-times

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Query parameters

endstringquery
startstringquery

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/monitors/{id}/response-times
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/response-times' \
  --header 'x-api-key: <api-key>'
Response · 200
[
  {
    "response_time_ms": 0,
    "status": "degraded",
    "timestamp": "1970-01-01T00:00:00.000Z"
  }
]

Monitors

Resume a monitor

Required API key scope: status:manage.

POST/api/v1/monitors/{id}/resume

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

POST /api/v1/monitors/{id}/resume
curl --request POST \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/resume' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "message": "string"
}

Monitors

Get monitor uptime

Required API key scope: status:view.

GET/api/v1/monitors/{id}/uptime

Authorizations

x-api-key (header)required

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

Path parameters

idstringpathrequired

Query parameters

periodstringquery

Responses

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

GET /api/v1/monitors/{id}/uptime
curl --request GET \
  --url 'https://api.appgram.dev/api/v1/monitors/{id}/uptime' \
  --header 'x-api-key: <api-key>'
Response · 200
{
  "avg_response_time_ms": 0,
  "period": "string",
  "total_downtime_seconds": 0,
  "total_incidents": 0,
  "uptime_percentage": 0
}
—