Chat
Create or reopen a chat thread.
Create or reopen a chat thread. The request enforces thread membership and content visibility for the authenticated caller.
POST
/
api
/
v1
/
chat
/
threads
Create or reopen a chat thread.
curl --request POST \
--url https://api.revoengine.com/api/v1/chat/threads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targetType": "USER",
"targetId": "11111111-1111-4111-8111-111111111111"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({targetType: 'USER', targetId: '11111111-1111-4111-8111-111111111111'})
};
fetch('https://api.revoengine.com/api/v1/chat/threads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/chat/threads"
payload = {
"targetType": "USER",
"targetId": "11111111-1111-4111-8111-111111111111"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
200
OK.
⌘I
Create or reopen a chat thread.
curl --request POST \
--url https://api.revoengine.com/api/v1/chat/threads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targetType": "USER",
"targetId": "11111111-1111-4111-8111-111111111111"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({targetType: 'USER', targetId: '11111111-1111-4111-8111-111111111111'})
};
fetch('https://api.revoengine.com/api/v1/chat/threads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/chat/threads"
payload = {
"targetType": "USER",
"targetId": "11111111-1111-4111-8111-111111111111"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
