Sign Up
Home Getting Started SDK Guides AI Product Guide API Reference
Open in ChatGPT Open in Claude Open in Perplexity

GET /api/v1/incidents/{incident_id}

GET/api/v1/incidents/{incident_id}

Authenticate with Authorization: Bearer YOUR_API_KEY and X-Project-Id: YOUR_PROJECT_ID. Replace path placeholders and example values with your project's values.

Parameters

NameLocationTypePresenceDescription
X-Project-Idheaderstring (uuid)RequiredProject UUID. Use the project associated with your API key.
incident_idpathstring (uuid)Required

Examples

curl --request GET 'https://api.monoscope.tech/api/v1/incidents/YOUR_INCIDENT_ID' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'X-Project-Id: YOUR_PROJECT_ID'
import requests

response = requests.get(
  "https://api.monoscope.tech/api/v1/incidents/YOUR_INCIDENT_ID",
  headers={
  "Authorization": "Bearer YOUR_API_KEY",
  "X-Project-Id": "YOUR_PROJECT_ID"
},
  timeout=30,
)
response.raise_for_status()
print(response.text)
const response = await fetch("https://api.monoscope.tech/api/v1/incidents/YOUR_INCIDENT_ID", {
  method: "GET",
  headers: {
  "Authorization": "Bearer YOUR_API_KEY",
  "X-Project-Id": "YOUR_PROJECT_ID"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());

Responses

HTTP 200

Response defined by the API schema.

FieldTypePresenceDescription
closed_atstring (yyyy-mm-ddThh:MM:ssZ)Optional
idstring (uuid)Required
issue_idstring (uuid)Optional
last_event_atstring (yyyy-mm-ddThh:MM:ssZ)Required
phaseactive | recovered | resolvedRequired
project_idstring (uuid)Required
started_atstring (yyyy-mm-ddThh:MM:ssZ)Required
JSON schema
{
  "properties": {
    "closed_at": {
      "$ref": "#/components/schemas/UTCTime"
    },
    "id": {
      "$ref": "#/components/schemas/UUID"
    },
    "issue_id": {
      "$ref": "#/components/schemas/UUID"
    },
    "last_event_at": {
      "$ref": "#/components/schemas/UTCTime"
    },
    "phase": {
      "enum": [
        "active",
        "recovered",
        "resolved"
      ],
      "type": "string"
    },
    "project_id": {
      "$ref": "#/components/schemas/UUID"
    },
    "started_at": {
      "$ref": "#/components/schemas/UTCTime"
    }
  },
  "required": [
    "id",
    "project_id",
    "phase",
    "started_at",
    "last_event_at"
  ],
  "type": "object"
}

HTTP 400

Refused; error.code says why

FieldTypePresenceDescription
errorobjectRequired
JSON schema
{
  "properties": {
    "error": {
      "$ref": "#/components/schemas/ApiProblem"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

HTTP 401

Refused; error.code says why

FieldTypePresenceDescription
errorobjectRequired
JSON schema
{
  "properties": {
    "error": {
      "$ref": "#/components/schemas/ApiProblem"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

HTTP 404

Refused; error.code says why

FieldTypePresenceDescription
errorobjectRequired
JSON schema
{
  "properties": {
    "error": {
      "$ref": "#/components/schemas/ApiProblem"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Authentication · Errors and retries · OpenAPI specification