Kibana · Capability

Kibana APIs — streams

Kibana APIs — streams. 25 operations. Lead operation: Get stream list. Self-contained Naftiko capability covering one Kibana business surface.

Run with Naftiko Kibanastreams

What You Can Do

GET
Getstreams — Get stream list
/v1/api/streams
POST
Poststreamsdisable — Disable streams
/v1/api/streams/disable
POST
Poststreamsenable — Enable streams
/v1/api/streams/enable
POST
Poststreamsresync — Resync streams
/v1/api/streams/resync
DELETE
Deletestreamsname — Delete a stream
/v1/api/streams/{name}
GET
Getstreamsname — Get a stream
/v1/api/streams/{name}
PUT
Putstreamsname — Create or update a stream
/v1/api/streams/{name}
POST
Poststreamsnamefork — Fork a stream
/v1/api/streams/{name}/fork
GET
Getstreamsnameingest — Get ingest stream settings
/v1/api/streams/{name}/ingest
PUT
Putstreamsnameingest — Update ingest stream settings
/v1/api/streams/{name}/ingest
GET
Getstreamsnamequery — Get query stream settings
/v1/api/streams/{name}/query
PUT
Putstreamsnamequery — Upsert query stream settings
/v1/api/streams/{name}/query
POST
Poststreamsnamecontentexport — Export stream content
/v1/api/streams/{name}/content/export
POST
Poststreamsnamecontentimport — Import content into a stream
/v1/api/streams/{name}/content/import
GET
Getstreamsnamequeries — Get stream queries
/v1/api/streams/{name}/queries
POST
Poststreamsnamequeriesbulk — Bulk update queries
/v1/api/streams/{name}/queries/bulk
DELETE
Deletestreamsnamequeriesqueryid — Remove a query from a stream
/v1/api/streams/{name}/queries/{queryid}
PUT
Putstreamsnamequeriesqueryid — Upsert a query to a stream
/v1/api/streams/{name}/queries/{queryid}
GET
Getstreamsnamesignificantevents — Read the significant events
/v1/api/streams/{name}/significant-events
POST
Poststreamsnamesignificanteventsgenerate — Generate significant events
/v1/api/streams/{name}/significant-events/generate
POST
Poststreamsnamesignificanteventspreview — Preview significant events
/v1/api/streams/{name}/significant-events/preview
GET
Getstreamsstreamnameattachments — Get stream attachments
/v1/api/streams/{streamname}/attachments
POST
Poststreamsstreamnameattachmentsbulk — Bulk update attachments
/v1/api/streams/{streamname}/attachments/bulk
DELETE
Deletestreamsstreamnameattachmentsattachmenttypeattachmentid — Unlink an attachment from a stream
/v1/api/streams/{streamname}/attachments/{attachmenttype}/{attachmentid}
PUT
Putstreamsstreamnameattachmentsattachmenttypeattachmentid — Link an attachment to a stream
/v1/api/streams/{streamname}/attachments/{attachmenttype}/{attachmentid}

MCP Tools

get-stream-list

Get stream list

read-only idempotent
disable-streams

Disable streams

enable-streams

Enable streams

resync-streams

Resync streams

delete-stream

Delete a stream

idempotent
get-stream

Get a stream

read-only idempotent
create-update-stream

Create or update a stream

idempotent
fork-stream

Fork a stream

get-ingest-stream-settings

Get ingest stream settings

read-only idempotent
update-ingest-stream-settings

Update ingest stream settings

idempotent
get-query-stream-settings

Get query stream settings

read-only idempotent
upsert-query-stream-settings

Upsert query stream settings

idempotent
export-stream-content

Export stream content

import-content-stream

Import content into a stream

get-stream-queries

Get stream queries

read-only idempotent
bulk-update-queries

Bulk update queries

remove-query-stream

Remove a query from a stream

idempotent
upsert-query-stream

Upsert a query to a stream

idempotent
read-significant-events

Read the significant events

read-only idempotent
generate-significant-events

Generate significant events

preview-significant-events

Preview significant events

get-stream-attachments

Get stream attachments

read-only idempotent
bulk-update-attachments

Bulk update attachments

unlink-attachment-stream

Unlink an attachment from a stream

idempotent
link-attachment-stream

Link an attachment to a stream

idempotent

Capability Spec

