Assistant
Retry a thread message.
Retry the latest visible unfinished user message by message ID without creating a duplicate user message row.
POST
/
api
/
v1
/
assistant
/
threads
/
{id}
/
messages
/
{messageId}
/
retry
Retry a thread message.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resume": false,
"backgroundProcessing": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({resume: false, backgroundProcessing: false})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry', 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}/retry"
payload = {
"resume": False,
"backgroundProcessing": False
}
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
On message retry routes, resume the unfinished conversation without hiding previous results or replaying completed effects.
Allow the Assistant turn to continue after the client disconnects. Defaults to false unless the operation states otherwise.
Response
Message retried.
⌘I
Retry a thread message.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resume": false,
"backgroundProcessing": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({resume: false, backgroundProcessing: false})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/messages/{messageId}/retry', 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}/retry"
payload = {
"resume": False,
"backgroundProcessing": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
