Assistant
Fork a thread from a message.
Create a new thread branched from the selected visible message without sending a new message.
POST
/
api
/
v1
/
assistant
/
threads
/
{id}
/
messages
/
{messageId}
/
fork
Fork a thread from a message.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/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/threads/{id}/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/threads/{id}/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
Thread forked.
⌘I
Fork a thread from a message.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/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/threads/{id}/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/threads/{id}/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)
