ClaroDocs
Integrations

xAPI Statement Reference

Complete reference for every xAPI statement Claro's player emits, with full JSON examples and field descriptions.

xAPI Statement Reference

This page documents every xAPI statement that Claro's training player sends to Claro's built-in LRS as learners progress through modules. Statements are sent in real time on each user action, using the xAPI 1.0.3 specification.

These statements are generated by the Claro player during training module sessions launched from your LMS. Phishing simulation events (email opens, clicks, reports) are tracked separately through Claro's campaign analytics and are not sent as xAPI statements.

Statement Structure

Every statement Claro sends follows the xAPI Actor-Verb-Object structure and includes a result and context block where relevant.

Actor   - The learner (identified by email or an account ID)
Verb    - What they did (attempted, completed, passed, etc.)
Object  - The activity they interacted with (module or quiz question)
Result  - Outcome details (score, success, duration)
Context - Metadata about the launch session

A complete statement:

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "timestamp": "2026-03-15T10:12:00.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "John Doe",
    "mbox": "mailto:john.doe@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/completed",
    "display": {
      "en-US": "completed"
    }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/module",
      "name": {
        "en-US": "Recognizing Phishing Emails",
        "id": "Mengenali Email Phishing"
      }
    }
  },
  "result": {
    "completion": true,
    "duration": "PT12M0S"
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012"
    }
  }
}

Actor

The Actor block identifies the learner. Claro populates this from the actor information provided when the LMS created the launch URL.

"actor": {
  "objectType": "Agent",
  "name": "John Doe",
  "mbox": "mailto:john.doe@company.com"
}

When your LMS provides the learner's email address as part of the launch, Claro uses it as the mbox identifier. This is the preferred format because it makes statements easy to correlate with user records in your LRS.

Account Identifier

"actor": {
  "objectType": "Agent",
  "name": "John Doe",
  "account": {
    "homePage": "https://app.claro.security",
    "name": "usr_def456"
  }
}

If your LMS launches the module without providing a learner email (for example, when using anonymous or pseudonymous tracking), Claro falls back to an account-based identifier using the Claro user ID if the learner is authenticated, or a session-scoped identifier otherwise.

Verb Reference

Claro uses standard ADL xAPI verbs for all statements.

VerbIRIUsed For
attemptedhttp://adlnet.gov/expapi/verbs/attemptedModule opened in the player
progressedhttp://adlnet.gov/expapi/verbs/progressedLearner advanced to a new card
answeredhttp://adlnet.gov/expapi/verbs/answeredQuiz question submitted
completedhttp://adlnet.gov/expapi/verbs/completedAll required cards viewed
passedhttp://adlnet.gov/expapi/verbs/passedModule completed with score at or above pass threshold
failedhttp://adlnet.gov/expapi/verbs/failedModule completed with score below pass threshold

Activity Type Reference

ActivityType IRIUsed For
Training modulehttp://adlnet.gov/expapi/activities/moduleA Claro micro-module
Quiz questionhttp://adlnet.gov/expapi/activities/cmi.interactionA single quiz question

Activity ID Format

Each module has a stable Activity ID based on your deployment URL:

https://YOUR_APP_URL/activities/MODULE_ID

This ID is deterministic - the same module always has the same Activity ID within a deployment. Different Claro deployments (for example, staging vs. production) will have different Activity IDs because the app URL differs, which prevents statement collision in a shared LRS.

Context Extensions

All Claro-specific extensions use the namespace https://getclaro.tech/extensions/.

Extension KeyTypeDescription
launch-record-idstringUnique ID for this learner's launch session. Used to correlate all statements from a single session.
tenant-idstringClaro tenant identifier
module-idstringClaro module identifier
card-indexnumberZero-based index of the card within the module (progress statements only)
card-typestringCard type: text, tip, scenario, or quiz (progress statements only)

Statement Reference

Module Started (attempted)

