Sessions
Send input to a session
user.message appends the message to the transcript and starts an agent run (409 while a run is in progress or the session is paused). user.interrupt stops the current run.
POST
/
v1
/
sessions
/
{session_id}
/
events
Send input to a session
curl --request POST \
--url https://api.veri.studio/v1/sessions/{session_id}/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"text": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/events"
payload = {
"type": "<string>",
"text": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: '<string>', text: '<string>'})
};
fetch('https://api.veri.studio/v1/sessions/{session_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"session_id": "<string>",
"seq": 123,
"status": "<string>"
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Session ID
Body
application/json
user.message (requires text) or user.interrupt.
Send input to a session
curl --request POST \
--url https://api.veri.studio/v1/sessions/{session_id}/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"text": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/sessions/{session_id}/events"
payload = {
"type": "<string>",
"text": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: '<string>', text: '<string>'})
};
fetch('https://api.veri.studio/v1/sessions/{session_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"session_id": "<string>",
"seq": 123,
"status": "<string>"
}
