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)Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
Participant type used to resolve the target thread.
Available options:
USER, GROUP Example:
"USER"
User id or group id resolved from targetType.
Example:
"11111111-1111-4111-8111-111111111111"
Optional operator-defined thread title override.
Maximum string length:
256Example:
"Quarterly planning"
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)
