List immersive training scenarios
curl --request GET \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/immersive-training/page/1/limit/25" \ --header "Authorization: Bearer $UNEEQ_API_KEY"const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/immersive-training/page/1/limit/25`;const response = await fetch(url, { method: 'GET', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, },});console.log(response.status, await response.text());Returns one page of the organization’s immersive training scenarios (role plays and Q&A scenarios), with the total number of matching scenarios in records.
Draft and published scenarios are both returned. Private practice scenarios (scenario type PRACTICE) belong to one member and are never listed here. Scenarios whose learning domain has been deleted are not listed.
Filters combine with AND:
searchmatches anywhere in the scenario name, case-insensitively.tagskeeps scenarios carrying at least one of the given tag ids.is_publishedkeeps published (true) or draft (any other value) scenarios.learning_domain_idkeeps scenarios in that learning domain.
Results are sorted by sort_by, by name A to Z when it is omitted or not recognized. There is no secondary sort, so scenarios that tie (same name ignoring case, or same last-change time) can come back in a different order on each call and repeat or go missing across pages. When page is past the last page, immersive_trainings is null and records still holds the total.
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_HYPCX67vaupjhdTnPage number, starting at 1.
Example
1Number of scenarios per page.
Example
25Query Parameters
Section titled “Query Parameters”Case-insensitive text matched anywhere in the scenario name. % and _ act as wildcards.
Comma-separated tag ids. A scenario matches when it carries any of them. Unknown ids simply match nothing.
true returns only published scenarios; any other non-empty value returns only drafts. Omit to return both.
Return only scenarios in this learning domain (a single id).
Sort order. name_asc (default) and name_desc sort case-insensitively by name; updated_at_desc and updated_at_asc sort by last change (creation time when never updated). Any other value falls back to name_asc.
Responses
Section titled “Responses”The requested page of scenarios.
One page of immersive training scenarios.
object
Total number of scenarios matching the filters, across all pages.
The scenarios on this page. null when the page is empty.
The list view of an immersive training scenario.
object
Scenario id.
Reserved; currently always an empty string.
Scenario name.
The digital human a scenario uses. A short form of the record returned by the digital human list.
object
Digital human id.
Identifier of the digital human on the Uneeq platform.
URL of the digital human’s preview image.
Always false here. Read it from the digital human list.
Always an empty string here. Read it from the digital human list.
Always false here. Read it from the digital human list.
Per-digital-human override for emotion and action tag instructions. Present only when set.
Name of the character the digital human plays. Empty for Q&A scenarios.
Role or job title of the character. Empty for Q&A scenarios.
Configuration version; starts at 1 and increases with every update.
Learning domain the scenario belongs to.
Whether learners can see and start the scenario.
Instructions shown to the learner before starting.
Legacy field; not currently returned.
Deprecated. Every scenario offers every supported language, so this always lists all supported locales, colon-separated (for example en-US:fr-FR:...), whatever was stored or sent.
Deprecated; always false. Scheduled for removal after 2027-03-15.
Score from 1 to 100 a learner must reach to be endorsed. Absent when the scenario has no endorsement.
Session time limit in minutes. Absent when there is no limit.
Maximum attempts per learner. Absent means unlimited.
Endorsement tier the scenario is configured for; STANDARD when it has an endorsement threshold, otherwise NONE.
Kind of scenario. ROLE_PLAY is a conversation with a digital human, TECHNICAL_ACUMEN is a spoken Q&A, PRACTICE is a member’s private role play.
Q&A only. SEQUENTIAL asks questions in order; RANDOM draws them at random.
Q&A only. Number of questions drawn per session when ordering is RANDOM. Absent means all.
Tags on the scenario, sorted by name.
object
Tag ID.
Tag name.
Display color, for example a hex code such as #F7F9FB.
Active assessments attached to the scenario, sorted by title.
The id and title of an assessment.
object
Assessment id.
Assessment title. Absent when empty.
Last change; the creation time when never updated.
Creation time.
Example
{ "immersive_trainings": [ { "persona_config": { "gender": "" }, "endorsement_level": "NONE", "scenario_type": "ROLE_PLAY", "question_ordering": "SEQUENTIAL" } ]}page is not an integer from 1 to 100000 (message “invalid page number”), or limit is not an integer from 1 to 100 (message “invalid limit”). 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 list could not be loaded (“unable to get immersive training list”).
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"}
