Skip to content

End a conversation with Rosie

POST
/public/assistant/sessions/{id}/end
curl --request POST \
--url https://example.com/public/assistant/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/end \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "reason": "closed" }'

With closed (the default), no more messages after this; the conversation can still be read and emailed. The website sends interest_registered when the register interest form went in from the chat: that is recorded and the conversation carries on.

id
required
string format: uuid
Media typeapplication/json
object
reason
string
Allowed values: closed interest_registered

Ended

Missing, wrong or expired session token

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Rosie is not set up here

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string

Example

{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}