Discussions

Ask a Question
Back to All

How to Cancel a Session While It's in phase when session is creating?

I am using HeyGen's Streaming Avatar SDK to create a session. I know that avatar.stopAvatar() can be used to stop an active session, but I need a way to cancel the session while it's still being created (before it's fully established).

Is there a method or API endpoint to abort session creation mid-process? For example, if the session takes time to initialize and I want to cancel it immediately, how can I do that?

Any insights or workarounds would be appreciated. Thanks!