Navigate session
import requests
url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/navigate"
payload = { "target_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({target_message_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/navigate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/navigate \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"target_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Navigate session
Switches the active branch of the conversation to a specific message.
POST
/
agent-sessions
/
{session_id}
/
navigate
Navigate session
import requests
url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/navigate"
payload = { "target_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({target_message_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/navigate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/navigate \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"target_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I

