# Get Outages from Custom Monitors

The Incidents endpoint is used to get the outages in the custom monitor for the last month.&#x20;

## Get outages of a custom monitor for the last 30 days

<mark style="color:blue;">`GET`</mark> `https://isdown.app/api/v2/custom_monitors/{custom_monitor_id}/incidents`

#### Path Parameters

| Name                                                  | Type    | Description                                                                                                                                 |
| ----------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| custom\_monitor\_id<mark style="color:red;">\*</mark> | Integer | ID for the custom monitor. Get the id from the url of the custom monitor. E.g., <https://isdown.app/all-company/monitors/105> it's **105.** |

#### Headers

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer API\_KEY |

{% tabs %}
{% tab title="200: OK " %}

```json
{
    "data": [
        {
            "id": "9878",
            "type": "custom_monitor_incident",
            "attributes": {
                "description": "Down in North America, Asia with HTTP status code 504",
                "created_at": "2024-08-17T17:22:44.670Z",
                "resolved_at": "2024-08-17T17:23:19.808Z",
                "updated_at": "2024-08-17T17:22:44.670Z",
                "resolved": true,
                "custom_monitor_url": "https://isdown.app/all-company/monitors/1"
            }
        }
    ]
}
```

{% endtab %}

{% tab title="401: Unauthorized When authorization is missing or is invalid" %}

```json
{
    "errors": [
        {
            "status": 401,
            "title": "Unauthorized access",
            "detail": "You are not authorized to access this resource"
        }
    ]
}
```

{% endtab %}

{% tab title="404: Not Found When we don't find the resource" %}

```json
{
    "errors": [
        {
            "status": 404,
            "title": "Resource not found",
            "detail": "The resource you are looking for does not exist"
        }
    ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.isdown.app/endpoints/custom-monitors/get-outages-from-custom-monitors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
