# Get a domain case timeline — API reference

> Returns the timeline entries, notifications and status updates of all incidents in the incident's domain case as one stream, or null when there is none.

Source: https://upfour.io/docs/api/incidents/get-a-domain-case-timeline

[Developers](https://upfour.io/docs/api.md)/[Incidents](https://upfour.io/docs/api/incidents.md)

Returns the timeline entries, notifications and status updates of all incidents in the incident's domain case as one stream, or null when there is none.

GET https://app.upfour.io/v1/incidents/{incidentID}/domain-case/timeline

scope incident.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `incidentID` required | uuid | path parameter |

## Returns

A successful request returns `200` with application/json.

Response fields 1 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | DomainCaseTimeline  · nullable | |
| DomainCaseTimeline · 110 fields FieldTypeDescription `domain_case` IncidentDomainCase  · nullable IncidentDomainCase · 22 fields FieldTypeDescription `end_reason` string  · nullable one of`recovered` `partially_recovered` `members_left` `ended_at` string (date-time)  · nullable `host_key` string `id` uuid `level` integer `max_level` integer `members` IncidentDomainCaseMember[]  · nullable Each item · 13 fields FieldTypeDescription `cause_class` string one of`dns` `tls` `timeout` `network` `http_5xx` `cause_text` string `detected_at` string (date-time) `incident_id` uuid  · nullable `incident_status` string  · nullable one of`open` `acknowledged` `resolved` `is_current` boolean `is_start_page` boolean `monitor_id` uuid `monitor_type` string `name` string `recovered_at` string (date-time)  · nullable `state` string one of`down` `recovered` `left` `target` string `monitored_pages` integer `opened_at` string (date-time) `notification_deliveries` DomainCaseTimelineDelivery[]  · nullable Each item · 28 fields FieldTypeDescription `attempt_count` integer  · nullable `channel_name` string `created_at` string (date-time) `event_type` string `incident_id` uuid `monitor_id` uuid  · nullable `monitor_name` string `provider` string `status` string one of`delivered` `in_progress` `cancelled` `not_sent` `failed` `unknown` `channel_id` uuid `devices` IncidentDeviceDelivery[] Each item · 13 fields FieldTypeDescription `device_id` uuid `device_label` string `kind` string `observed` string one of`opened` `delivered` `unknown` `platform` string one of`ios` `android` `push_class` string `repush` integer `requested_class` string `status` string one of`pending` `accepted` `failed` `expired` `suppressed` `accepted_at` string (date-time) `delivered_at` string (date-time) `error_code` string `opened_at` string (date-time) `notice_kind` string one of`initial` `reminder` `escalation` `reason_code` string one of`notification_policy` `do_not_disturb` `initial_not_accepted` `not_sent` `reminder_number` integer `update_id` uuid The note that caused this delivery, for a note written with notify true. Absent for every other delivery. `status_updates` IncidentStatusUpdate[]  · nullable Each item · 40 fields FieldTypeDescription `affected_monitor_ids` uuid[]  · nullable Monitors behind the affected components. `affected_resource_ids` uuid[]  · nullable `auto_end` boolean `auto_start` boolean `created_at` string (date-time) `ends_at` string (date-time)  · nullable `entries` StatusPageUpdateEntry[]  · nullable Each item · 9 fields FieldTypeDescription `created_at` string (date-time) `id` uuid `message` string `notify_subscribers` boolean `published_at` string (date-time) `source` string one of`manual` `automatic` `status` string one of`investigating` `identified` `monitoring` `resolved` `scheduled` `in_progress` `completed` `cancelled` `published` `update_id` uuid `updated_at` string (date-time) `id` uuid `message` string Mirrors the latest entry. `monitor_mode` string one of`none` `pause_checks` `notify_subscribers` boolean `page_host` string `page_name` string `published_at` string (date-time) `recurrence` string one of`none` `weekly` `monthly` `recurrence_until` string (date)  · nullable Last day of a recurring series (YYYY-MM-DD); null for no end. `reminder_minutes` integer  · nullable `source` string one of`manual` `automatic` `starts_at` string (date-time)  · nullable `status` string one of`investigating` `identified` `monitoring` `resolved` `scheduled` `in_progress` `completed` `cancelled` `published` Mirrors the latest entry. `status_page_id` uuid `timezone` string IANA time zone of a planned maintenance window; empty for other types. `title` string `update_type` string one of`incident` `maintenance` `report` `updated_at` string (date-time) `visibility` string one of`public` `draft` `closed_unmeasured` boolean Resolved, but the incident ended because monitoring resumed after a billing pause: nobody measured the recovery. `incident_group_id` uuid `incident_id` uuid `reminder_sent_at` string (date-time) `series_id` uuid `updates` DomainCaseTimelineUpdate[]  · nullable Each item · 16 fields FieldTypeDescription `actor_label` string `actor_type` string `actor_user_id` uuid  · nullable `created_at` string (date-time) `event_type` string Runner reports appear in internal timelines as runner_run. The payload contains the stage and event_id. Deliveries are grouped by event and include runner_count. Other stages include the runner name, handler and the reported result or skip reason where applicable. For these entries, created_at is the server receipt time. `id` uuid `incident_id` uuid `message` string `monitor_id` uuid  · nullable `monitor_name` string `payload` object  · nullable free-form keys `pinned_at` string (date-time)  · nullable When the note was pinned. Null for a note that is not pinned and for every other entry type. Pinning writes its own timeline entry (note_pinned, note_unpinned), never notifies and is never public. `pinned_by` uuid  · nullable The user who pinned the note. `message_code` string Names a fixed system text of message so a client can translate it; empty for free text. `message_params` map of string Values for the message_code text. `pinned_by_label` string Name or email of the user who pinned the note. Omitted when the note is not pinned. | | |

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |
| 403 | [permission_denied](https://upfour.io/docs/api/errors#code-permission_denied) | The credentials do not permit this action. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[PreviousGet an incident domain case](https://upfour.io/docs/api/incidents/get-an-incident-domain-case.md) [NextAcknowledge a domain case](https://upfour.io/docs/api/incidents/acknowledge-a-domain-case.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/domain-case/timeline" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/domain-case/timeline", {
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/domain-case/timeline",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/domain-case/timeline", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/domain-case/timeline");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```json
{
  "data": {
    "domain_case": {
      "end_reason": "recovered",
      "ended_at": "2026-01-15T09:30:00Z",
      "host_key": "example.com",
      "id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
      "level": 1,
      "max_level": 1,
      "members": [
        {
          "cause_class": "dns",
          "cause_text": "example",
          "detected_at": "2026-01-15T09:30:00Z",
          "incident_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
          "incident_status": "open",
          "is_current": false,
          "is_start_page": false,
          "monitor_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
          "monitor_type": "example",
          "name": "Example",
          "recovered_at": "2026-01-15T09:30:00Z",
          "state": "down",
          "target": "example"
        }
      ],
      "monitored_pages": 1,
      "opened_at": "2026-01-15T09:30:00Z"
    },
    "notification_deliveries": [
      {
        "attempt_count": 1,
        "channel_name": "example",
        "created_at": "2026-01-15T09:30:00Z",
        "event_type": "example",
        "incident_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "monitor_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "monitor_name": "example",
        "provider": "example",
        "status": "delivered"
      }
    ],
    "status_updates": [
      {
        "affected_monitor_ids": [
          "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
        ],
        "affected_resource_ids": [
          "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
        ],
        "auto_end": false,
        "auto_start": false,
        "created_at": "2026-01-15T09:30:00Z",
        "ends_at": "2026-01-15T09:30:00Z",
        "entries": [
          {
            "created_at": "2026-01-15T09:30:00Z",
            "id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
            "message": "example",
            "notify_subscribers": false,
            "published_at": "2026-01-15T09:30:00Z",
            "source": "manual",
            "status": "investigating",
            "update_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
            "updated_at": "2026-01-15T09:30:00Z"
          }
        ],
        "id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "message": "example",
        "monitor_mode": "none",
        "notify_subscribers": false,
        "page_host": "example.com",
        "page_name": "example",
        "published_at": "2026-01-15T09:30:00Z",
        "recurrence": "none",
        "recurrence_until": "2026-01-15",
        "reminder_minutes": 1,
        "source": "manual",
        "starts_at": "2026-01-15T09:30:00Z",
        "status": "investigating",
        "status_page_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "timezone": "example",
        "title": "example",
        "update_type": "incident",
        "updated_at": "2026-01-15T09:30:00Z",
        "visibility": "public"
      }
    ],
    "updates": [
      {
        "actor_label": "example",
        "actor_type": "example",
        "actor_user_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "created_at": "2026-01-15T09:30:00Z",
        "event_type": "example",
        "id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "incident_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "message": "example",
        "monitor_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "monitor_name": "example",
        "payload": {},
        "pinned_at": "2026-01-15T09:30:00Z",
        "pinned_by": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
      }
    ]
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 403

```json
{
  "error": {
    "code": "permission_denied",
    "message": "The credentials do not permit this action.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
