End Session
Sessions
End Session
Stop the avatar server and release resources
POST
End Session
What This Does: Gracefully stops the avatar server, releases GPU resources and marks the session as ended. Call this when you’re done with the conversation to avoid unnecessary charges.
Path Parameters
The session ID to end
Response
Whether the request was successful
The updated session object (See Session schema).
Important Notes
- Only active sessions (status:
started) can be ended - Marks the session with an
ended_attimestamp - Session status transitions from
startedtoended - Once ended, the session cannot be restarted
- If the session is already ended, the API returns
success: true.
Automatic Termination Handling
Sessions are automatically terminated instantly when:- Client leaves the video room - When all participants leave the Daily/LiveKit room
- Session timeout - When the session reaches its expiration time based on plan limits