Sent when the player loads a module for a learner. This is the first statement in every session.

{
  "id": "550e8400-e29b-41d4-a716-446655440011",
  "timestamp": "2026-03-15T10:00:00.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "John Doe",
    "mbox": "mailto:john.doe@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/attempted",
    "display": { "en-US": "attempted" }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/module",
      "name": {
        "en-US": "Recognizing Phishing Emails",
        "id": "Mengenali Email Phishing"
      },
      "description": {
        "en-US": "Learn to identify the red flags in phishing emails and know what to do when you spot one."
      }
    }
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012"
    }
  }
}

Card Viewed (progressed)

Sent each time a learner advances to a new card. Claro sends one statement per card, so you can see exactly how far through the content a learner got and which card types they engaged with.

{
  "id": "550e8400-e29b-41d4-a716-446655440012",
  "timestamp": "2026-03-15T10:02:30.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "John Doe",
    "mbox": "mailto:john.doe@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/progressed",
    "display": { "en-US": "progressed" }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/module",
      "name": {
        "en-US": "Recognizing Phishing Emails",
        "id": "Mengenali Email Phishing"
      }
    }
  },
  "result": {
    "extensions": {
      "https://getclaro.tech/extensions/card-index": 2,
      "https://getclaro.tech/extensions/card-type": "scenario"
    }
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012"
    }
  }
}

Quiz Question Answered

Sent each time a learner submits an answer to a quiz question. Includes whether the answer was correct, what the learner selected, and what the correct answer was.

{
  "id": "550e8400-e29b-41d4-a716-446655440013",
  "timestamp": "2026-03-15T10:04:15.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "John Doe",
    "mbox": "mailto:john.doe@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/answered",
    "display": { "en-US": "answered" }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012/questions/q_pqr678",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/cmi.interaction",
      "name": {
        "en-US": "Which of these is a red flag in a phishing email?"
      },
      "interactionType": "choice",
      "choices": [
        { "id": "a", "description": { "en-US": "The sender domain matches the company name" } },
        { "id": "b", "description": { "en-US": "The email creates urgency and asks you to click a link immediately" } },
        { "id": "c", "description": { "en-US": "The email is addressed to you by name" } },
        { "id": "d", "description": { "en-US": "The email arrives during business hours" } }
      ],
      "correctResponsesPattern": ["b"]
    }
  },
  "result": {
    "success": true,
    "response": "b"
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012",
      "https://getclaro.tech/extensions/card-index": 4
    }
  }
}

Module Completed

Sent when a learner views all required cards in the module. This statement represents content completion and is sent before the pass or fail statement that follows.

{
  "id": "550e8400-e29b-41d4-a716-446655440014",
  "timestamp": "2026-03-15T10:12:00.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "John Doe",
    "mbox": "mailto:john.doe@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/completed",
    "display": { "en-US": "completed" }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/module",
      "name": {
        "en-US": "Recognizing Phishing Emails",
        "id": "Mengenali Email Phishing"
      }
    }
  },
  "result": {
    "completion": true,
    "duration": "PT12M0S"
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012"
    }
  }
}

The duration field uses ISO 8601 duration format (PT12M0S = 12 minutes, 0 seconds) and reflects the total time the learner spent in the player session.

Module Passed

Sent immediately after the completed statement when the learner's quiz score meets or exceeds the module's configured pass threshold. This is the statement that triggers Claro to mark a linked training assignment as complete.

{
  "id": "550e8400-e29b-41d4-a716-446655440015",
  "timestamp": "2026-03-15T10:12:01.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "John Doe",
    "mbox": "mailto:john.doe@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/passed",
    "display": { "en-US": "passed" }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/module",
      "name": {
        "en-US": "Recognizing Phishing Emails",
        "id": "Mengenali Email Phishing"
      }
    }
  },
  "result": {
    "success": true,
    "completion": true,
    "score": {
      "scaled": 0.9,
      "raw": 90,
      "min": 0,
      "max": 100
    },
    "duration": "PT12M1S"
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012"
    }
  }
}

The score.scaled value is in the range 0.0 to 1.0. score.raw is the percentage score (0-100). The pass threshold is configured per module in Claro's module settings.

Module Failed

Sent when a learner completes all content but their quiz score falls below the pass threshold. The learner can retake the module, which will generate a new attempted statement and a new session.

{
  "id": "550e8400-e29b-41d4-a716-446655440016",
  "timestamp": "2026-03-15T10:09:30.000Z",
  "actor": {
    "objectType": "Agent",
    "name": "Budi Santoso",
    "mbox": "mailto:budi.santoso@company.com"
  },
  "verb": {
    "id": "http://adlnet.gov/expapi/verbs/failed",
    "display": { "en-US": "failed" }
  },
  "object": {
    "objectType": "Activity",
    "id": "https://app.claro.security/activities/mod_jkl012",
    "definition": {
      "type": "http://adlnet.gov/expapi/activities/module",
      "name": {
        "en-US": "Recognizing Phishing Emails",
        "id": "Mengenali Email Phishing"
      }
    }
  },
  "result": {
    "success": false,
    "completion": true,
    "score": {
      "scaled": 0.6,
      "raw": 60,
      "min": 0,
      "max": 100
    },
    "duration": "PT9M30S"
  },
  "context": {
    "platform": "Claro",
    "language": "id-ID",
    "extensions": {
      "https://getclaro.tech/extensions/launch-record-id": "lrec_abc123",
      "https://getclaro.tech/extensions/tenant-id": "tnt_xyz789",
      "https://getclaro.tech/extensions/module-id": "mod_jkl012"
    }
  }
}

Statement Sequence for a Complete Module Session

For a learner who completes a module with a passing score, the full statement sequence looks like this:

1. attempted     - Player loads, session begins
2. progressed    - Learner moves to card 1
3. progressed    - Learner moves to card 2
4. progressed    - Learner moves to card 3 (scenario card)
5. progressed    - Learner moves to card 4 (quiz card)
6. answered      - Learner submits answer to question 1
7. answered      - Learner submits answer to question 2
8. completed     - All required cards viewed
9. passed        - Score >= pass threshold (sent immediately after completed)

All statements in a single session share the same launch-record-id extension value, so you can group them by session when querying your LRS.

Querying Statements from Your External LRS

If you have configured statement forwarding to an external LRS, you can query statements using the standard xAPI Statements API.

All statements for a specific learner

GET /xapi/statements?agent={"mbox":"mailto:john.doe@company.com"}
Authorization: Basic BASE64_ENCODED_CREDENTIALS
X-Experience-API-Version: 1.0.3

All completion statements for a specific module

GET /xapi/statements?verb=http://adlnet.gov/expapi/verbs/completed&activity=https://app.claro.security/activities/mod_jkl012
Authorization: Basic BASE64_ENCODED_CREDENTIALS
X-Experience-API-Version: 1.0.3

All statements from a single session (by launch record)

Most LRS platforms support filtering by context extension values. The launch-record-id extension lets you pull every statement from a single learner session:

GET /xapi/statements?activity=https://app.claro.security/activities/mod_jkl012
Authorization: Basic BASE64_ENCODED_CREDENTIALS
X-Experience-API-Version: 1.0.3

Then filter client-side on context.extensions["https://getclaro.tech/extensions/launch-record-id"].

xAPI Version and Timestamps

Claro sends all statements with the X-Experience-API-Version: 1.0.3 header. Timestamps use UTC in ISO 8601 format. The timestamp field reflects when the event occurred in the player; the stored timestamp on your LRS reflects when it was received, which may differ slightly.

Claro deduplicates statements by statement UUID. If the same statement is received more than once (for example, due to a retry), only the first is stored.