GetTopic RPC Method

The GetTopic RPC method returns information for an event, such as the event topic name and the schema ID. The topic is the API name of the event object preceded by a path. The topic indicates the type of event to publish and the type of event to subscribe to. For example, the topic of a custom platform event with the API name of Order_Event__e is /event/Order_Event__e. Pass in the topic name in TopicRequest. The schema ID, that's returned in TopicInfo, is used to get the event schema with GetSchema.

For more information about the fields in TopicRequest and TopicInfo, see the Pub/Sub API proto file.