GET
/
api
/
memorization
/
attempt
/
get-results
Get Memorization Results
curl --request GET \
  --url https://app.replay.sale/api/memorization/attempt/get-results \
  --header 'Authorization: Bearer <token>'
{
  "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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

attemptId
string
required

The ID of the 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