Update Session Status
PATCH/api/v2/instance/:instanceId/typebot-integration/session/:sessionId
The /session/{sessionId}
(PATCH) endpoint is designed to provide administrative control over the individual sessions of a Typebot conversational bot. This endpoint is particularly useful for managing real-time interactions, allowing you to pause, resume, or end a bot session during a conversation.
Request
Path Parameters
Session ID
ID of the instance.
- application/json
Body
required
Endpoint Features
Update Session Status: Allows you to modify the current state of a specific conversation session, identified by
sessionId
.Available Actions:
- Pause Session: Temporarily pauses the session, allowing it to be resumed later without losing context.
- Resume Session: Resumes a session that was previously paused, continuing the conversation from the point where it was interrupted.
- End Session: Ends the session definitively. This action is useful for ending conversations that are no longer necessary or that have reached their objective.
Possible values: [open
, close
, pause
, resume
]
Responses
- 200
- 400
- 401
- 403
- 404
Success - status: 200
- application/json
- Schema
- Example (from schema)
Schema
{
"sessionId": "string",
"keyRemoteJid": "string",
"status": "string",
"typebotIntegrationId": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
ForbiddenException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
NotFoundException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}