Create a Channel for a Custom Platform Event

Create a channel that holds a stream of custom platform events.

USER PERMISSIONS NEEDED
To create a PlatformEventChannel:Customize Application
To use REST API:API Enabled
  1. Send a POST request to this URI.

    /services/data/v57.0/tooling/sobjects/PlatformEventChannel

  2. If you’re using Postman, under Tooling, click Post Tooling SObject, and then replace the :SOBJECT_API_NAME placeholder with PlatformEventChannel.

  3. To configure a channel that receives custom platform event messages, set channelType to event. Use this example request body.

  4. Send the request. The response received looks similar to this response.

Now that you created a channel for platform events, add a channel member for one custom platform event. See Create a Channel Member to Associate a Custom Platform Event.

See Also