Инциденты

GET https://pinga.live/api/incidents/
curl --request GET \
--url 'https://pinga.live/api/incidents/' \
--header 'Authorization: Bearer {api_key}' \
Параметры Детали Описание
page Необязательно Integer Номер страницы, с которой вы хотите получить результаты. По умолчанию 1.
results_per_page Необязательно Integer Сколько результатов вы хотите на странице. Допустимые значения: 10 , 25 , 50 , 100 , 250 , 500 , 1000. По умолчанию 25.
{ "data": [ { "id": 1, "user_id": 1, "monitor_id": 0, "start_monitor_log_id": 0, "end_monitor_log_id": 0, "heartbeat_id": 13, "start_heartbeat_log_id": 264, "end_heartbeat_log_id": 0, "start_datetime": "2025-07-07 19:36:14", "end_datetime": null, "last_failed_check_datetime": null, "failed_checks": 5, "notification_handlers_ids": [1,2,3], "comment": null } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://pinga.live/api/incidents?&page=1", "last": "https://pinga.live/api/incidents?&page=1", "next": null, "prev": null, "self": "https://pinga.live/api/incidents?&page=1" } }
GET https://pinga.live/api/incidents/{incident_id}
curl --request GET \
--url 'https://pinga.live/api/incidents/{incident_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "user_id": 1, "monitor_id": 0, "start_monitor_log_id": 0, "end_monitor_log_id": 0, "heartbeat_id": 13, "start_heartbeat_log_id": 264, "end_heartbeat_log_id": 0, "start_datetime": "2025-07-07 19:36:14", "end_datetime": null, "last_failed_check_datetime": null, "failed_checks": 5, "notification_handlers_ids": [1,2,3], "comment": null } }
POST https://pinga.live/api/incidents/{incident_id}
Параметры Детали Описание
comment Необязательно String -
curl --request POST \
--url 'https://pinga.live/api/incidents/{incident_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'comment=Example' \
{ "data": { "id": 1 } }
DELETE https://pinga.live/api/incidents/{incident_id}
curl --request DELETE \
--url 'https://pinga.live/api/incidents/{incident_id}' \
--header 'Authorization: Bearer {api_key}' \