---
title: Get case timeline
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Case Management
---

# Get case timeline{% #get-case-timeline %}

{% tab title="v2" %}
**Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                       |
| ----------------- | ------------------------------------------------------------------ |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/cases/{case_id}/timelines |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/cases/{case_id}/timelines |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/cases/{case_id}/timelines      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/cases/{case_id}/timelines      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/cases/{case_id}/timelines  |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/cases/{case_id}/timelines     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/cases/{case_id}/timelines |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/cases/{case_id}/timelines |

### Overview

Returns the timeline of events for a case, including comments, status changes, and other activity. Supports pagination and sort order.

OAuth apps require the `cases_read` authorization [scope](https://docs.datadoghq.com/api/latest/scopes.md#case-management) to access this endpoint.



### Arguments

#### Path Parameters

| Name                      | Type   | Description        |
| ------------------------- | ------ | ------------------ |
| case_id [*required*] | string | Case's UUID or key |

#### Query Strings

| Name            | Type    | Description                                                                                                  |
| --------------- | ------- | ------------------------------------------------------------------------------------------------------------ |
| page[size]      | integer | Number of timeline cells to return per page.                                                                 |
| page[number]    | integer | Zero-based page number for pagination.                                                                       |
| sort[ascending] | boolean | If `true`, returns timeline cells in chronological order (oldest first). Defaults to `false` (newest first). |

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
Response containing the chronological list of timeline cells for a case.

| Parent field | Field                        | Type          | Description                                                                                                                                                      |
| ------------ | ---------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|              | data                         | [object]      | The `TimelineResponse` `data`.                                                                                                                                   |
| data         | attributes [*required*] | object        | Attributes of a timeline cell, representing a single event in a case's chronological activity log (for example, a comment, status change, or assignment update). |
| attributes   | author                       |  <oneOf> | The author of the timeline cell. Currently only user authors are supported.                                                                                      |
| author       | Option 1                     | object        | A user who authored a timeline cell.                                                                                                                             |
| Option 1     | content                      | object        | Profile information for the user who authored the timeline cell.                                                                                                 |
| content      | email                        | string        | The email address of the user.                                                                                                                                   |
| content      | handle                       | string        | The Datadog handle of the user.                                                                                                                                  |
| content      | id                           | string        | The UUID of the user.                                                                                                                                            |
| content      | name                         | string        | The display name of the user.                                                                                                                                    |
| Option 1     | type                         | enum          | The type of timeline cell author. Currently only `USER` is supported. Allowed enum values: `USER`                                                                |
| attributes   | cell_content                 |  <oneOf> | The content payload of a timeline cell, varying by cell type.                                                                                                    |
| cell_content | Option 1                     | object        | The content of a comment timeline cell.                                                                                                                          |
| Option 1     | message                      | string        | The text content of the comment. Supports Markdown formatting.                                                                                                   |
| attributes   | created_at                   | date-time     | Timestamp of when the cell was created                                                                                                                           |
| attributes   | deleted_at                   | date-time     | Timestamp of when the cell was deleted                                                                                                                           |
| attributes   | modified_at                  | date-time     | Timestamp of when the cell was last modified                                                                                                                     |
| attributes   | type                         | enum          | The type of content in the timeline cell. Currently only `COMMENT` is supported in this endpoint. Allowed enum values: `COMMENT`                                 |
| data         | id [*required*]         | string        | Timeline cell's identifier                                                                                                                                       |
| data         | type [*required*]       | enum          | JSON:API resource type for timeline cells. Allowed enum values: `timeline_cell`                                                                                  |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": [
    {
      "attributes": {
        "author": {
          "content": {
            "email": "string",
            "handle": "string",
            "id": "string",
            "name": "string"
          },
          "type": "USER"
        },
        "cell_content": {
          "message": "string"
        },
        "created_at": "2019-09-19T10:00:00.000Z",
        "deleted_at": "2019-09-19T10:00:00.000Z",
        "modified_at": "2019-09-19T10:00:00.000Z",
        "type": "COMMENT"
      },
      "id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
      "type": "timeline_cell"
    }
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="401" %}
Unauthorized
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Forbidden
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export case_id="f98a5a5b-e0ff-45d4-b2f5-afe6e74de504" \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/cases/${case_id}/timelines" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" 
                
{% /tab %}
