Skip to main content
POST
Close Session
Call this endpoint when a conversation is complete to release the session and free associated resources. After closing, you cannot send further messages using the same sessionId. Start a new session with the init endpoint to begin a fresh conversation.

Endpoint

Request body

string
required
Your Connectly business identifier.
string
required
The unique identifier for the customer whose session you are closing.
string
required
The session ID returned by the init endpoint.

Response

object
An empty object {} confirming the session was closed successfully.
object
null on success. Populated with code, message, and details if an error occurred.

Example