Get Timelines or Timeline templates Beta

GET /api/timelines

Get a list of all saved Timelines or Timeline templates.

Query parameters

  • only_user_favorite string | null

    If true, only timelines that are marked as favorites by the user are returned.

    Values are true or false.

  • timeline_type string | null

    The type of timeline to create. Valid values are default and template.

    Values are default or template.

  • The field to sort the timelines by.

    Values are title, description, updated, or created.

  • Values are asc or desc.

  • page_size string | null
  • page_index string | null
  • status string | null

    The status of the timeline. Valid values are active, draft, and immutable.

    Values are active, draft, or immutable.

Responses

GET /api/timelines
curl \
 -X GET https://<KIBANA_URL>/api/timelines
Response examples (200)
{
  "customTemplateTimelineCount": 42.0,
  "defaultTimelineCount": 42.0,
  "elasticTemplateTimelineCount": 42.0,
  "favoriteCount": 42.0,
  "templateTimelineCount": 42.0,
  "timeline": [
    {
      "columns": [
        {
          "aggregatable": true,
          "category": "string",
          "columnHeaderType": "string",
          "description": "string",
          "example": "string",
          "id": "string",
          "indexes": [
            "string"
          ],
          "name": "string",
          "placeholder": "string",
          "searchable": true,
          "type": "string"
        }
      ],
      "created": 42.0,
      "createdBy": "string",
      "dataProviders": [
        {
          "and": [
            {
              "enabled": true,
              "excluded": true,
              "id": "string",
              "kqlQuery": "string",
              "name": "string",
              "queryMatch": {
                "displayField": "string",
                "displayValue": "string",
                "field": "string",
                "operator": "string",
                "value": "string"
              },
              "type": "default"
            }
          ],
          "enabled": true,
          "excluded": true,
          "id": "string",
          "kqlQuery": "string",
          "name": "string",
          "queryMatch": {
            "displayField": "string",
            "displayValue": "string",
            "field": "string",
            "operator": "string",
            "value": "string"
          },
          "type": "default"
        }
      ],
      "dataViewId": "string",
      "dateRange": {
        "end": "string",
        "start": "string"
      },
      "description": "string",
      "eqlOptions": {
        "eventCategoryField": "string",
        "query": "string",
        "size": "string",
        "tiebreakerField": "string",
        "timestampField": "string"
      },
      "eventType": "string",
      "excludedRowRendererIds": [
        "alert"
      ],
      "favorite": [
        {
          "favoriteDate": 42.0,
          "fullName": "string",
          "userName": "string"
        }
      ],
      "filters": [
        {
          "exists": "string",
          "match_all": "string",
          "meta": {
            "alias": "string",
            "controlledBy": "string",
            "disabled": true,
            "field": "string",
            "formattedValue": "string",
            "index": "string",
            "key": "string",
            "negate": true,
            "params": "string",
            "type": "string",
            "value": "string"
          },
          "missing": "string",
          "query": "string",
          "range": "string",
          "script": "string"
        }
      ],
      "indexNames": [
        "string"
      ],
      "kqlMode": "string",
      "kqlQuery": {
        "filterQuery": {
          "kuery": {
            "expression": "string",
            "kind": "string"
          },
          "serializedQuery": "string"
        }
      },
      "savedQueryId": "string",
      "savedSearchId": "string",
      "sort": {
        "columnId": "string",
        "columnType": "string",
        "sortDirection": "string"
      },
      "status": "active",
      "templateTimelineId": "string",
      "templateTimelineVersion": 42.0,
      "timelineType": "default",
      "title": "string",
      "updated": 42.0,
      "updatedBy": "string",
      "savedObjectId": "string",
      "version": "string",
      "eventIdToNoteIds": [
        {
          "created": 42.0,
          "createdBy": "string",
          "eventId": "string",
          "note": "string",
          "timelineId": "string",
          "updated": 42.0,
          "updatedBy": "string",
          "noteId": "string",
          "version": "string"
        }
      ],
      "noteIds": [
        "string"
      ],
      "notes": [
        {
          "created": 42.0,
          "createdBy": "string",
          "eventId": "string",
          "note": "string",
          "timelineId": "string",
          "updated": 42.0,
          "updatedBy": "string",
          "noteId": "string",
          "version": "string"
        }
      ],
      "pinnedEventIds": [
        "string"
      ],
      "pinnedEventsSaveObject": [
        {
          "created": 42.0,
          "createdBy": "string",
          "eventId": "string",
          "timelineId": "string",
          "updated": 42.0,
          "updatedBy": "string",
          "pinnedEventId": "string",
          "version": "string"
        }
      ]
    }
  ],
  "totalCount": 42.0
}
Response examples (400)
{
  "body": "string",
  "statusCode": 42.0
}