Skip to main content
GET
/
storage
/
streams
/
{stream}
/
search-by-subject
Search stream messages by subject pattern
curl --request GET \
  --url https://api.quiva.ai/storage/streams/{stream}/search-by-subject \
  --header 'Authorization: Bearer <token>'
{
  "body": {
    "results": [
      {
        "subject": "events.created",
        "data": "..."
      },
      {
        "subject": "events.updated",
        "data": "..."
      }
    ],
    "results_total": 2
  },
  "metadata": {
    "stream": "my-stream",
    "search": "events.*",
    "hits": 2
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

stream
string
required

Name of the stream

Query Parameters

Subject pattern to search for (supports wildcards)

limit
integer
default:10

Maximum number of results to return

Required range: 1 <= x <= 1000

Response

Search results

body
object
metadata
object