Assistant
Fork a shared thread from a message.
Create a new owned thread branched from a selected visible message in a shared thread.
POST
/
api
/
v1
/
assistant
/
shared
/
{shareId}
/
messages
/
{messageId}
/
fork
Fork a shared thread from a message.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/shared/{shareId}/messages/{messageId}/fork \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "v2",
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 'v2', title: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/assistant/shared/{shareId}/messages/{messageId}/fork', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/shared/{shareId}/messages/{messageId}/fork"
payload = {
"version": "v2",
"title": "<string>"
}
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
Response
Shared thread message forked.
⌘I
Fork a shared thread from a message.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/shared/{shareId}/messages/{messageId}/fork \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "v2",
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 'v2', title: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/assistant/shared/{shareId}/messages/{messageId}/fork', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/shared/{shareId}/messages/{messageId}/fork"
payload = {
"version": "v2",
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
