AWorld Lab API Reference
API ReferenceApp API (Consumer)
Dashboard API (Admin)
API ReferenceApp API (Consumer)
Dashboard API (Admin)
  1. RolePlaySessions
  • ActivityLogs
    • Create activity log
    • List activity logs
    • Get activity log
  • Analytics
    • Get community metrics
  • Badges
    • List badge configurations
    • List badges
    • Get badge
    • List badge configuration tag assignments
    • Get badge configuration translation
    • Get badge configuration tag assignment
  • LearningGroups
    • List learning groups
    • Get learning group
    • List learning group items
    • List learning group tag assignments
    • Get learning group translation
    • Get learning group tag assignment
  • LearningPathAssignments
    • List learning path assignments
    • Get learning path assignment
    • Search learning path assignments
    • Get current attempt
    • List learning path assignment items
    • Retry learning path assignment
    • List learning path assignment tags
    • Get learning path assignment translation
    • Get learning path assignment tag
  • Missions
    • List missions
    • Get mission
  • Quizzes
    • List quizzes
    • Get quiz
    • Submit quiz answer
    • List quiz tag assignments
    • Get quiz translation
    • Get quiz tag assignment
  • RuntimeLeaderboards
    • List runtime leaderboards
    • Get runtime leaderboard
    • Get leaderboard rankings
    • Get my ranking
  • Slides
    • List slides
    • Get slide
    • Submit slide progress
    • List slide tag assignments
    • Get slide translation
    • Get slide tag assignment
  • Streaks
    • List streaks
    • Get streak
  • Users
    • Get current user
    • Update current user
    • Delete current user
    • List current user learning group logs
    • List notification preferences for the current user
    • Get current user permissions
    • Get current user principal
    • Get current user referral code
    • Get current user stats
    • List current user tag assignments
    • Update a notification preference for the current user
    • Reset a notification preference for the current user
    • Get current user tag assignment
  • VirtualBalances
    • List virtual balances
    • Get virtual balance
  • VirtualTransactions
    • List virtual transactions
    • Create virtual transaction
    • Get virtual transaction
    • Redeem virtual transaction
    • Search virtual transactions history
  • WorkspaceCodes
    • Redeem a workspace code
  • WorkspaceConfigurations
    • Get workspace configuration
  • Surveys
    • Get survey
    • Get survey progress
    • Submit survey answers
  • Extensions
    • Get daily activity card data
    • Get the workspace-specific profile card content
    • Get signed Extensions URL
    • Get public Extensions onboarding URL
  • NotificationPreferences
    • One-click unsubscribe (RFC 8058)
    • List email preferences via a signed email token
    • Update an email preference via a signed email token
  • Tags
    • List tags
    • Search tags
  • Assignments
    • List assignments
    • Get assignment
    • Search assignments
    • Get current attempt
    • Retry assignment
    • List assignment tags
    • Get assignment tag
  • Competencies
    • List the competencies
  • CompetencyBalances
    • List my competency scores
  • CompetencyLogs
    • List my evidence for a competency
  • RolePlaySessions
    • List my sessions on a role-play
      GET
    • Start a role-play session
      POST
    • Get my role-play session
      GET
    • End a role-play session
      POST
    • Send a message in a role-play
      POST
  • RolePlays
    • Get a role-play's briefing
  • Schemas
    • CommunityMetricsResponse
    • CreateActivityResponse
    • CreateVirtualTransactionResponse
    • CurrentAttemptResponse
    • DailyActivityResponse
    • DeleteCurrentUserResponse
    • DeleteMyNotificationPreferenceResponse
    • GetActivityLogResponse
    • GetAppSurveyResponse
    • GetBadgeConfigurationTagResponse
    • GetAssignmentResponse
    • GetBadgeConfigurationTranslationResponse
    • GetAssignmentTagResponse
    • GetCurrentUserPermissionsResponse
    • GetBadgeResponse
    • GetCurrentUserReferralCodeResponse
    • GetCurrentUserPrincipalResponse
    • GetCurrentUserStatsResponse
    • GetCurrentUserResponse
    • GetCurrentUserTagResponse
    • GetLearningGroupTagAssignmentResponse
    • GetLearningGroupResponse
    • GetLearningGroupTranslationResponse
    • GetLearningPathAssignmentTagResponse
    • GetLearningPathAssignmentResponse
    • GetLearningPathAssignmentTranslationResponse
    • GetMissionResponse
    • GetQuizTagResponse
    • GetQuizResponse
    • GetRuntimeLeaderboardRankingsMeResponse
    • GetQuizTranslationResponse
    • GetRuntimeLeaderboardRankingsResponse
    • GetRolePlaySessionResponse
    • GetRuntimeLeaderboardResponse
    • GetSlideTagResponse
    • GetSlideResponse
    • GetSlideTranslationResponse
    • GetStreakResponse
    • GetVirtualTransactionResponse
    • GetSurveyProgressResponse
    • GetVirtualBalanceResponse
    • GetWorkspaceConfigurationResponse
    • Lang
    • JsonLogicExpression
    • ListActivityLogsResponse
    • ListBadgeConfigurationTagAssignmentsResponse
    • ListAssignmentsResponse
    • ListAssignmentTagsResponse
    • ListBadgeConfigurationsResponse
    • ListCurrentUserTagAssignmentsResponse
    • ListEmailPreferencesByTokenResponse
    • ListBadgesResponse
    • ListLearningGroupTagAssignmentsResponse
    • ListCompetencyBalancesResponse
    • ListCompetencyLogsResponse
    • ListCurrentUserLearningGroupLogsResponse
    • ListLearningPathAssignmentTagsResponse
    • ListMyNotificationPreferencesResponse
    • ListLearningGroupItemsResponse
    • ListQuizTagAssignmentsResponse
    • ListLearningGroupsResponse
    • ListLearningPathAssignmentItemsResponse
    • ListLearningPathAssignmentsResponse
    • ListSlideTagAssignmentsResponse
    • ListMissionsResponse
    • ListRuntimeLeaderboardsResponse
    • ListVirtualTransactionsResponse
    • ListMyRolePlaySessionsResponse
    • ProfileCardResponse
    • ListPublishedCompetenciesResponse
    • ListStreaksResponse
    • PublicOnboardingUrlResponse
    • ListQuizzesResponse
    • RedeemVirtualTransactionResponse
    • ListTagsResponse
    • ListVirtualBalancesResponse
    • RedeemWorkspaceCodeResponse
    • ListSlidesResponse
    • ResolvedNotificationPreference
    • SignedUrlResponse
    • SourceRegion
    • RetryLearningPathAssignmentResponse
    • SearchAppTagsResponse
    • Timezone
    • UnsubscribeResponse
    • SearchVirtualTransactionsHistoryResponse
    • RetryAssignmentResponse
    • UpdateMyNotificationPreferenceResponse
    • UpdateEmailPreferenceByTokenResponse
    • RolePlayExhibit
    • SubmitQuizResponse
    • RolePlaySession
    • SubmitSlideResponse
    • SubmitSurveyResponse
    • VirtualTransactionHistoryVirtualCurrency
    • SearchAssignmentsResponse
    • SearchLearningPathAssignmentsResponse
    • UpdateCurrentUserResponse
    • SendRolePlayTurnResponse
    • VirtualTransactionHistoryRewardRule
    • VirtualTransactionHistoryRuleTranslation
    • VirtualTransactionHistoryStreakRule
    • VirtualTransactionHistoryUser
    • VirtualTransactionHistorySourceEntity
  1. RolePlaySessions

