Skip to main content
GET
/
api
/
memorization
/
session
/
{sessionId}
Get Memorization Results
curl --request GET \
  --url https://app.replay.sale/api/memorization/session/{sessionId} \
  --header 'x-api-key: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "score": 1,
  "createdAt": "2023-11-07T05:31:56Z",
  "activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "activityType": "script",
  "didPassLevel": true,
  "didPassAllLevels": true,
  "user": {
    "learnerName": "<string>",
    "originDomain": "<string>",
    "uniqueIdentifier": "<string>"
  },
  "script": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "passingScore": 1,
    "numTotalLevels": 1,
    "numPassedLevels": 1,
    "numTotalAttempts": 1
  },
  "mostRecentAttempt": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "score": 1,
    "createdAt": "2023-11-07T05:31:56Z",
    "scriptSegmentAttempts": [
      {
        "order": 1,
        "ogText": "Hello, how can I help you today?",
        "speaker": "User",
        "spokenWords": "Hi there, how may I assist you today?"
      },
      {
        "order": 2,
        "ogText": "I'm having trouble with my internet connection.",
        "speaker": "AI",
        "spokenWords": null
      },
      {
        "order": 3,
        "ogText": "I understand. Let me help you troubleshoot that.",
        "speaker": "User",
        "spokenWords": "I understand your frustration. I can help you with that."
      }
    ]
  },
  "allAttempts": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "score": 1,
      "createdAt": "2023-11-07T05:31:56Z",
      "scriptSegmentAttempts": [
        {
          "order": 1,
          "ogText": "Hello, how can I help you today?",
          "speaker": "User",
          "spokenWords": "Hi there, how may I assist you today?"
        },
        {
          "order": 2,
          "ogText": "I'm having trouble with my internet connection.",
          "speaker": "AI",
          "spokenWords": null
        },
        {
          "order": 3,
          "ogText": "I understand. Let me help you troubleshoot that.",
          "speaker": "User",
          "spokenWords": "I understand your frustration. I can help you with that."
        }
      ]
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication. Get your API key from your company settings.

Path Parameters

sessionId
string
required

The ID of the session (attempt) to retrieve

Response

Successfully retrieved memorization results

id
string<uuid>
required

The ID of the script attempt requested

score
number
required

The score of the script attempt

Required range: x >= 0
createdAt
string<date-time>
required
activityId
string<uuid>
required

The ID of the script

activityType
enum<string>
required

The type of activity

Available options:
script
didPassLevel
boolean
required

Whether the current level was passed

didPassAllLevels
boolean
required

Whether all levels were completed with passing scores

user
object
required
script
object
required
mostRecentAttempt
object
required
allAttempts
object[]
required