Send xAPI statements to an LRS and query statements by actor and activity

domain: xapi.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Configure LRS credentials (basic auth username/password or OAuth token) and base endpoint URL from your LRS provider
  2. Build a minimal xAPI statement JSON object with actor (IFI such as mbox or account), verb (id and display), and object (activityId and definition)
  3. POST the statement to {lrsEndpoint}/statements with headers Content-Type: application/json and X-Experience-API-Version: 1.0.3
  4. Note the returned statement UUID array for confirmation; store UUIDs for audit purposes
  5. GET {lrsEndpoint}/statements?agent={encodedActorJSON}&activity={activityId}&limit=100 to retrieve matching statements for a specific learner and activity
  6. Use the 'more' URL in the response body to page through additional results when the result set is larger than the requested limit

Known gotchas

Related routes

Construct an xAPI statement with a group actor, a custom verb, an activity object with definition extensions, and a context with instructor and registration UUID, then POST it to an LRS
adlnet.gov · 6 steps · unrated
Query an LRS for xAPI statements filtered by actor and verb using GET /statements
adlnet.gov · 6 steps · unrated
Ingest xAPI statements into an LRS
adlnet.gov · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans