Get Incidents Status By RequestIDs

POST {{baseUrl}}/requests/status

  • This endpoint is used to get the status of incidents given list of request_ids
  • Requires access_token as a Bearer {{token}} in the Authorization header.

Response

  • The response contains the mapping from request_ids to incident status.
  • status field can be one of - suppressed, discarded, deduplicated, created, error.
  • status is error if the request_id is invalid. Both incident_id and event_id field won't be present if status is error
  • status is suppressed if the incident was suppressed due to suppression rules.
  • status is deduplicated if the incident was deduplicated due to deduplication rules.
  • status is discarded if the incident was discarded due to some deduplication rule. incident_id field won't be present if status is discarded.
  • otherwise, the status is created

Request Body

{"request_ids"=>["e7fdb900-cf52-47ac-bb5a-3c5fcdf265e1", "e7fdb900-cf52-47ac-bb5a-3c5fcdf265e7"]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"requests_status":{"e7fdb900-cf52-47ac-bb5a-3c5fcdf265e1":{"status":"created","incident_id":"624315646e3bcf000887304a","event_id":"6243156476faaf4887c447b3"},"a6f876f2-ddf6-4a11-a2c4-f182a3f95922":{"status":"deduplicated","incident_id":"624315190996cb00083beb4e","event_id":"62431519d08fc1d0f63f485f"},"a6f876f2-ddf6-4a11-a2c4-f182a3f95923":{"status":"suppressed","incident_id":"624315190996cb00083beb4f","event_id":"62431519d08fc1d0f63f485a"},"a6f876f2-ddf6-4a11-a2c4-f182a3f95924":{"status":"discarded","event_id":"62431519d08fc1d0f63f485b"},"INVALID_REQUEST_ID":{"status":"error"}},"meta":{"error_count":1,"success_count":4}}