Dapr · Schema

Dapr CloudEvent

A CloudEvents 1.0 specification envelope used by Dapr for pub/sub messaging. All published events are wrapped in this format unless raw payload mode is enabled.

Distributed SystemsMicroservicesPlatformPub-SubState ManagementWorkflows

Properties

Name Type Description
specversion string The version of the CloudEvents specification.
type string The type of the event.
source string The source of the event, typically the app ID of the publisher.
id string Unique identifier for the event.
subject string The subject of the event in context of the event producer.
time string Timestamp of when the event occurred (RFC 3339).
datacontenttype string Content type of the data attribute (e.g., application/json).
data object The event payload data.
topic string The topic the event was published to (Dapr extension).
pubsubname string The name of the pub/sub component (Dapr extension).
traceid string The distributed tracing identifier (Dapr extension).
traceparent string The W3C trace context traceparent header value (Dapr extension).
tracestate string The W3C trace context tracestate header value (Dapr extension).
View JSON Schema on GitHub

JSON Schema

cloud-event.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/dapr/blob/main/json-schema/cloud-event.json",
  "title": "Dapr CloudEvent",
  "description": "A CloudEvents 1.0 specification envelope used by Dapr for pub/sub messaging. All published events are wrapped in this format unless raw payload mode is enabled.",
  "type": "object",
  "required": [
    "specversion",
    "type",
    "source",
    "id"
  ],
  "properties": {
    "specversion": {
      "type": "string",
      "description": "The version of the CloudEvents specification.",
      "enum": [
        "1.0"
      ]
    },
    "type": {
      "type": "string",
      "description": "The type of the event."
    },
    "source": {
      "type": "string",
      "description": "The source of the event, typically the app ID of the publisher."
    },
    "id": {
      "type": "string",
      "description": "Unique identifier for the event."
    },
    "subject": {
      "type": "string",
      "description": "The subject of the event in context of the event producer."
    },
    "time": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the event occurred (RFC 3339)."
    },
    "datacontenttype": {
      "type": "string",
      "description": "Content type of the data attribute (e.g., application/json)."
    },
    "data": {
      "description": "The event payload data."
    },
    "topic": {
      "type": "string",
      "description": "The topic the event was published to (Dapr extension)."
    },
    "pubsubname": {
      "type": "string",
      "description": "The name of the pub/sub component (Dapr extension)."
    },
    "traceid": {
      "type": "string",
      "description": "The distributed tracing identifier (Dapr extension)."
    },
    "traceparent": {
      "type": "string",
      "description": "The W3C trace context traceparent header value (Dapr extension)."
    },
    "tracestate": {
      "type": "string",
      "description": "The W3C trace context tracestate header value (Dapr extension)."
    }
  }
}

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/cloud-event"
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.