Memorization
Get Memorization Results
Retrieves detailed information about a memorization attempt including script data and attempt history
GET
/
api
/
memorization
/
attempt
/
get-results
Copy
curl --request GET \
--url https://app.replay.sale/api/memorization/attempt/get-results \
--header 'Authorization: Bearer <token>'
Copy
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
The ID of the attempt to retrieve
Response
200
application/json
Successfully retrieved memorization results
The response is of type object
.
Copy
curl --request GET \
--url https://app.replay.sale/api/memorization/attempt/get-results \
--header 'Authorization: Bearer <token>'
Copy
{
"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."
}
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.