Export full training session details
curl --request GET \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/export/sessions/details" \ --header "Authorization: Bearer $UNEEQ_API_KEY"const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/export/sessions/details`;const response = await fetch(url, { method: 'GET', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, },});console.log(response.status, await response.text());Returns one full record per training session in the organization: everything in the summary export except the CRM origin fields, plus the session language, per-section coaching assessments, overall strengths and improvement areas, conversation skill metrics, the cleaned conversation transcript and, for Q&A scenarios, every question with the learner’s answer, score and feedback.
The body is always the JSON envelope {"version": "1.0", "sessions": [...], "total": N},
served as application/json and as a file download (Content-Disposition: attachment,
file name sessions-details_YYYY-MM-DD.json). Only format=json is supported here;
format=xapi is rejected with 400.
When a completed video analysis exists for the session (enhanced_analysis: true), the
assessments, summary and extra skill ratings come from it; otherwise they come from the text
analysis. Section scores reflect any active manager override. Assessments are ordered by
name; transcript entries and questions are in conversation order.
Filtering, ordering and paging behave exactly as for the summary export: completed
sessions only by default, time_from / time_to inclusive on the start time, oldest first,
limit default 1000 and maximum 10000. Detail records are much larger than summaries, so
smaller pages are advisable. Sessions of private practice scenarios are included. The
response is streamed: a failure after the first byte leaves a 200 with a truncated body.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.
Example
org_HYPCX67vaupjhdTnQuery Parameters
Section titled “Query Parameters”Output format. Only json is supported; xapi returns 400. Case-sensitive.
Only sessions started at or after this instant. RFC 3339 date-time with a time zone offset, e.g. 2026-01-01T00:00:00Z; a date alone is rejected.
Only sessions started at or before this instant. RFC 3339 date-time with a time zone offset, e.g. 2026-01-31T23:59:59Z.
Maximum number of sessions to return. Values of 0 or less fall back to the default; values above 10000 are rejected.
Number of matching sessions to skip before the page starts. Negative values are treated as 0.
Comma-separated session statuses to include, with no spaces (e.g. completed,abandoned),
or all on its own for every status. Defaults to completed. Allowed statuses:
started, generating, analyzing, completed, invalid, abandoned, fatal, error.
Only sessions of scenarios that were started from this CRM. The detail records themselves do not carry the CRM fields.
Responses
Section titled “Responses”The export envelope with session detail records.
JSON envelope of the session details export.
object
Envelope format version. Currently always 1.0.
The page of sessions, oldest first. Empty array when nothing matches.
Full view of one training session.
object
Session ID.
Name of the scenario, also when it has since been deleted. Empty string if the session has no scenario.
ID of the scenario the session ran.
Email of the learner. Empty string if the user record no longer exists.
Display name of the learner. Empty string if unknown.
Kind of scenario. ROLE_PLAY for a conversation, TECHNICAL_ACUMEN for Q&A, PRACTICE for a private practice role-play. ROLE_PLAY when the scenario no longer exists.
Session status.
Overall score from 0 to 100, rounded to 2 decimals, including any manager override. 0 when not scored.
Session length in seconds, rounded to 2 decimals. Uses the recording length when plausible, otherwise the time from start to finish; 0 while the session is unfinished.
Deprecated, use language_code. Primary locale of the session, e.g. en-US.
Base language of the session, e.g. en.
True when the assessments and summary come from a completed video analysis rather than the text analysis.
When the session started. Set for every session in practice.
When the session finished; null while unfinished.
Endorsement the learner currently holds for this scenario (not specific to this session). NONE if not endorsed.
When the learner’s best-scoring endorsing session for this scenario was scored (not necessarily when the endorsement was first earned); null if not endorsed.
True when a manager override of section scores is currently active on this session.
Email of the manager who applied the active override. Present only while an override is active.
The manager’s justification for the active override. Present only while an override is active and a reason was given.
When the active override was applied. Present only while an override is active.
Traffic-light session-integrity rating. Omitted when the session captured no integrity data.
Q&A scenarios only. Number of questions the learner gave a non-blank answer to. Omitted for role-play sessions and for Q&A sessions with no questions recorded.
Q&A scenarios only. Number of questions asked in the session. Omitted for role-play sessions and for Q&A sessions with no questions recorded.
Per-section coaching assessments, ordered by name. Null when the session has no analysis yet (or it could not be read); an empty array when the analysis has no sections.
Result for one coaching section of the scenario’s assessment.
object
Section name.
Section score. The manager’s override value when one is active for this section, otherwise the AI score.
Summary of the learner’s performance on this section.
What the learner did well on this section.
What the learner should improve on this section.
Concrete improvement suggestions. Null when the analysis gave none.
Overall summary of what the learner did well. Empty string when there is no analysis.
Overall summary of what the learner should improve. Empty string when there is no analysis.
Conversation metrics. For role-play sessions always starts with Filler Words, Talk Speed
and Listen Ratio, then Longest Monologue when measured, then any skill ratings from the
video analysis. Always an empty array for Q&A sessions.
One conversation metric or skill rating.
object
Metric or skill name, e.g. Filler Words, Talk Speed, Listen Ratio, Longest Monologue, or a skill rated by the video analysis.
Value of the metric, interpreted according to score_type.
How to read score: percentage (0-100), star_rating (1-5, or 0 when it could not be
assessed), pass_fail (1 or more is a pass) or value (a plain number such as words per
minute or seconds). Exception: Listen Ratio is a fraction from 0 to 1 although its type is
percentage. It is the digital human’s share of the talk time, so 0.6 means 60%. Values for
skills rated by the video analysis come from that analysis.
Filler Words is the share of the learner’s words that were filler words, from the session
analysis. It is 0 while the session has no analysis yet (for example one that is still
being analyzed), so 0 does not always mean no filler words.
Human-readable summary, e.g. 142 words per minute (characters per minute for Japanese and Chinese sessions) or 45 seconds. Empty string for Filler Words and Listen Ratio.
The conversation in order, with internal markup removed. Null when the session has no messages.
One message in the conversation.
object
Who spoke. user for the learner, avatar for the digital human.
Display name of the speaker: the learner’s name, or for avatar the name of the character the scenario has the digital human play. May be empty.
Message text with internal markup removed. Never empty.
Time since the first message, as MM:SS (minutes keep counting past 59, e.g. 75:03).
Q&A scenarios only. One entry per question asked, in the order asked. Omitted for role-play sessions and for Q&A sessions with no questions recorded.
One question from a Q&A (Technical Acumen) session.
object
ID of the question.
Question text.
The learner’s answer. Null when the question was never answered or nothing was said.
Position in which the question was asked in the session.
Score for this answer. Null until the session finishes and the answer is graded.
Feedback summary for this answer. Empty string when not graded.
What the learner did well in this answer. Empty string when not graded.
What the learner should improve in this answer. Empty string when not graded.
True when one of the scenario’s failure conditions was met and a manager has not dismissed it, in which case score_percentage is 0 (section scores in assessments are not changed). False when the scenario has no failure conditions, none was met, a manager dismissed it, or the check could not run. A dismissal or a re-analysis can change this, so a later export of the same session can differ.
The failure conditions that were met, when failure_criteria_triggered is true. Always an array; empty when none stands.
One of the scenario’s failure conditions that the learner met, with the evidence for it.
object
The failure condition’s text as it was when the session was checked. Later edits to the scenario do not change it.
The learner’s words that met the condition. Empty string when none was recorded.
Why the quote meets the condition.
Number of sessions matching the filters across all pages (ignores limit and offset).
Example
{ "version": "1.0", "sessions": [ { "scenario_type": "ROLE_PLAY", "status": "started", "endorsement_level": "NONE", "integrity_level": "GREEN" } ]}Headers
Section titled “Headers”Number of sessions matching the filters across all pages (same as total).
Always attachment with a file name of the form sessions-details_YYYY-MM-DD.json (server date), unquoted, for example attachment; filename=sessions-details_2026-03-06.json.
Invalid query parameter. Messages:
xAPI format is only available for the sessions summary export (format=xapi),
unsupported export format (any other unknown format),
invalid time_from: must be RFC 3339 format (e.g. 2026-01-01T00:00:00Z),
invalid time_to: must be RFC 3339 format (e.g. 2026-01-01T00:00:00Z),
invalid limit: must be an integer, invalid offset: must be an integer,
invalid source_system: must be salesforce,
limit must be between 1 and 10000 (limit above 10000),
invalid session status filter (unknown status, spaces in the list, or all combined with other values).
No error_code is set.
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}Headers
Section titled “Headers”Seconds to wait before retrying.
The export could not be produced: unable to export data (query failed) or
unable to serialize export data (serialization failed before any byte was sent).
No error_code is set.
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}
