CloudEvents · Schema

SubscriptionRequest

Request body for creating or updating a CloudEvents subscription. Specifies the sink, protocol, and optional filter criteria.

Cloud-NativeEventGraduatedInteroperabilityMessagingSpecification

Properties

Name Type Description
sink string The URL of the event consumer where matching events will be delivered.
protocol string The protocol to use when delivering events to the sink.
protocolSettings object
source string Constrains the subscription to events from this source URI. If omitted, events from all sources are eligible for delivery.
types array List of CloudEvent types to subscribe to. Events with a 'type' attribute matching any entry in this list are eligible for delivery.
filters array Additional filter expressions using CloudEvents filter dialects or CESQL to select which events are delivered.
config object Additional broker-specific configuration properties for this subscription.
View JSON Schema on GitHub

JSON Schema

cloudevents-subscriptionrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SubscriptionRequest",
  "title": "SubscriptionRequest",
  "type": "object",
  "description": "Request body for creating or updating a CloudEvents subscription. Specifies the sink, protocol, and optional filter criteria.",
  "required": [
    "sink",
    "protocol"
  ],
  "properties": {
    "sink": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the event consumer where matching events will be delivered."
    },
    "protocol": {
      "type": "string",
      "description": "The protocol to use when delivering events to the sink.",
      "enum": [
        "HTTP",
        "AMQP",
        "MQTT",
        "NATS",
        "Kafka"
      ]
    },
    "protocolSettings": {
      "$ref": "#/components/schemas/ProtocolSettings"
    },
    "source": {
      "type": "string",
      "format": "uri-reference",
      "description": "Constrains the subscription to events from this source URI. If omitted, events from all sources are eligible for delivery."
    },
    "types": {
      "type": "array",
      "description": "List of CloudEvent types to subscribe to. Events with a 'type' attribute matching any entry in this list are eligible for delivery.",
      "items": {
        "type": "string"
      }
    },
    "filters": {
      "type": "array",
      "description": "Additional filter expressions using CloudEvents filter dialects or CESQL to select which events are delivered.",
      "items": {
        "$ref": "#/components/schemas/Filter"
      }
    },
    "config": {
      "type": "object",
      "description": "Additional broker-specific configuration properties for this subscription.",
      "additionalProperties": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cloudevents-subscriptionrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.