diff --git a/rust/src/api.rs b/rust/src/api.rs index 70426b55a..0b250f56b 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -979,9 +979,9 @@ impl<'a> Message<'a> { #[cfg(feature = "svix_beta")] pub async fn events( &self, - params: message_api::V1MessageCreateParams, - ) -> Result { - message_api::v1_message_create(self.cfg, params).await + params: message_api::V1MessageEventsParams, + ) -> Result { + message_api::v1_message_events(self.cfg, params).await } #[cfg(feature = "svix_beta")]