Get my role-play session

GET
/role-play-sessions/{rolePlayLogId}
RolePlaySessions
Returns one of the caller's sessions with the whole conversation and, once it is assessed, the report: per competency the level reached, why, the learner's own words and what the next level looks like.
An open session past its time ends when it is read, and is then assessed; while the character's answer is on its way, it ends with that answer instead.

Request

Path Params

Header Params

Responses

🟢200OK
application/json
The session
Bodyapplication/json

🟠401Unauthorized
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.aworld.cloud/app/v1/role-play-sessions/' \
--header 'x-external-user-id;' \
--header 'x-user-id;'
Response Response Example
{
    "session": {
        "rolePlayLogId": "Sx8Yq2pLm0vB7nW4cR1tK",
        "rolePlayId": "Rp3kq0vX9aLm2ZtYc8WbN",
        "rolePlayVersion": 0,
        "lang": "en",
        "context": "string",
        "attempt": 1,
        "sequence": 1,
        "scoredAttempt": 1,
        "dryRun": false,
        "countsTowardCompetencies": false,
        "parentId": "string",
        "parentType": "learningPath",
        "status": "ACTIVE",
        "endReason": "CHARACTER_ENDED",
        "startedAt": "2019-08-24T14:15:22.123Z",
        "endedAt": "2019-08-24T14:15:22.123Z",
        "lastActivityAt": "2019-08-24T14:15:22.123Z",
        "learnerTurns": 0,
        "pendingTurn": {
            "seq": 1,
            "jobId": "FUMzPf00hz_kcj2R2Hlzq",
            "requestedAt": "2019-08-24T14:15:22.123Z"
        },
        "outcome": "SUCCESS",
        "score": 1,
        "share": 0,
        "title": "string",
        "characterName": "string",
        "grammaticalGender": "FEMININE",
        "characterPronouns": "string",
        "learner": {
            "role": "",
            "canDo": "",
            "aims": []
        },
        "brief": {
            "situation": "",
            "openingLine": ""
        },
        "maxTurns": 1,
        "endsAt": "2019-08-24T14:15:22.123Z",
        "exhibits": [
            {
                "exhibitId": "second-text",
                "kind": "MESSAGE",
                "title": "",
                "sender": "string",
                "subject": "string",
                "url": "string",
                "sentAt": "string",
                "body": "string",
                "alt": "string",
                "imageUrl": "http://example.com"
            }
        ],
        "outcomeThresholds": {
            "SUCCESS": 0,
            "PASS": 0
        }
    },
    "turns": [
        {
            "seq": 0,
            "speaker": "LEARNER",
            "text": "string",
            "sceneLines": [
                "string"
            ],
            "exhibitIds": [
                "string"
            ],
            "eventExhibitIds": [
                "string"
            ],
            "createdAt": "2019-08-24T14:15:22.123Z"
        }
    ],
    "report": {
        "outcome": "SUCCESS",
        "score": 1,
        "share": 0,
        "coverage": 0,
        "inconclusiveReason": "LOW_COVERAGE",
        "summary": "string",
        "competencies": [
            {
                "competencyId": "FUMzPf00hz_kcj2R2Hlzq",
                "label": "string",
                "relevance": "PRIMARY",
                "assessed": true,
                "level": 1,
                "rationale": "string",
                "quotes": [
                    {
                        "turnSeq": 0,
                        "quote": "string"
                    }
                ],
                "anchorReached": "string",
                "nextLevel": 1,
                "anchorNext": "string",
                "notAssessedReason": "NOT_TRIGGERED",
                "feedback": "string",
                "nextStep": "string",
                "anchorTop": "string",
                "topStep": "string"
            }
        ]
    }
}
Modified at 2026-11-24 19:40:52
Previous
Start a role-play session
Next
End a role-play session
Built with