Sessions
Get a session
Returns pinned configuration versions, transcript, and evidence when available.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns pinned configuration versions, transcript, and evidence when available.
curl --request GET \
--url https://trainertwin.com/api/v1/sessions/{sessionId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://trainertwin.com/api/v1/sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://trainertwin.com/api/v1/sessions/{sessionId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"session": {
"id": "session_123",
"personaSlug": "<string>",
"personaVersion": 123,
"agentSlug": "react-mock-interview",
"agentVersion": 123,
"domainSlug": "<string>",
"domainVersion": 123,
"status": "active",
"startedAt": "2023-11-07T05:31:56Z",
"userId": "user_123",
"contextName": "<string>",
"endedAt": "2023-11-07T05:31:56Z",
"transcript": {},
"evidence": {}
}
}{
"error": "Resource not found"
}{
"error": "Resource not found"
}{
"error": "Resource not found"
}curl --request GET \
--url https://trainertwin.com/api/v1/sessions/{sessionId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://trainertwin.com/api/v1/sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://trainertwin.com/api/v1/sessions/{sessionId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"session": {
"id": "session_123",
"personaSlug": "<string>",
"personaVersion": 123,
"agentSlug": "react-mock-interview",
"agentVersion": 123,
"domainSlug": "<string>",
"domainVersion": 123,
"status": "active",
"startedAt": "2023-11-07T05:31:56Z",
"userId": "user_123",
"contextName": "<string>",
"endedAt": "2023-11-07T05:31:56Z",
"transcript": {},
"evidence": {}
}
}{
"error": "Resource not found"
}{
"error": "Resource not found"
}{
"error": "Resource not found"
}