Is it possible to retrieve the list of all platform event definitions using REST API?

If I have an event name, I can get its definition using data/v40.0/sobjects/<EventName>/eventSchema but what is the endpoint (if any) to get all <EventName> that exist in current org?

1 Answer 1


Retrieving data/v40.0/sobjects/ will give you all objects in the Org, including platform events. Since all platform events end in __e, you can just take the result and filter out those whose name ends in __e.

  • Great! I hope that there are no potential issues like hitting the limit of the records per response, because I haven't seen any kind of 'next page' URL in the response
    – Demarsch
    Commented Jan 4, 2019 at 6:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .