When using Webhook v2 and retriggering an SMS outbound, it is recommended to explicitly close the existing session before initiating a new one.
To do this, include the following event in your webhook payload:
“message”: {
“type”: “event”,
“val”: “SESSION_CLOSURE”
}
Sending the SESSION_CLOSURE event ensures that the current session is properly terminated, allowing the subsequent outbound trigger to start a fresh session.
This approach should be used when a new session is required. For webhook API calls where you want the existing session to continue, do not send the SESSION_CLOSURE event.