Get the Event Schema
To discover the event fields of your platform event, get the event schema. You can get the event schema through REST API or Pub/Sub API.
-
Get the Event Schema with REST API
Use REST API
eventschemaresource to retrieve the event schema by using the event name or the schema ID. -
Get the Event Schema with Pub/Sub API
Use Pub/Sub API to retrieve the event schema with the
GetSchemaRPC method and pass in a schema ID.