Delivery match

List deliveries with an optional glob pattern and pagination via next. Each item includes delivery (id), type, name, and objects patterns — same shape as a full configuration row.

GET
{{host}}/v1/delivery/match?next={{next}}&pattern={{pattern}}
VERB:GET
BASE URL:{{host}}/v1/delivery/match
QUERY STRING:?next={{next}}&pattern={{pattern}}

Query parameters#

  • nextnumber
    Required

    Pagination cursor (required): use `0` for the first page; thereafter use the value returned by the previous response as the `next` query parameter. The response body returns the cursor for the next page. A value of `-1` means there is no further page — you have the last page of data.

    example: 0
  • patternstring
    Optional

    Optional glob-style pattern to filter.

    Values

    • pattern
    • *pattern
    • pattern*
    • *pattern*
    example: *

Headers#

Send these headers with the request. Names are case-insensitive per HTTP rules.
  • x-api-keyRequired

    Your BigState API key.

    *provide api key here*
  • Content-TypeRequired

    MIME type of the request body.

    application/json
  • AcceptRequired

    MIME types the client can understand in the response.

    application/json

See authentication headers here.

  • 200Response body · object

    Success. Returns a pagination cursor and full delivery rows (identifier, type, name, object patterns) for each match on this page.

    • nextnumber

      Pagination cursor (required): use `0` for the first page; thereafter use the value returned by the previous response as the `next` query parameter. The response body returns the cursor for the next page. A value of `-1` means there is no further page — you have the last page of data.

      example: 0
    • deliveriesarray[object]

      Delivery configurations that matched the pattern on this page.

      • deliveries[0].deliverystring

        Unique identifier of this delivery configuration.

        example: wsall
      • deliveries[0].namestring

        Human-readable name for this delivery configuration.

      • deliveries[0].typenumber

        Channel used to push state updates to subscribers.

        Values

        • WS = 1
        • HTTP = 2
        • FILE = 3
      • deliveries[0].objectsarray[string]

        Object name patterns (e.g. glob) whose state updates are sent through this delivery. Use "*" to include all objects.

  • 401

    Unauthorized.

  • 403

    Access denied. The caller does not have sufficient rights to perform this operation.

  • 400Response body · object

    Bad request.

    {
    "error": 6,
    "desc": "Invalid request"
    }
    • errornumber

      Numeric error code. See the error codes reference for the full list.

    • descstring

      Human-readable description of the error.

Match deliveries

List deliveries with optional glob pattern; each row includes id, type, name, and object patterns (paginated with `next`).

curl https://api.bigstate.dev/v1/delivery/match?next=0&pattern=* \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'

© 2024 BigState