kibana-streams.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kibana APIs — streams
  description: 'Kibana APIs — streams. 25 operations. Lead operation: Get stream list. Self-contained Naftiko capability covering
    one Kibana business surface.'
  tags:
  - Kibana
  - streams
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KIBANA_API_KEY: KIBANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: kibana-streams
    baseUri: https://{kibana_url}
    description: Kibana APIs — streams business capability. Self-contained, no shared references.
    resources:
    - name: api-streams
      path: /api/streams
      operations:
      - name: getstreams
        method: GET
        description: Get stream list
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-_disable
      path: /api/streams/_disable
      operations:
      - name: poststreamsdisable
        method: POST
        description: Disable streams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-_enable
      path: /api/streams/_enable
      operations:
      - name: poststreamsenable
        method: POST
        description: Enable streams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-_resync
      path: /api/streams/_resync
      operations:
      - name: poststreamsresync
        method: POST
        description: Resync streams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name
      path: /api/streams/{name}
      operations:
      - name: deletestreamsname
        method: DELETE
        description: Delete a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: getstreamsname
        method: GET
        description: Get a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: putstreamsname
        method: PUT
        description: Create or update a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-_fork
      path: /api/streams/{name}/_fork
      operations:
      - name: poststreamsnamefork
        method: POST
        description: Fork a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the parent stream to fork from.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-_ingest
      path: /api/streams/{name}/_ingest
      operations:
      - name: getstreamsnameingest
        method: GET
        description: Get ingest stream settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: putstreamsnameingest
        method: PUT
        description: Update ingest stream settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-_query
      path: /api/streams/{name}/_query
      operations:
      - name: getstreamsnamequery
        method: GET
        description: Get query stream settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: The name of the query stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: putstreamsnamequery
        method: PUT
        description: Upsert query stream settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the query stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-content-export
      path: /api/streams/{name}/content/export
      operations:
      - name: poststreamsnamecontentexport
        method: POST
        description: Export stream content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream to export content from.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-content-import
      path: /api/streams/{name}/content/import
      operations:
      - name: poststreamsnamecontentimport
        method: POST
        description: Import content into a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream to import content into.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-queries
      path: /api/streams/{name}/queries
      operations:
      - name: getstreamsnamequeries
        method: GET
        description: Get stream queries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-queries-_bulk
      path: /api/streams/{name}/queries/_bulk
      operations:
      - name: poststreamsnamequeriesbulk
        method: POST
        description: Bulk update queries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-queries-queryId
      path: /api/streams/{name}/queries/{queryId}
      operations:
      - name: deletestreamsnamequeriesqueryid
        method: DELETE
        description: Remove a query from a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: queryId
          in: path
          type: string
          description: The identifier of the query to remove.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: putstreamsnamequeriesqueryid
        method: PUT
        description: Upsert a query to a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: queryId
          in: path
          type: string
          description: The identifier of the query.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-significant_events
      path: /api/streams/{name}/significant_events
      operations:
      - name: getstreamsnamesignificantevents
        method: GET
        description: Read the significant events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: from
          in: query
          type: string
          required: true
        - name: to
          in: query
          type: string
          required: true
        - name: bucketSize
          in: query
          type: string
          description: The bucket size for aggregating events (e.g. "1m", "1h").
          required: true
        - name: query
          in: query
          type: string
          description: Query string to filter significant events on metadata fields
        - name: searchMode
          in: query
          type: string
          description: 'Search mode: keyword (BM25), semantic (vector), or hybrid (RRF). When omitted, defaults to hybrid
            with a silent keyword fallback on failure. When set explicitly'
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-significant_events-_generate
      path: /api/streams/{name}/significant_events/_generate
      operations:
      - name: poststreamsnamesignificanteventsgenerate
        method: POST
        description: Generate significant events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: connectorId
          in: query
          type: string
          description: Optional connector ID. If not provided, the default AI connector from settings will be used.
        - name: from
          in: query
          type: string
          required: true
        - name: to
          in: query
          type: string
          required: true
        - name: sampleDocsSize
          in: query
          type: number
          description: Number of sample documents to use for generation from the current data of stream
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-name-significant_events-_preview
      path: /api/streams/{name}/significant_events/_preview
      operations:
      - name: poststreamsnamesignificanteventspreview
        method: POST
        description: Preview significant events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: name
          in: path
          type: string
          description: The name of the stream.
          required: true
        - name: from
          in: query
          type: string
          required: true
        - name: to
          in: query
          type: string
          required: true
        - name: bucketSize
          in: query
          type: string
          description: The bucket size for aggregating events (e.g. "1m", "1h").
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-streamName-attachments
      path: /api/streams/{streamName}/attachments
      operations:
      - name: getstreamsstreamnameattachments
        method: GET
        description: Get stream attachments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: streamName
          in: path
          type: string
          description: The name of the stream
          required: true
        - name: query
          in: query
          type: string
          description: Search query to filter attachments by title
        - name: attachmentTypes
          in: query
          type: array
          description: Filter by attachment types (single value or array)
        - name: tags
          in: query
          type: array
          description: Filter by tags (single value or array)
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-streamName-attachments-_bulk
      path: /api/streams/{streamName}/attachments/_bulk
      operations:
      - name: poststreamsstreamnameattachmentsbulk
        method: POST
        description: Bulk update attachments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: streamName
          in: path
          type: string
          description: The name of the stream
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-streams-streamName-attachments-attachmentType-attachmentId
      path: /api/streams/{streamName}/attachments/{attachmentType}/{attachmentId}
      operations:
      - name: deletestreamsstreamnameattachmentsattachmenttypeattachmentid
        method: DELETE
        description: Unlink an attachment from a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: streamName
          in: path
          type: string
          description: The name of the stream
          required: true
        - name: attachmentType
          in: path
          type: string
          description: The type of the attachment
          required: true
        - name: attachmentId
          in: path
          type: string
          description: The ID of the attachment
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: putstreamsstreamnameattachmentsattachmenttypeattachmentid
        method: PUT
        description: Link an attachment to a stream
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: streamName
          in: path
          type: string
          description: The name of the stream
          required: true
        - name: attachmentType
          in: path
          type: string
          description: The type of the attachment
          required: true
        - name: attachmentId
          in: path
          type: string
          description: The ID of the attachment
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KIBANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kibana-streams-rest
    port: 8080
    description: REST adapter for Kibana APIs — streams. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/streams
      name: api-streams
      description: REST surface for api-streams.
      operations:
      - method: GET
        name: getstreams
        description: Get stream list
        call: kibana-streams.getstreams
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/disable
      name: api-streams-disable
      description: REST surface for api-streams-_disable.
      operations:
      - method: POST
        name: poststreamsdisable
        description: Disable streams
        call: kibana-streams.poststreamsdisable
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/enable
      name: api-streams-enable
      description: REST surface for api-streams-_enable.
      operations:
      - method: POST
        name: poststreamsenable
        description: Enable streams
        call: kibana-streams.poststreamsenable
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/resync
      name: api-streams-resync
      description: REST surface for api-streams-_resync.
      operations:
      - method: POST
        name: poststreamsresync
        description: Resync streams
        call: kibana-streams.poststreamsresync
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}
      name: api-streams-name
      description: REST surface for api-streams-name.
      operations:
      - method: DELETE
        name: deletestreamsname
        description: Delete a stream
        call: kibana-streams.deletestreamsname
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getstreamsname
        description: Get a stream
        call: kibana-streams.getstreamsname
        with:
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putstreamsname
        description: Create or update a stream
        call: kibana-streams.putstreamsname
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/fork
      name: api-streams-name-fork
      description: REST surface for api-streams-name-_fork.
      operations:
      - method: POST
        name: poststreamsnamefork
        description: Fork a stream
        call: kibana-streams.poststreamsnamefork
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/ingest
      name: api-streams-name-ingest
      description: REST surface for api-streams-name-_ingest.
      operations:
      - method: GET
        name: getstreamsnameingest
        description: Get ingest stream settings
        call: kibana-streams.getstreamsnameingest
        with:
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putstreamsnameingest
        description: Update ingest stream settings
        call: kibana-streams.putstreamsnameingest
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/query
      name: api-streams-name-query
      description: REST surface for api-streams-name-_query.
      operations:
      - method: GET
        name: getstreamsnamequery
        description: Get query stream settings
        call: kibana-streams.getstreamsnamequery
        with:
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putstreamsnamequery
        description: Upsert query stream settings
        call: kibana-streams.putstreamsnamequery
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/content/export
      name: api-streams-name-content-export
      description: REST surface for api-streams-name-content-export.
      operations:
      - method: POST
        name: poststreamsnamecontentexport
        description: Export stream content
        call: kibana-streams.poststreamsnamecontentexport
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/content/import
      name: api-streams-name-content-import
      description: REST surface for api-streams-name-content-import.
      operations:
      - method: POST
        name: poststreamsnamecontentimport
        description: Import content into a stream
        call: kibana-streams.poststreamsnamecontentimport
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/queries
      name: api-streams-name-queries
      description: REST surface for api-streams-name-queries.
      operations:
      - method: GET
        name: getstreamsnamequeries
        description: Get stream queries
        call: kibana-streams.getstreamsnamequeries
        with:
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/queries/bulk
      name: api-streams-name-queries-bulk
      description: REST surface for api-streams-name-queries-_bulk.
      operations:
      - method: POST
        name: poststreamsnamequeriesbulk
        description: Bulk update queries
        call: kibana-streams.poststreamsnamequeriesbulk
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/queries/{queryid}
      name: api-streams-name-queries-queryid
      description: REST surface for api-streams-name-queries-queryId.
      operations:
      - method: DELETE
        name: deletestreamsnamequeriesqueryid
        description: Remove a query from a stream
        call: kibana-streams.deletestreamsnamequeriesqueryid
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          queryId: rest.queryId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putstreamsnamequeriesqueryid
        description: Upsert a query to a stream
        call: kibana-streams.putstreamsnamequeriesqueryid
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          queryId: rest.queryId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/significant-events
      name: api-streams-name-significant-events
      description: REST surface for api-streams-name-significant_events.
      operations:
      - method: GET
        name: getstreamsnamesignificantevents
        description: Read the significant events
        call: kibana-streams.getstreamsnamesignificantevents
        with:
          name: rest.name
          from: rest.from
          to: rest.to
          bucketSize: rest.bucketSize
          query: rest.query
          searchMode: rest.searchMode
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/significant-events/generate
      name: api-streams-name-significant-events-generate
      description: REST surface for api-streams-name-significant_events-_generate.
      operations:
      - method: POST
        name: poststreamsnamesignificanteventsgenerate
        description: Generate significant events
        call: kibana-streams.poststreamsnamesignificanteventsgenerate
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          connectorId: rest.connectorId
          from: rest.from
          to: rest.to
          sampleDocsSize: rest.sampleDocsSize
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{name}/significant-events/preview
      name: api-streams-name-significant-events-preview
      description: REST surface for api-streams-name-significant_events-_preview.
      operations:
      - method: POST
        name: poststreamsnamesignificanteventspreview
        description: Preview significant events
        call: kibana-streams.poststreamsnamesignificanteventspreview
        with:
          kbn-xsrf: rest.kbn-xsrf
          name: rest.name
          from: rest.from
          to: rest.to
          bucketSize: rest.bucketSize
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{streamname}/attachments
      name: api-streams-streamname-attachments
      description: REST surface for api-streams-streamName-attachments.
      operations:
      - method: GET
        name: getstreamsstreamnameattachments
        description: Get stream attachments
        call: kibana-streams.getstreamsstreamnameattachments
        with:
          streamName: rest.streamName
          query: rest.query
          attachmentTypes: rest.attachmentTypes
          tags: rest.tags
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{streamname}/attachments/bulk
      name: api-streams-streamname-attachments-bulk
      description: REST surface for api-streams-streamName-attachments-_bulk.
      operations:
      - method: POST
        name: poststreamsstreamnameattachmentsbulk
        description: Bulk update attachments
        call: kibana-streams.poststreamsstreamnameattachmentsbulk
        with:
          kbn-xsrf: rest.kbn-xsrf
          streamName: rest.streamName
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/streams/{streamname}/attachments/{attachmenttype}/{attachmentid}
      name: api-streams-streamname-attachments-attachmenttype-attachmentid
      description: REST surface for api-streams-streamName-attachments-attachmentType-attachmentId.
      operations:
      - method: DELETE
        name: deletestreamsstreamnameattachmentsattachmenttypeattachmentid
        description: Unlink an attachment from a stream
        call

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/kibana/refs/heads/main/capabilities/kibana-streams.yaml