1-877-548-3001 Sign in About Contact
Developer

POST

/api/chat/{id}/terminate

Terminate the specified chat session

Scope:

client

or

operator

Request Parameters

Path

2

id

required

The id of the chat to be terminated

Query

2

delaysec

optional

The second delay for termination to wait for more messages

Response

Schema

{}

A

message

The response message

A

status

The system response status. Will be ok or error

curl

example request

1

curl -X POST -H "Content-Type: application/json"

2

-H "Authorization: Bearer {{Oauth Token}}"

3

https://developer.livehelpnow.net/api/chat/{{102317790}}/terminate

example response

      
        

1

 {

2

   "message"

: "Chat terminated",

3

   "status"

: "ok"

4

 }